Move the API reference from the README to docs/api.md
docs/api.md holds the routes, elements, blocks, glyphs and error codes. README keeps the overview, installing, configuration, the command line and development, with a pointer to the API reference. The 0.1 migration section is dropped; the changelog's Breaking entries cover the 0.1 changes. Release archives include docs/api.md, and the 400 for a 0.1 job body points to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
15f63b6846
commit
9f7c5db923
9 files changed
+479
-488
No files matched your search
@@ -13,8 +13,9 @@ root `Dockerfile`.
|
||||
Every change follows it. `.gitea/workflows/`, `packaging/`, the root
|
||||
`Dockerfile` and `install.sh` take the place of the standards' `build/` and
|
||||
`scripts/`.
|
||||
- `README.md` is the reference for the API, elements, error codes,
|
||||
configuration, command line and package layout. There is no api.md or
|
||||
- `docs/api.md` is the reference for the API: routes, elements, blocks and
|
||||
error codes. `README.md` covers installing,
|
||||
configuration, the command line and the package layout. There is no
|
||||
OpenAPI document.
|
||||
- `docs/design.md` explains why the daemon is shaped as it is and lists what
|
||||
is deferred. Change it in the same commit as any code that departs from it.
|
||||
@@ -59,8 +60,8 @@ pinned as tools in `go.mod`, so never install them separately.
|
||||
`.gitea/workflows/test.yml` runs the same gate, with `goreleaser check` in
|
||||
place of the snapshot, on every branch push. It builds no binaries: only
|
||||
`release.yml` does, for `v*` tags on main. `security.yml` runs govulncheck
|
||||
weekly and on pushes to main. A change is done
|
||||
when the gate passes and README and CHANGELOG.md say what changed.
|
||||
weekly and on pushes to main. A change is done when the gate passes and the
|
||||
docs (`README.md` or `docs/api.md`) and CHANGELOG.md say what changed.
|
||||
|
||||
## Go version
|
||||
|
||||
@@ -90,7 +91,8 @@ when the gate passes and README and CHANGELOG.md say what changed.
|
||||
is a timeout, never a printer fault. Anything that acts on status re-checks
|
||||
first, as `/healthz` does.
|
||||
- Every refusal is an `apiError` with a code from `server/errors.go`. A code is
|
||||
part of the API: never rename one, and add a new code to the README table.
|
||||
part of the API: never rename one, and add a new code to the table in
|
||||
`docs/api.md`.
|
||||
Refusals are not logged as failures. An unexpected error is logged and sent
|
||||
to Sentry once.
|
||||
- Print contents, tokens and the API secret never reach logs or Sentry. The
|
||||
@@ -100,8 +102,8 @@ when the gate passes and README and CHANGELOG.md say what changed.
|
||||
- A config key: `internal/pkg/config` (the default and the validation),
|
||||
`configs/config.example.toml` and README § Configuration.
|
||||
- A route, element field, status or error code: its code, its tests and
|
||||
README. A new route also needs its case in `TestRoutesConform`, which
|
||||
fails for a route without one.
|
||||
`docs/api.md`. A new route also needs its case in `TestRoutesConform`,
|
||||
which fails for a route without one.
|
||||
- Dependencies are at their latest stable release when added or bumped.
|
||||
- Commit, push, tag or release only when the owner asks. Releases are
|
||||
`vX.Y.Z` tags on `main`; `release.yml` refuses a tag whose commit is not on
|
||||
|
||||
Reference in new issue
Block a user