Skip to content

ismailkarsli/lemmy-openapi

Repository files navigation

Lemmy OpenAPI

Auto-generated Lemmy OpenAPI files from lemmy-js-client.

Use schema

parameter required default
server false lemy.lol
version false the most compatible version with the instance

In cases where the server is given but the version is not, the proxy tries to choose the version of lemmy-js-client that matches the version of the instance. If it cannot find it, it returns the latest version.

Generate

  • Clone this repo.
  • Run bun install to install dependencies.
  • Run ./src/clone-repo.sh to clone lemmy-js-client repo.
  • Run LEMMY_VERSION=0.20.0 ./src/generate-spec.sh to generate OpenAPI schema. LEMMY_VERSION is the target version. By default its the latest git tag.