Files
sonar-test-pyt2/docs/api.md
Scaffolder ef9238e643 initial commit
Change-Id: I2176a752738f5a750cdad5c5722ca01248d30106
2026-05-07 14:55:47 +00:00

21 lines
640 B
Markdown

# API Reference
Base URL: `https://sonar-test-pyt2.kyndemo.live`
## Items `/api/items`
| Method | Path | Body | Response |
|--------|------|------|----------|
| GET | `/api/items` | — | Array of items |
| POST | `/api/items` | `{"name":"...","description":"..."}` | Created item (201) |
| GET | `/api/items/{id}` | — | Item or 404 |
| PUT | `/api/items/{id}` | `{"name":"...","description":"..."}` | Updated item |
| DELETE | `/api/items/{id}` | — | `{"deleted":id}` |
## Observability
| Path | Description |
|------|-------------|
| `/health` | Health check — `{"status":"UP"}` |
| `/metrics` | Prometheus exposition format |