32 lines
756 B
HTTP
32 lines
756 B
HTTP
### Get All Students (Login)
|
|
# @name login
|
|
POST http://localhost:8000/api/v1/login
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
|
|
{
|
|
"email": "[email protected]",
|
|
"password": "123"
|
|
}
|
|
|
|
### Capture the token & id
|
|
@token = {{login.response.body.token}}
|
|
@id = {{login.response.body.user.id}}
|
|
|
|
### Get All matches
|
|
GET http://localhost:8000/api/v1/matches
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Get me user
|
|
GET http://localhost:8000/api/v1/users/me
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Get me matches
|
|
GET http://localhost:8000/api/v1/users/{{id}}/matches
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
Authorization: Bearer {{token}} |