Category

Module endpoints

DELETE /categories/:id

DELETE http://api.slyk.io/categories/:id

Deletes the category with given id.

204 No Content

GET /categories

GET https://api.slyk.io/categories

Returns a paginated list of categories.

GET /categories/:id

GET https://api.slyk.io/categories/:id

Gets the category details of the given id.

{
  "data": {
    "createdAt": "2020-08-10T10:00:00.000Z",
    "customData": {},
    "description": "Category with music related things",
    "id": "7938e446-1c77-4513-8cb0-8b1f2e9f47b9",
    "imageUrl": "http://slyk.io/music.png",
    "title": "Music",
    "updatedAt": "2020-08-10T10:00:00.000Z"
  }
}

PATCH /categories/:id

PATCH https://api.slyk.io/categories/:id

Patches the category details of the given id.

POST /categories

POST https://api.slyk.io/categories

Creates a new category.

POST /categories/:id/reorder

POST http://api.slyk.io/categories/:id/reorder

Reorders the category with the given id.

Last updated