Category

Get Category

  • GET /category.json will return all categories in an array

Category is select2 friendly and will accept the url parameters of Page,System,Term,Id.

when system is supplied a extra key is added to each item called "count" which is the count of items that system refers to.

{
    "total": 244,
    "items": [
        {
            "id": 1,
            "text": "Abiotic Damage"
        },
        {
            "id": 2,
            "text": "Nuisance Insects"
        },
        {
            "id": 3,
            "text": "Aquatic"
        },
        {
            "id": 4,
            "text": "Bark Beetles and Phloem Feeding Insects"
        },
        {
            "id": 5,
            "text": "******"
        },
        {
            "id": 6,
            "text": "Unknown Biotic Damage Agent"
        },
    ]
}