(Quick Reference) Service: Show a question option

Description: This web service return an existing question option of the specified id in JSON format

URL:

https://BASE_URL/api/VERSION/questionOptions/{id}

Method: GET

Parameters:

NameDescriptionTypeRequiredExample values
idThe numerical ID of the desired optionLongYes777

Success Output

Success case: response.status = 200

{
      "id": 60,
      "text": "not bad",
      "question": {
        "id": 35,
        "text": "how is our product qualities",
        "href": "/api/v1.0/questions/35"
      },
      "questionOptionAnswers": [],
      "branchTo": null,
      "questionColumn": {
        "id": 1,
        "name": "How do you find the quality of our product ?",
        "href": "/api/v1.0/questionColumns/1"
      },
      "dateCreated": "2016-11-25T09:11:48Z",
      "lastUpdated": "2016-11-25T09:11:48Z"
}

Failure Output

Failure case:response.status = 400
{
    "error": "invalid_param_type",
    "error_description": "The type of parameter id you provided is not valid for this request."
}

Failure case:response.status = 404
{
  "error": "not_found",
  "error_description": "The question option with the id 3 doesn't exist."
}