Repository navigation
Description
API product implementation work · roadmap #1008 · use parent dependency order; not a separate product rank.
Part of #857. Stack rank 10 of 13. Depends on: T4 (the public document exists), T9 (the getting-started flow it documents).
Color
The visible deliverable. The browser never reaches er-server, so the spec is served by a BFF route and the page renders the public document. This ticket carries the epic's one open design decision: every off-the-shelf viewer (Swagger UI, Redoc, Scalar) uses a colour-coded HTTP-method palette as its primary affordance, against a design doc that forbids any palette — and a vendored stylesheet dodges the ESLint gate but not the rule. First task is the decision, recorded in the ticket: a grayscale theme override (hue replaced with weight/scale/side-of-axis per the design system's techniques) vs a documented exception owned by frontend-design-system.
Scope
- BFF route serving
openapi.public.json(+check-bff-authz.mjsentry). /docs/apipage rendering the viewer.MARKETING_PUBLIC_PATHSinsrc/lib/site/routes.ts+sitemap.tsin the same edit (the sitemap file's own comment pairs them) — without the PUBLIC_PATHS entry, crawlers and signed-out visitors get a login redirect.- Getting-started copy: mint a key (T9 flow) → Authorize (T3's bearer scheme) → first call.
- Viewer dependency must clear
make frontend-audit(HIGH/CRITICAL advisories + the license allowlist). - CSP: fine today —
script-src 'self' 'unsafe-inline', report-only (next.config.ts). - Axe gate registration for the new screen.
- Skills in this PR:
frontend-design-systemif an exception is minted;landing-pageif the page sits in the marketing group.
Out of scope
An internal-document viewer (the internal doc stays a committed artifact); any change to the spec content itself.
Testing
- Renders signed-out (Playwright: the proxy does not redirect
/docs/api). - No palette-rule violation:
make frontendgreen with the viewer styled. - Axe passes on the new screen;
make frontend-auditclean with the new dependency. - Playwright: the Authorize → first-call flow against the mock backend.
Definition of done
Epic DoD, plus: a signed-out visitor reads the public API docs at /docs/api; the page documents the connect flow end-to-end with T9; the grayscale decision is written down where the design system says it lives.
Activity
athvin commentedon Nov 25, 2026
Decisions (owner, 2026-11-25), recorded before any code as the ticket asks:
/docs/apirendersopenapi.public.jsonwith the repo's own components. HTTP methods are distinguished by weight, case and position, never hue. This rules out Swagger UI, Redoc and Scalar. A stock viewer would need either a colour exception or a vendored grayscale theme that each upgrade can silently undo, plus a new dependency to clearmake frontend-audit.curl(and code) for the first call, with the key and origin as environment variables, following the Self-service API keys: org-admin minting with a role ceiling, list endpoint, show-once UI #866 connect flow. The browser never sends a customer key anywhere, and the BFF boundary is unchanged: no relay of caller-supplied credentials and no CORS on er-server. The Playwright test asserts the generated request instead of a live response.athvin commentedon Nov 25, 2026
Claimed — working in #1217 (draft). Closing that PR releases the claim.
feat(docs): /docs/api — grayscale public API reference with the conne…
docs(skills): /docs/api and the no-stock-viewer decision (#867)
test(marketing): root-anchor the preview's server-code guard (#867)
feat(docs): /docs/api — grayscale public API reference with the conne…
docs(skills): close the OpenAPI epic's skill sweep (#870)
docs(skills): close the OpenAPI epic's skill sweep (#1228)