Decks API.
/api/v1/decks
Using this API endpoint you can retrieve decks created by the community, methods are available to assist with pagination and sorting.
- Method: POST
- Body:
- Take: Defaults to 20, the amount of decks to retrieve.
- Skip: The amount of decks to skip.
- OrderBy: Defaults to createdAt sorted by desc. The sorting method to be used in the call.
Example Body:
{
"take": 5,
"skip": 5,
"orderBy": {
"createdAt": "desc"
}
}Example Response:
/api/v1/decks/[id]
Using this API endpoint you can retrieve a deck by it's ID.
- Method: GET
Example Response: