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
2023-12-20 09:14:01 +01:00

35 lines
565 B
HTTP

### create
POST {{url}}/category/create
Authorization: Bearer {{token}}
Content-Type: application/json
{
"name": "Erwachsene",
"price": 25.5,
"stock": 100,
"eventId": 1
}
### 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}}