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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user