this post was submitted on 07 Jun 2023
6 points (100.0% liked)

Lemmy Support

4624 readers
35 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
6
OpenAPI spec? (pawb.social)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Is there an api spec available somewhere so I can generate a client in languages that aren't currently supported? Duplicating effort across multiple languages and libraries doesn't seem ideal.

Edit: I couldn't find any so I threw one together, myself: https://github.com/Stumblinbear/lemmy-openapi

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 1 points 1 year ago (1 children)
[โ€“] [email protected] 1 points 1 year ago

Not exactly. Having an actual OpenAPI spec (usually defined in JSON) would let you do codegen to create the data structures and api clients for pretty much any language without much effort.