Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 889 Bytes

test.rest

File metadata and controls

58 lines (37 loc) · 889 Bytes

# Signup Request ### Signup (POST) POST http://127.0.0.1:8000/users/register/ Content-Type: application/json

{
"email": "user1@example.com", "password": "password123", "role": "rider"

}

### Login (POST) POST http://127.0.0.1:8000/users/login/ Content-Type: application/json

{
"email": "user1@example.com", "password": "password123"

}

### Signup (POST) POST http://127.0.0.1:8000/users/register/ Content-Type: application/json

{
"email": "driver1@example.com", "password": "password123", "role": "driver"

}

### Login (POST) POST http://127.0.0.1:8000/users/login/ Content-Type: application/json

{
"email": "driver1@example.com", "password": "password123"

}

### Invalid Signup (GET) GET http://127.0.0.1:8000/users/register/ Content-Type: application/json

### Invalid Login (GET) GET http://127.0.0.1:8000/users/login/ Content-Type: application/json