A Graze API GET request that returns the description for a specified Situation.
Back to Graze API EndPoint Reference.
Endpoint getSituationDescription
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| Number | Yes | Situation ID. |
Endpoint getSituationDescription
returns the following response:
Successful requests return a JSON object containing the following:
Name | Type | Description |
---|---|---|
| Number | Situation ID. |
| String | Text in the Situation' description field. |
The following examples demonstrate typical use of endpoint getSituationDescription
:
Example cURL request to return the description for Situation ID 231:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getSituationDescription" \
--data-urlencode "sitn_id=231"
Example response returning the description for Situation ID 231:
{
"sitn_id": "231",
"description": "SyslogLamCookbook source"
}