Commit 1e0daac
authored
feat(admin): OpenAPI/Swagger docs for the admin API (#10)
Add a dedicated admin OpenAPI spec (src/admin-openapi.ts) documenting
every /admin/api endpoint — domains, addresses, API keys, blacklist,
sessions, settings — with request/response shapes and error codes.
Served on the admin port (behind the auth proxy) at GET /admin/api/docs
(Redoc) and GET /admin/api/openapi.json, both mounted under /admin/api
so they don't collide with the SPA catch-all. The SPA nav gains an
"API Docs" link. The spec's version is sourced from the public
openApiSpec so the two specs can't drift.1 parent 8b07518 commit 1e0daac
7 files changed
Lines changed: 452 additions & 2 deletions
File tree
- src
- admin-ui
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
10 | 31 | | |
11 | 32 | | |
12 | 33 | | |
| |||
168 | 189 | | |
169 | 190 | | |
170 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
171 | 198 | | |
172 | 199 | | |
0 commit comments