| 1 | @baseUrl = http://localhost:8080/api/v1 |
| 2 | |
| 3 | |
| 4 | ### Register User |
| 5 | # @name register |
| 6 | POST {{baseUrl}}/auth/register |
| 7 | Content-Type: application/json |
| 8 | |
| 9 | { |
| 10 | "email": "janedoecodewise@.com", |
| 11 | "password": "qwerty123", |
| 12 | "name": "Jane Doe" |
| 13 | } |
| 14 | |
| 15 | ### Login User |
| 16 | # @name login |
| 17 | POST {{baseUrl}}/auth/login |
| 18 | Content-Type: application/json |
| 19 | |
| 20 | { |
| 21 | "email": "janedoecodewise@gmail.com", |
| 22 | "password": "janedoecodewise" |
| 23 | } |
| 24 | |
| 25 | ### Get Current User Profile |
| 26 | # @name getProfile |
| 27 | GET {{baseUrl}}/auth/me |
| 28 | Authorization: Bearer {{login.response.body.data.token}} |