beidl message
This commit is contained in:
parent
fc372073f3
commit
85d7162419
28 changed files with 413 additions and 84 deletions
34
http-requests/category.http
Normal file
34
http-requests/category.http
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
### 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}}
|
||||
Reference in a new issue