this post was submitted on 28 Nov 2021
22 points (100.0% liked)
Lemmy
12715 readers
76 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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Docs are pretty bad, let me give you a start,
To get the first page of post of a community,
You can paste that json object in a formater somewhere to get an idea of the shape of the data.
To find the other endpoints ignore the javascript docs. They are to hard to read.
Look at, the api_routes file. https://github.com/LemmyNet/lemmy/blob/main/src/api_routes.rs
Now you should be able to put two and two together to get the whole picture.
How are the docs bad? They exactly match what we are using.
Forgive me for being to dumb; it just doesn’t seem as clear as something like swagger
You link to some Java script instead of full path ways.
Listing a few curl examples would go a long way to making the api more understandable IMO.
But maybe I’m just to dumb to understand.