Categories

Schema

A category object looks like:

{
    "id": 1,          // Integer
    "name": "Class"   // String
}

End-points

Get all categories by calling GET /categories. There's an example response:

[
    {
        "id": 1,
        "name": "Class"
    },
    {
        "id": 2,
        "name": "Function"
    },
    {
        "id": 3,
        "name": "Free lines"
    }
]

You can also retrieve a single category by its ID with GET /categories/{category_id}, for example GET /categories/1 returns:

{
    "id": 1,
    "name": "Class"
}