This commit is contained in:
Mateusz Gruszczyński committed 2026-11-25 15:47:34 +01:00
1 parent 6df256cdbb
commit 0d6249e383
159 files changed
+16737 -1971

No files matched your search

+4 -1
View File
@@ -16,12 +16,14 @@ The current bundled `src/admin/openapi.json` declares these operations (among ot
| `POST /api/config/reload` | Revalidate and hot-reload manually changed `--config` JSON; revision-aware. |
| `GET/POST /api/api-tokens` · `DELETE /api/api-tokens/{id}` | List/generate/revoke general RO/RW API tokens (browser-admin-only). |
| `GET/POST/DELETE /api/prometheus-token` | Inspect/generate/rotate/revoke a standalone Prometheus scrape token (browser-admin-only). |
| `GET /api/config/{section}` · `PUT /api/config/{section}` | Read or atomically replace one of 23 supported configuration sections. |
| `GET /api/config/{section}` · `PUT /api/config/{section}` | Read or atomically replace a supported configuration section, including `policy` since 0.42.0. |
| `POST /api/config/geoip/update` | Run a GeoIP download/check/reload immediately using already-saved GeoIP settings; does not change revision. |
| `GET /api/config/history` · `POST /api/config/history/restore` | Review/restore retained configuration snapshots. |
| `GET /api/status` · `GET /api/backends` | Operational status and backend observations. |
| `GET /api/cache` · `POST /api/cache/purge` · `POST /api/cache/invalidate` | Cache observations and authenticated invalidation. `GET` supports the lightweight `view=live` polling view. |
| `GET /api/cache/rules/stats` · `GET /api/cache/rules/targets` · `POST /api/cache/rules/test` · `POST /api/cache/rules/import-vcl` | Cache rule match counters, the vhosts a rule can target (ordinary and generated Docker vhosts), simulation of saved or draft rules for a test request/response (also for Docker vhosts), and conversion of a VCL subset into rules (nothing is saved). See [Cache rules](CACHE.md#cache-rules-vcl-style) and the [supported VCL import matrix](VCL.md). |
| `POST /api/policy/import-haproxy` · `POST /api/policy/test` | Convert a strictly supported HAProxy snippet into a policy draft, or evaluate policy rules against a supplied fixture with a trace. Neither endpoint saves configuration. See [HTTP policy rules](POLICY.md). |
| `GET /api/policy/stats` | Match/action-error counters for active policy rules by scope; reset on configuration recompilation. Draft tests do not affect the counters. |
| `GET /api/transform` | Transform observations and resource usage. Supports the lightweight `view=live` polling view. |
| `GET /api/logs` · `GET /api/live-logs` | Recent and streaming request logs. |
| `GET /api/file-logs` · `GET /api/file-logs/query` | Stored-log exploration. Source metadata includes `domains` (current configured hostnames/aliases, empty when not applicable); source and group IDs remain stable. |
@@ -94,6 +96,7 @@ The section name in the URL and its corresponding JSON member in a full configur
| `transform` | `transform` |
| `forwarding` | `forwarding` |
| `headers` | `headers` |
| `policy` | `policy` |
| `prometheus` | `prometheus` |
| `geoip` | `geoip_updates` |
| `administration` | `administration` |