Category GET Resources

List of Categories

GET /categories

Response

{
    "items": [
        {
            "name": "Category",
            "description": "Category description",
            "color": "#99CCFF",
            "id": 1,
            "translations": [
                {
                    "name": "Name in language",
                    "description": "Description in language",
                    "language": "en"
                },
                {
                    "name": "Name in language",
                    "description": "Description in language",
                    "language": "fr"
                }
            ],
            "created": "2011-12-12T15:35:25.000Z"
        }
    ]
}

Category by ID

GET /categories/:ID

Returns a single category.

Response

{
    "name": "Category",
    "description": "Category description",
    "id": 1,
    "color": "#FFFFFF",
    "translations": [
        {
            "name": "Name in language",
            "description": "Description in language",
            "language": "en"
        },
        {
            "name": "Name in language",
            "description": "Description in language",
            "language": "fr"
        }
    ],
    "created": "2011-12-12T15:35:25.000Z"
}

Count of questions assigned to the category

GET /categories/:ID/questions_count
{
  "count":42
}