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

CodeMeaning
400Bad request
404Not found
500Server error