This repository has been archived on 2026-03-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
aeticket/http-requests/category.http
Jonas Weissengruber 85d7162419 beidl message
2023-12-20 00:41:20 +01:00

34 lines
549 B
HTTP

### create
POST {{url}}/category/create
Authorization: Bearer {{token}}
Content-Type: application/json
{
"name": "Erwachsene",
"price": 25.5,
"stock": 100
}
### update
PUT {{url}}/category/update
Authorization: Bearer {{token}}
Content-Type: application/json
{
"id": 1,
"name": "Erwachsene",
"price": 25.5,
"stock": 100
}
### delete
DELETE {{url}}/category/delete/1
Authorization: Bearer {{token}}
### list
GET {{url}}/category/list
Authorization: Bearer {{token}}
### load
GET {{url}}/category/2
Authorization: Bearer {{token}}