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/user.http
Jonas Weissengruber 85d7162419 beidl message
2023-12-20 00:41:20 +01:00

43 lines
694 B
HTTP

### signup
POST {{url}}/user/signup
Content-Type: application/json
{
"email": "ratp@htl-steyr.ac.at",
"password": "test",
"firstname": "Peter",
"lastname": "Rathgeb"
}
### 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/1
Authorization: Bearer {{token}}
### list
GET {{url}}/user/list
Authorization: Bearer {{token}}
### load
GET {{url}}/user/load/2
Authorization: Bearer {{token}}