this post was submitted on 05 Jun 2023
9 points (100.0% liked)

Fediverse

17686 readers
13 users here now

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of "federation" and "universe".

Getting started on Fediverse;

founded 4 years ago
MODERATORS
 

I can only find the documentation for the NPM packages, which i do not want to use. Is there any other documentation on just the HTTP API?

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 1 year ago (1 children)

We do have full api docs, they're here. https://join-lemmy.org/api/

They fully describe the endpoints and types.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Am i not allowed to use the lemmy api without JavaScript anymore? I just want something like how mastodon does it with a list of endpoints and how they work

Edit: I did not see it, whoops

[–] [email protected] 2 points 1 year ago

The lemmy-js-client docs have the HTTP Enpoints somewhere in there and if you click on "form" for a specific endpoint, it shows you the parameters.

Bigger problem is that nothing has any description, but all in all the docs are quite bad, even if complete.

[–] [email protected] 1 points 1 year ago (2 children)

I can tell you that the api itself can be found at instance.com/api/v3/, and that you can for example get recent posts with instance.com/api/v3/post/list, and you can replace post with community or comment to get the same, but I learned that much from error messages messing with lemmy-js-client. unfortunately i don't think the raw http api is posted anywhere

[–] [email protected] 3 points 1 year ago

A lack of documentation like that is a serious bug

load more comments
view more: next ›