this post was submitted on 27 Jan 2021
2 points (100.0% liked)

Lemmy

12690 readers
1 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 4 years ago
MODERATORS
 

Where did the API documentation in the documentation go? There used to be this great listing of all of the API calls but it seems to be gone now?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 4 years ago (5 children)

It's here, and it links to the objects used by the lemmy-js-client, so we don't have to maintain 3 copies of the API, but only 2.

It's also more descriptive as it has all the objects, not just the API calls.

[–] [email protected] 0 points 4 years ago (1 children)

How do you authenticate though?

[–] [email protected] 0 points 4 years ago (1 children)
[–] [email protected] 0 points 4 years ago (1 children)

Is there an old copy of the API docs around? The ones that explained how you authenticate over HTTP and websockets?

[–] [email protected] 1 points 4 years ago (1 children)

Don't use those, they're out of date. You need to login, it returns a jwt string, and you store that and use it every auth field. It says that on the line I linked you.

[–] [email protected] 0 points 4 years ago

I think that did it. Thanks.

load more comments (3 replies)