Commit 9bb1743
authored
Add /openapi.yaml endpoint to serve the OpenAPI specification (observatorium#869)
* change: bundle the OpenAPI spec into a single file
This commit bundles the OpenAPI specification into a single file which
makes it possible to be used by online OpenAPI editors.
The YAML file has been generated by the `bundle` command of the Redocly
tool (https://redocly.com/docs/cli).
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* feat: add an OpenAPI endpoint
This commit adds a new `/openapi.yaml` endpoint which serves the current
OpenAPI specification which is read from the static YAML definition
(thanks to the `embed` standard library).
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
---------
Signed-off-by: Simon Pasquier <spasquie@redhat.com>1 parent 9709b1e commit 9bb1743
12 files changed
Lines changed: 2454 additions & 2506 deletions
File tree
- client
- models
- parameters
- responses
- test/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 302 | + | |
| 303 | + | |
0 commit comments