histories are a little messed, will change the logic in the future (techdebt)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
### Get All Students (Login)
|
||||
# @name login
|
||||
POST http://localhost:8000/api/login
|
||||
POST http://localhost:8000/api/v1/login
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
@@ -9,11 +9,24 @@ Accept: application/json
|
||||
"password": "123"
|
||||
}
|
||||
|
||||
### Capture the token
|
||||
### Capture the token & id
|
||||
@token = {{login.response.body.token}}
|
||||
@id = {{login.response.body.user.id}}
|
||||
|
||||
### Get All matches
|
||||
GET http://localhost:8000/api/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}}
|
||||
Reference in New Issue
Block a user