Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

New: user details endpoint

PieFed API & mobile app dev
1 1 0
  • GET /api/alpha/user/me - retrieves all the information about the current user, including all the things they've blocked, communities they have joined and communities they moderate.

    I built this because I realised that many apps are making requests to /api/alpha/site for this purpose, which is unfortunate as that endpoint returns a lot more besides and can sometimes be slow to do so. This is intended to be a more lightweight alternative to doing a GET of /api/alpha/site so the information in /user/me is the same as the my_user part of /site.


Gli ultimi otto messaggi ricevuti dalla Federazione
  • POST /api/alpha/upload/image - upload an image, get a url back. Use that to construct markdown/html as you wish. Uploaded images are associated with the current user and count towards their quota (50 MB by default, tweakable by instance admin)

    GET /api/alpha/user/media - get all the images the current user has uploaded. Use this to provide a image picker.

    POST /api/alpha/image/delete - provide the url of an image that the current user owns and it'll be deleted.

    Details in the swagger docs.

    read more

  • GET /api/alpha/user/me - retrieves all the information about the current user, including all the things they've blocked, communities they have joined and communities they moderate.

    I built this because I realised that many apps are making requests to /api/alpha/site for this purpose, which is unfortunate as that endpoint returns a lot more besides and can sometimes be slow to do so. This is intended to be a more lightweight alternative to doing a GET of /api/alpha/site so the information in /user/me is the same as the my_user part of /site.

    read more

  • POST /api/alpha/domain/block

    A domain block will stop all posts that links to that domain from being returned by /api/alpha/post/list for that user.

    See https://piefed.social/api/alpha/swagger for details.

    read more
Post suggeriti
  • 0 Votes
    1 Posts
    0 Views
    POST /api/alpha/upload/image - upload an image, get a url back. Use that to construct markdown/html as you wish. Uploaded images are associated with the current user and count towards their quota (50 MB by default, tweakable by instance admin) GET /api/alpha/user/media - get all the images the current user has uploaded. Use this to provide a image picker. POST /api/alpha/image/delete - provide the url of an image that the current user owns and it'll be deleted. Details in the swagger docs.
  • New: domain blocking endpoint

    PieFed API & mobile app dev
    1
    0 Votes
    1 Posts
    0 Views
    POST /api/alpha/domain/block A domain block will stop all posts that links to that domain from being returned by /api/alpha/post/list for that user. See https://piefed.social/api/alpha/swagger for details.