Skip to content

openapi

Prologue supplies minimal supports for openapi docs. You need to write openapi.json by yourself. Then Prologue will register corresponding routes.

import prologue
import prologue/openapi


app.serveDocs("docs/openapi.json")
app.run()

example for docs/openapi.json.

visit localhost:8080/docs or localhost:8080/redocs

hello world