Admin platform, with users, transactions, games and admin creation
This commit is contained in:
@@ -5,7 +5,7 @@ Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
"email": "p[email protected]",
|
||||
"email": "a1@mail.pt",
|
||||
"password": "123"
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ Accept: application/json
|
||||
@id = {{login.response.body.user.id}}
|
||||
|
||||
### Get All matches
|
||||
GET http://localhost:8000/api/v1/matches
|
||||
GET http://localhost:8000/api/v1/games
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
@@ -55,7 +55,7 @@ Authorization: Bearer {{token}}
|
||||
"payment_reference": "912345678"
|
||||
}
|
||||
|
||||
### Get public stats
|
||||
### Get leaderboard
|
||||
GET http://localhost:8000/api/v1/leaderboard
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
@@ -64,4 +64,21 @@ Accept: application/json
|
||||
GET http://localhost:8000/api/v1/statistics/me
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### Get public stats
|
||||
GET http://localhost:8000/api/v1/statistics/public
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
### Get admin stats
|
||||
GET http://localhost:8000/api/v1/admin/statistics
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### Get admin stats
|
||||
GET http://localhost:8000/api/v1/admin/users
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
Reference in New Issue
Block a user