Files
tmpl-test-go/docs/api.md
Scaffolder e868792eda
All checks were successful
Build and Push to ACR / Platform guard (push) Successful in 5s
Build and Push to ACR / Build and Push (push) Has been skipped
initial commit
Change-Id: Ied1b5f2137f2b5f803d5411235607bd27c5e57ba
2026-03-24 10:43:21 +00:00

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 |