All checks were successful
Build and Publish TechDocs / build-and-publish (push) Successful in 1m27s
Change-Id: I3ada42bc15023348100ef2c47ba0830240e41633
21 lines
639 B
Markdown
21 lines
639 B
Markdown
# API Reference
|
|
|
|
Base URL: `https://sonar-test-go3.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 |
|