Skip to content

Dna docs open api spec only - #204

Merged
camerontarget14 merged 8 commits into
mainfrom
dna-docs-open-api-spec-only
Sep 28, 2026
Merged

camerontarget14 merged 8 commits into
mainfrom
dna-docs-open-api-spec-only

Conversation

@camerontarget14

Copy link
Copy Markdown
Collaborator

Summary

Added OpenAPI spec as well as the docusaurus documentation for DNA.

Testing

  • I have tested these changes locally
  • I have run all relevant automated tests
  • I have verified this does not break existing workflows
  • For changes that can be tested in UI, I have included screenshots or gif animations of the changes.

How I Tested

Stood the docs site up in a browser.

Screenshot 2026-08-29 at 8 53 45 AM

FastAPI already generates the spec at /openapi.json; export it to
docs/openapi.json so the API surface shows up in review and can feed
client codegen without a running server.

- scripts/export_openapi.py writes the spec (sorted keys, stable diffs)
  and has a --check mode for staleness
- tests/test_openapi_spec.py fails on drift, and on any endpoint missing
  a tag, summary, description, or security requirement
- make openapi / make openapi-check for regeneration via the api
  container
- declare the Attachments tag and add docstrings to the five Note QC
  handlers, both of which the new checks caught as gaps
- document the spec and regen workflow in the backend README

Signed-off-by: Cameron Target <camerontarget@gmail.com>
Signed-off-by: Cameron Target <camerontarget@gmail.com>
Signed-off-by: Cameron Target <camerontarget@gmail.com>
Signed-off-by: Cameron Target <camerontarget@gmail.com>
The spec was exported from the backend/OpenAPI_spec branch, whose base
differs from this one, so the drift test failed after the replay. Rerun
scripts/export_openapi.py and dna-docs/scripts/fetch-openapi.sh.

Drops the five /rv-sync/* paths (not present on this branch) and picks
up
the add_version request changes (version_name/project_id/link_entity_*).

Signed-off-by: Cameron Target <camerontarget@gmail.com>
Picks up GET /transcription/extension/health and the has_scratch field
from #173/#188. The health probe is intentionally public (feature-flag
boolean or 404, same class as /health), so it's added to the drift
test's UNAUTHENTICATED_PATHS.
Signed-off-by: Cameron Target <camerontarget@gmail.com>
@camerontarget14 camerontarget14 linked an issue Sep 21, 2026 that may be closed by this pull request
3 tasks
@camerontarget14
camerontarget14 merged commit 92df26f into main Sep 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs site and user guides

1 participant