> POST /api/register
{
"name": "max",
"password": "123"
}
> POST /api/login
{
"name": "max",
"password": "123"
}
> POST /api/items
> Authorization: <JWT>
{
"name": "Apple",
"count": 42,
"note": "Important apple"
}
> PUT /api/items
> Authorization: <JWT>
{
"id": 1,
"name": "Apple",
"count": 22,
"note": "Very important apple"
}
> GET /api/items
> Authorization: <JWT>
> DELETE /api/items?itemId=1
> Authorization: <JWT>