| Params / Query | Description | Examples |
|---|---|---|
| id | Get a team with id provided. | e.g. path/id |
| team | Search all teams contain the 'team' query string | e.g. path?team=string |
| rank || rankHigherThan & rankLowerThan | Get the exact team with that rank or teams within the range. Default rankHigherThan = 0 & rankLowerThan = 1000 | e.g. path?rank=1 OR path?rankHigherThan=3 path?rankHigherThan=5&rankLowerThan=7 |
| Params / Query | Description | Examples |
|---|---|---|
| Get all groups in World Cup 22 | e.g. path/groups | |
| id | Get a player with id provided. | e.g. path/player/id |
| player | Search all players contain the 'name' query string | e.g. path/player?name=string |
Due to a huge numbers of records can be returned, I limited it just 100 records per request.
Add 'page' query to get next 100 records, total number of pages also will be returned.
Results:
| Params / Query | World Cup | International |
|---|---|---|
| all |
get all matches e.g. path/all |
|
| id | e.g. path/id | |
| date |
Using date like teams ranking above.
e.g. path?date=1999-07-15 OR path?dateHigherThan=2019-12-01&dateLowerThan=2020-01-01 |
|
| year |
Exact year only Get all matches of that World Cup year. e.g. path/year/2002 |
No support. |
| Methods | Params - Query | Required | Examples |
|---|---|---|---|
| GET | id | Yes | path/6516f0d1f4982d78357070ed |
| POST |
|
Yes except winConditions
|
e.g. path/new-match/ |
| PUT | e.g. path/id | ||
| PATCH | None, just update any field you want | ||
| DELETE | id | Yes |