Query Category items ========================== The Category endpoint allows you to submit GET requests to retrieve all of the Category items and their attributes. .. http:get:: /mping/api/v2/category Get all available Categories **Example request** .. sourcecode:: http GET /mping/api/v2/category HTTP/1.0 Host: mping.ou.edu Accept: application/json :reqheader Accept-Language: Optional: if need Category entries in another language supported by the API :reqheader Content-Type: Optional: requested format type of response (default is json) **Example response** .. sourcecode:: http HTTP/1.0 200 OK Date: Wed, 11 Feb 2015 20:00:59 GMT Server: WSGIServer/0.1 Python/2.7.9 Vary: Accept, Accept-Language, Cookie Content-Type: application/json Content-Language: en-us Allow: GET, HEAD, OPTIONS { "count": 9, "next": null, "previous": null, "results": [ { "id": 8, "name": "Test", "active": true }, { "id": 9, "name": "None", "active": true }, { "id": 1, "name": "Rain/Snow", "active": true }, { "id": 2, "name": "Hail", "active": true }, { "id": 3, "name": "Wind Damage", "active": true }, { "id": 4, "name": "Tornado", "active": true }, { "id": 5, "name": "Flood", "active": true }, { "id": 6, "name": "Mudslide", "active": true }, { "id": 7, "name": "Reduced Visibility", "active": true } ] } :statuscode 200: no error :resjson int count: The total number of Categories matching your query :resjson string next: provides url to get next page of results otherwise null :resjson string previous: provides url to get previous page of results otherwise null :resjson array results: array of Categories matching your query :>jsonarr int id: primary id of the Category :>jsonarr string name: name of the Category :>jsonarr bool active: shows if the Category is active or not