Categories

Using the following API requests, you can retrieve all categories that have medias associated.

method: GET
URL: /categories.json

PARAMETERS:
{
  “media”: false # Mandatory
}
RETURN:
{
  "page": "categories",
  "categories": [
    {
      “Category information” 
    }
  ]
}

Next you can get a specific category using its ID.

method: GET
URL: /categories/ID.json # ID – text

PARAMETERS:
{
  “media_page”: “NUMBER” # Pagination, starting on 1 (if 0 or null, no pagination) 
}
RETURN:
{
  "page": "category",
  “category”: 
  {
    "id": "ID", # text
    "name": "TEXT",
    "thumb": “THUMBNAIL URL”
  },
  "medias": [
    {
      “MEDIA INFO” 
    }
  ],
  "pagination": {
    "current": “NUMBER”, # Current page
    "last": true/false # If last page, true
  }
}

Method: post

categories#create

URL: /management/categories.json

Parameters:
Return:

Method: put

categories#update

URL: /management/categories/:id.json

Parameters:
Return:

Method: delete

categories#destroy

URL: /management/categories/:id.json

Parameters:
Return:

Method:

URL:

Parameters:
Return:






<< Previous topic Next topic >>