Skip to content

API documentation included with lemonade server #1700

@ckuethe

Description

@ckuethe

Documentation Page / Section

https://lemonade-server.ai/docs/server/server_spec/

What's Missing or Wrong

Following on to #1616 it would be nice to have a local copy of the API documentation, especially the lemonade-specific parts. I see two main benefits:

  1. the API documentation would inherently match the running server version. Maybe there's a new endpoint, or one was removed in the development/latest version. That doesn't matter as much as long as the server can describe the API it supports.
  2. improved offline support. It seems like everybody has agreed on OpenAI-compatible endpoints, with a little bit of Ollama-compatible pixie dust, and there are bindings for every language. We don't really care about which REST methods are available for the standard operations .. but the lemonade-specific details are definitely worth documenting.

Suggested Improvement

Include a copy of the API documentation for the running server version, and make it accessible over the network. This could be an OpenAPI spec, a pretty swagger endpoint, a /docs path that just returns a markdown file, some server-side magic to automatically return HTML or JSON depending on the value of the Content-Type header ... I could work with any of these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions