feat(api-docs): reintroduce API doc generation (#289)

- reintroduces API doc generation via API_DOCS_ENABLED
- accessible publicly via /api/docs and /api/openapi.json
This commit is contained in:
Zach
2026-04-22 17:26:58 -04:00
committed by Zach Yale
parent 351074fcb6
commit 5ac7b5553e
9 changed files with 102 additions and 4 deletions
+9
View File
@@ -24,6 +24,15 @@ just api run
just api check
```
## API Docs (`API_DOCS_ENABLED`)
- `application.yaml` binds `app.api-docs.enabled` to `API_DOCS_ENABLED` (default `false`).
- `application.yaml` binds `springdoc.api-docs.enabled` to `app.api-docs.enabled`.
- `application-dev.yml` enables docs for local dev profile runs by default.
- For runtime/container profiles, set `API_DOCS_ENABLED=true` to expose:
- `/api/openapi.json`
- `/api/docs`
## Backend Conventions
- Use Spring Data JPA repository methods or JPQL. Do not introduce native queries unless a maintainer has explicitly approved them.