|
| 1 | +@baseURL = http://localhost:8000 |
| 2 | +@token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2ODg1NzgwMzQsImlhdCI6MTY4ODQ5MTYzNH0.03hUcVbQUOn6MX-FoWFcThvPF9PBgozJIhYWc0V9E6Q |
| 3 | + |
| 4 | +### Test API |
| 5 | +GET {{baseURL}}/health |
| 6 | +Content-Type: application/json |
| 7 | + |
| 8 | +### User Register |
| 9 | +POST {{baseURL}}/user/register |
| 10 | +Content-Type: application/json |
| 11 | + |
| 12 | +{ |
| 13 | + "name": "John Doe", |
| 14 | + "phone": "1234567890", |
| 15 | + "email": "johndoe@example.com", |
| 16 | + "password": "password123" |
| 17 | +} |
| 18 | + |
| 19 | +### User Login |
| 20 | +POST {{baseURL}}/user/login |
| 21 | +Content-Type: application/json |
| 22 | + |
| 23 | +{ |
| 24 | + "email": "johndoe@example.com", |
| 25 | + "password": "password123" |
| 26 | +} |
| 27 | + |
| 28 | +### Create Contact |
| 29 | +POST {{baseURL}}/contact |
| 30 | +Content-Type: application/json |
| 31 | +Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2ODg4MDA0MTMsImlhdCI6MTY4ODcxNDAxM30.nJhkx4n7VeoyQQ0hax5hsuYFG0Yo6Q4OIN3_cFqIGUw |
| 32 | + |
| 33 | +{ |
| 34 | + "name": "neo ai", |
| 35 | + "phone_number": "1234567891" |
| 36 | +} |
| 37 | + |
| 38 | +### Mark as spam |
| 39 | +POST {{baseURL}}/spam |
| 40 | +Content-Type: application/json |
| 41 | + |
| 42 | +{ |
| 43 | + "phone_number": "1234567890" |
| 44 | +} |
| 45 | + |
| 46 | +### Search by Name |
| 47 | +GET {{baseURL}}/search?name=neo |
| 48 | +Content-Type: application/json |
| 49 | +Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2ODg4MDA0MTMsImlhdCI6MTY4ODcxNDAxM30.nJhkx4n7VeoyQQ0hax5hsuYFG0Yo6Q4OIN3_cFqIGUw |
| 50 | + |
| 51 | +### Search by Phone Number |
| 52 | +GET {{baseURL}}/search?phone_number=1234567890 |
| 53 | +Content-Type: application/json |
| 54 | +Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2ODg4MDA0MTMsImlhdCI6MTY4ODcxNDAxM30.nJhkx4n7VeoyQQ0hax5hsuYFG0Yo6Q4OIN3_cFqIGUw |
| 55 | + |
| 56 | +### User Details |
| 57 | +GET {{baseURL}}/user/1 |
| 58 | +Content-Type: application/json |
0 commit comments