I'm making a client for Lemmy but am planning to make the calls myself rather than use a library, is there any good documentation of the HTTP API that I can use as a reference?
I'm making a client for Lemmy but am planning to make the calls myself rather than use a library, is there any good documentation of the HTTP API that I can use as a reference?
5 Comments
nachtigall@feddit.de · 4 pts · 3y
You can find the routes here: https://github.com/LemmyNet/lemmy/blob/main/src/api_routes_http.rs
And the forms are documented here: https://join-lemmy.org/api/
Echolot@sh.itjust.works · 2 pts · 3y
They are planning to switch from WS to HTTP soon (backend is already switch over I think). Either way I don’t think there’s a documentation of the API itself yet, but you can just reverse engineer the calls from the calls from JS library or look at the backend code directly.
Jitnaught@lemmy.ml · 1 pts · 3y
https://join-lemmy.org/api/classes/LemmyHttp.html