Headers
The Machina Sports API requires two HTTP headers:- A
Content-Typeheader specifying the request payload format - A
X-Api-Tokenheader containing the authentication token for request authorization
Sort, Filter and Paginate
The Machina Sports API works with sorting, filtering and paging for some larger requests. These mechanisms are defined in request body:- The
filtersobject defines filtering mechanism criteria - The
sortersarray defines a sorting mechanism- First a property to defines sorting criteria
- Second, 1 for ascending, -1 for descending
- The
pageandpage_sizeproperties defines specific page and the limit of items

