API reference
Quick reference for the project's main API.
Endpoints
GET /items
Returns the list of items.
Response:
[
{ "id": 1, "name": "alpha" },
{ "id": 2, "name": "beta" }
]
POST /items
Creates a new item.
Body:
{ "name": "gamma" }
Errors
| Code | Meaning |
|---|---|
| 400 | Bad request |
| 404 | Not found |
| 500 | Server error |