Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 2.19 KB

request.rest

File metadata and controls

91 lines (62 loc) · 2.19 KB

POST http://localhost:8000/api/user/auth/login Content-Type: application/json

{
"email":"[email protected]", "password":"12345"

}

GET http://localhost:8000/api/user/ Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MWI5YmYyMWUyOTgyZTk0NThkNTBmNjciLCJlbWFpbCI6ImpvYmVlbDQ1NkBnbWFpbC5jb20iLCJwYXNzd29yZCI6IiQyYiQxMCQyQjgxb3ZkWklRR2VJU2s3OFB2LnhlcnFOSDBCc2daS0MuMi9GV3c1dVJDRnZqd0FDWnB5UyIsImlzQWRtaW4iOmZhbHNlLCJpYXQiOjE2Mzk1NjMwNTd9.C7UUUuEuwZI25NCoUsJO5obJ9YPaB5wPWmsMByOEw_g ### POST http://localhost:8000/api/user/auth/refreshToken Content-Type: application/json

{

"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1vaGFtZWRlc2hpYmEyMDIxQGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2Mzg0ODEwNTh9.vD_uxOwLNU8gJFc7qh8hv1J8vL686f_sEGbND0v1XnM"

}

DELETE http://localhost:8000/api/user/auth/logout Content-Type: application/json

{

"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1vaGFtZWRlc2hpYmEyMDIxQGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2Mzg0NjQ0MjR9.0U9FY-BQ8pIQMN3fNZcOHt3TMLtVovXqGZPTHyn5fjM"

}

###

POST http://localhost:8000/api/user/register Content-Type: application/json

{

"email":"[email protected]", "password":"12345", "firstName":"Admin", "lastName":"Admin", "passportNumber":"0", "isAdmin":"true"

}

###

GET http://localhost:8000/api/airplaneModel/showAllModels Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFkbWluLjEyM0BnbWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjM4NDk1MTQ4LCJleHAiOjE2Mzg0OTU3NDh9.x1aXV6V_z37fZzZ0XRL2G6Jhth9cUDBmV6dUgXZgXM4

### POST http://localhost:8000/api/user/register Content-Type: application/json

{
"email":"[email protected]", "password":"12345", "passportNumber":"12345", "firstName":"Mohamed", "lastName":"Jobeel"

}

###

POST http://localhost:8000/api/user/auth/login Content-Type: application/json

{
"email":"[email protected]", "password":"12345"

}

POST http://localhost:8000/api/user/register Content-Type: application/json

{
"email":"[email protected]", "password":"12345", "passportNumber":"12345", "firstName":"Mahmoud", "lastName":"Jobbel"

}