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
+10
View File
@@ -182,6 +182,8 @@ Create a dev config at `booklore-api/src/main/resources/application-dev.yml`:
app:
path-book: '/path/to/booklore-data/books'
path-config: '/path/to/booklore-data/config'
api-docs:
enabled: true
spring:
datasource:
@@ -211,6 +213,14 @@ The UI will be available at http://localhost:4200 with hot-reload enabled.
---
## API Reference Docs
When enabled, API documentation is available as both an `openapi.json` and as publicly accessible docs. The endpoints are:
- Scalar UI is available at `http://localhost:6060/api/docs`
- OpenAPI JSON is available at `http://localhost:6060/api/openapi.json`
---
## Running Tests
Always run tests before submitting a pull request.