Removes outdated methods used by the processor for requesting match data. Introduces a new endpoint for bulk-requesting match data that supports pagination.
New Endpoints
GET/matches
Returns match data in bulk
Pagination enforced
Results ordered by Id (primary key)
Query parameters
limit Optional, controls the amount of matches returned.
Default 100
Constraints Minimum 1, Maximum 5000
page Optional, controls which block of size limit to return.
Default 1
Constraints Minimum 1
filterUnverified Optional, if unverified matches should be excluded from results. Default: True, Constraints: Requires admin or system permission if false
Returns a new PagedResultDTO
{
"next": "Nullable: Link to the next page of results",
"previous": "Nullable: Link to the previous page of results",
"count": 100,
"results": []
}
Example (Gets first page of 100 matches)
Request
fetch("otr.stagec.xyz/api/v1/matches?limit=100&page=1",
{
method: "GET",
headers: new Headers().append("Authorization", "Bearer {}")
});
Removes outdated methods used by the processor for requesting match data. Introduces a new endpoint for bulk-requesting match data that supports pagination.
New Endpoints
GET
/matches
limit
Optional, controls the amount of matches returned.Default
100Constraints
Minimum 1, Maximum 5000page
Optional, controls which block of sizelimit
to return.Default
1Constraints
Minimum 1filterUnverified
Optional, if unverified matches should be excluded from results. Default: True, Constraints: Requires admin or system permission if falsePagedResultDTO
Breaking Changes
Endpoint Changes
GET
/matches/ids
GET
/matches/id-mapping
POST
/matches/convert
Schema Changes
MatchDTO
(Returns fromGET
/matches
, etc)mode
toruleset
Closes #308