mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:27:07 +00:00
Add API documentation
This commit is contained in:
@@ -34,3 +34,13 @@ The following environment variables affect the behaviour of the application:
|
||||
* `DOUGAL_API_CONFIG`: Location of the API configuration file. Default is `$HOME/etc/www/config.json`.
|
||||
|
||||
The server always listens on 127.0.0.1. Use a proxy like Nginx to expose it to the network.
|
||||
|
||||
## Use
|
||||
|
||||
The API specification may be found under [`./spec`](./spec).
|
||||
|
||||
Generate the documentation with:
|
||||
|
||||
```bash
|
||||
./node_modules/.bin/redoc-cli bundle ./spec/openapi.yaml
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user