beidl message
This commit is contained in:
parent
fc372073f3
commit
85d7162419
28 changed files with 413 additions and 84 deletions
21
http-requests/cart.http
Normal file
21
http-requests/cart.http
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
### add
|
||||
POST {{url}}/cart/add
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"id": 9999999,
|
||||
"cartEntries": [
|
||||
{
|
||||
"id": 2,
|
||||
"amount": 20
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
### list
|
||||
GET {{url}}/user/signin
|
||||
|
||||
|
||||
### checkout
|
||||
GET {{url}}/user/update
|
||||
Authorization: Bearer {{token}}
|
||||
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}}
|
||||
53
http-requests/event.http
Normal file
53
http-requests/event.http
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
### create
|
||||
POST {{url}}/event/create
|
||||
# Authorization: Bearer {{token}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": "Maturaball HTL Steyr 2024",
|
||||
"from": "2023-03-02T20:00:00.000Z",
|
||||
"to": "2023-03-03T05:00:00.000Z",
|
||||
"description": "Maturaball der Abteilungen EL, IT, ME, Y",
|
||||
"ticketCategories": [
|
||||
{
|
||||
"name": "Normal",
|
||||
"price": 25,
|
||||
"stock": 500
|
||||
},
|
||||
{
|
||||
"name": "Maturanten",
|
||||
"price": 0,
|
||||
"stock": 500
|
||||
},
|
||||
{
|
||||
"name": "Prechtl",
|
||||
"price": 50,
|
||||
"stock": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
### update
|
||||
PUT {{url}}/event/update
|
||||
Authorization: Bearer {{token}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Maturaball HTL Steyr 2024",
|
||||
"from": "2024-03-02T20:00:00.000Z",
|
||||
"to": "2024-03-03T05:00:00.000Z",
|
||||
"description": "Fluch der HTL"
|
||||
}
|
||||
|
||||
### delete
|
||||
DELETE {{url}}/event/delete/3
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### list future events
|
||||
GET {{url}}/event/list
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### load
|
||||
GET {{url}}/event/2
|
||||
Authorization: Bearer {{token}}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"dev": {
|
||||
"url": "http://localhost:8080/api/v1"
|
||||
"url": "http://localhost:8080/api/v1",
|
||||
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZXRpY2tldCB1c2VyIHRva2VuIiwiZXhwIjoxNzAzMTAwNzQyLCJ1c2VySWQiOjIsImlhdCI6MTcwMzAxNDM0Mn0.D9HBxWy1vIP82XOh_ocjLO9HB0lK_rQGjgD3a7KQrOE"
|
||||
}
|
||||
}
|
||||
|
|
@ -10,22 +10,34 @@ Content-Type: application/json
|
|||
}
|
||||
|
||||
### signin
|
||||
GET {{url}}/user/signin
|
||||
POST {{url}}/user/signin
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"email": "admin@email.com",
|
||||
"password": "a"
|
||||
}
|
||||
|
||||
|
||||
### update
|
||||
PUT {{url}}/user/update
|
||||
Authorization: Bearer {{token}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
|
||||
"email": "ratp@htl-steyr.ac.at",
|
||||
"firstname": "Peter Chef",
|
||||
"lastname": "Rathgeb"
|
||||
}
|
||||
|
||||
### delete
|
||||
DELETE {{url}}/user/delete/99
|
||||
DELETE {{url}}/user/delete/1
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### list
|
||||
GET {{url}}/user/list
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### load
|
||||
GET {{url}}/user/load/1
|
||||
|
||||
# eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZXRpY2tldCB1c2VyIHRva2VuIiwiZXhwIjoxNzAzMDU4MjczLCJ1c2VySWQiOjEsImlhdCI6MTcwMjk3MTg3M30.hC1N7hKYSIT-fqmaZ9bv3-YXOxQWdp-Sb5rZi4rARc0
|
||||
GET {{url}}/user/load/2
|
||||
Authorization: Bearer {{token}}
|
||||
|
|
|
|||
Reference in a new issue