API Reference¶
IsardVDI publishes its API reference in OpenAPI format, generated from the code of the installed version. Therefore, it always matches the installation.
How to enable it¶
- In the file
isardvdi.cfg, setENABLE_OPENAPI=true(the default isfalse). - Regenerate the configuration and bring the containers up again (
./build.shanddocker compose up -d).
Where to find it¶
Once enabled, the installation serves the following addresses:
| Address | Content |
|---|---|
/openapi |
Home page with links to all specifications |
/api/v4/openapi.json |
OpenAPI specification for API v4 (JSON) |
/api/v4/docs |
Interactive documentation for API v4 (Swagger UI) |
/api/v4/redoc |
API v4 documentation in ReDoc format |
/openapi/authentication.json, /openapi/docs/authentication, /openapi/redoc/authentication |
The same for the authentication service |
/openapi/notifier.json, /openapi/docs/notifier, /openapi/redoc/notifier |
The same for the notifications service |
Before enabling it
These addresses do not require login: anyone who reaches the installation can access them. Enable it only on installations where you want to publish the reference.
API requests¶
The API routes do require authentication: each request must include the header Authorization: Bearer <token>. To obtain a token without logging in for every request, use the user's API key; see User API key.