justapi — /docs

Automatic OpenAPI Schema

JustAPI generates an OpenAPI 3.1 schema at /openapi.json:

curl http://localhost:8000/openapi.json

Generate Python Client

pip install openapi-generator-cli

openapi-generator-cli generate \
  -i http://localhost:8000/openapi.json \
  -g python \
  -o ./clients/python

Generate TypeScript Client

openapi-generator-cli generate \
  -i http://localhost:8000/openapi.json \
  -g typescript-axios \
  -o ./clients/typescript

Available Languages

Language Generator
Python python
TypeScript typescript-axios
Go go
Java java
Ruby ruby
C# csharp
Swift swift5

Custom ID Function

Customize operation IDs for better SDK generation:

from justapi import JustAPIApp

def custom_id(operation):
    return f"{operation.tags[0]}_{operation.name}" if operation.tags else operation.name

app = JustAPIApp(generate_unique_id_function=custom_id)

See Also

JustAPI v2.0.9 — Open Source MIT License · Built with WebTUI · GitHub

NORMAL master justapi/docs
utf-8 Top 1:1