{
- "cprNumber": "1212902020,
- "name": "username",
- "surname": "surname",
- "Age": 12,
- "email": "[email protected]",
- "password": "1234",
[{"field":"Name","message":"Field can not be empty"},{"field":"Password","message":"Minimum 6 characters"},{"field":"Surname","message":"Field can not be empty"},{"field":"Email","message":"Incorrect email"},{"field":"CPR number","message":"Incorrect CPR"}] }
{
- "cprNumber": "1212902020,
- "name": "username",
- "surname": "surname",
- "Age": 12,
- "email": "[email protected]",
- "password": "1234",
}
url->api/user/login
{
- "password":"123456",
- "email": "[email protected]" }
{
- "idUser":44,
- "cprNumber":"1212904667",
- "name":"Carol",
- "surname":"testurnem",
- "userType":{"Type":"user","idUserType":3},
- "email":"[email protected]",
- "password":"",
- "token":"ab604a18-b3f6-4562-ab7b-5f580bc6ab55" }
url->api/user/logout
{
- "idUser":45 }
OK
######headers
- token bull
- userID 1
{
*"idUser":1 *"userType":1 // *"1"=administrator "2"=secretary "3"=user
}
######headers
- token bull
- userID 1
######body {
- "idbookings":0,
- "time": "time",
- "endTime": "endtime",
- "bookingStatus_idbookingStatus": 1,
- "bookingType_idbookingType": 1,
- "user_id_user": 1 }
####delete booking[delete]
######headers
- token gigi
- userID 1
######body
- {
- "idbookings": 5
- }
####readSingle[get] url->api/booking/ID
######headers
- token gigi
- userID 1
######headers
- token bull
- userID 1
######body {
- "idbookings": "idbookings"
- "time": "time",
- "endTime": "endtime",
- "bookingStatus_idbookingStatus": 1,
- "bookingType_idbookingType": 1
- "user_id_user": "user_id_user"
}