Improve this wiki¶
This wiki is plain Markdown in git, built with Zensical. Every page has an edit (pencil) button at the top that opens it in the repository.
Conventions¶
- One page, one job. Guides answer "how do I …"; reference pages answer "what exactly is …". Link between them instead of repeating content.
- Guides use one template: When to use → Request → Example response → Parameters → Errors → Related.
- Real examples. Paste responses captured from the API, shortened with
…. Say when an example only shows the schema's shape. - Never paste a real API key or anything private (internal hostnames, IPs, secrets). A test rejects common patterns.
- The base URL lives in one place:
extra.api_baseinmkdocs.yml(Zensical reads it). Write{{ api_base }}in pages.
When the API changes¶
- In a drug-gate checkout next to this repo, run
scripts/sync-openapi.sh. - Run
pytest -q. It fails if a new/v1endpoint has no row in All endpoints. - Add the row (and a guide section if it's a new use case), then open a PR.
How changes go live¶
Merging a pull request to main publishes the site automatically: the pipeline
builds a new image, rolls it out, checks the site answers, and rolls back by
itself if the new version doesn't come up. Changes are usually live a few
minutes after the merge.