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