I’m looking for examples of calls to the Lemmy API… I’ve been to the following link in the documentation:

https://join-lemmy.org/docs/en/contributors/04-api.html

However I don’t see any direct examples of uses of the API for common cases, like creating a post, creating a comment or getting either type of item. Some of the linked documentation from that page points to what I believe is typescript code for interfaces, but that does not really have examples of actually calling those interfaces. I can make some logical guesses at to what the calls should be, but I don’t have a way to really verify this yet.

Does anyone have some working examples they can post?

  • AggressivelyPassive@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    If someone has a write-up of Lemmy’s architecture, I would also be interested.

    I don’t have the time or expertise to sift through the rust code.