Overview
| Artifact ID: | 7090f256f1eefc58dc448ee31767aa87b38ea3a3b79c9445e443140fb9ff8cc7 |
|---|---|
| Ticket: | c164c63687d04d5af47842e2de6c0fbdc2ad0e30
Serve an interactive OpenAPI page instead of the flat API doc |
| User & Date: | dmestas on 2026-08-18 19:56:50 |
Changes
- Untracked field cmimetype: "text/x-markdown"
- comment changed to:
`/docs` renders the registry as flat markdown. The registry already emits a real OpenAPI document (0001 §9: one registry serves HTML, JSON and OpenAPI), so the data for a browsable, try-it page exists — only the presentation is missing. dagnats does this well and is worth copying from. ## The thing to decide first Every mainstream renderer — Swagger UI, Redoc, Scalar, Elements — is a large JavaScript bundle. quarry allows exactly ONE script, the vendored Datastar module, and no external hosts at all (the privacy page states that as a fact about this software). So this is not a "pick a library" task; it is a choice between: - **Vendor a renderer.** Self-contained, no external host, but it is a second script and a large one, and it makes the one-script rule a two-script rule with no obvious stopping point after that. - **Render it server-side.** Expand the doc page into per-operation sections with parameters, schemas, and example requests, generated from the same registry data. No new script, and it works with JavaScript off — but "try it" then means a form that posts to the real endpoint rather than a client-side console. - **Serve the spec and stop.** Publish `/openapi.json` and let readers point their own tooling at it. Smallest possible change, and arguably the most useful for anyone actually integrating. The third is worth doing regardless and immediately — a machine-readable spec at a stable URL costs nothing and is what an integrator actually wants. The second is the one that fits this codebase. Recommend both, and treat vendoring a renderer as a deliberate exception to be argued for separately rather than smuggled in with a UI ticket.
- severity changed to: "Minor"
- status changed to: "Open"
- title changed to:
Serve an interactive OpenAPI page instead of the flat API doc
- type changed to: "Feature_Request"