20 lines
619 B
Markdown
20 lines
619 B
Markdown
# API Reference
|
|
|
|
Base URL: `https://tmpl-test-go.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` | `{"status":"UP"}` |
|
|
| `/metrics` | Prometheus exposition format |
|