A Graze API GET request that returns a list of possible severities and their severity IDs.
Back to Graze API EndPoint Reference.
Endpoint getSeverities
takes the following request argument:
Endpoint getSeverities
takes no other arguments because this endpoint returns data on all severities.
Endpoint getSeverities
returns the following response:
Successful requests return an array of JSON objects containing the following:
Name | Type | Description |
---|---|---|
| String | Severity name. |
| Number | ID of the severity. |
The following examples demonstrate typical use of endpoint getSeverities
:
Example cURL request to return the list of all severities:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getSeverities"
Example response returning a list of all severities:
[
{
"name": "Clear",
"severity_id": 0
},
{
"name": "Indeterminate",
"severity_id": 1
},
{
"name": "Warning",
"severity_id": 2
},
{
"name": "Minor",
"severity_id": 3
},
{
"name": "Major",
"severity_id": 4
},
{
"name": "Critical",
"severity_id": 5
}
]