Find matches, paginated by default, with optional filters.
limit | integer Default: 20 |
page | integer Default: 1 |
sort | string Default: "" Example: sort=-createdAt |
[- {
- "id": "string",
- "teams": [
- { }
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Create a match.
Content-Type | string Example: application/json |
Array of objects |
{- "teams": [
- {
- "points": 0,
- "color": "string",
- "players": [
- "string"
]
}
]
}
{- "id": "string",
- "teams": [
- { }
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Update and replace a match. You must send the whole entity otherwise it will either fail or erase existing fields.
id required | string |
Array of objects |
{- "teams": [
- {
- "points": 0,
- "color": "string",
- "players": [
- "string"
]
}
]
}
{- "id": "string",
- "teams": [
- { }
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}