Get statistic - ArslanGapizov/SocialSurvey-Server GitHub Wiki
Get statistic for certain survey
-
URL
/api/statistic/{id}
-
Method
GET -
Headers
Authorization: Bearer token
Content-Type: application/json -
URL Params
None
-
Data Params
None
-
Success Response:
-
Code: 200
Content:
-
Code: 200
{
"link": "http://socialsurvey.azurewebsites.net/api/Statistic/1",
"method": "GET",
"message": "This method is under development",
"response": {
"surveyId": 1,
"name": "Is your cat a human?",
"interviewees": 7,
"questions": [
{
"questionId": 1,
"questionType": "Select",
"text": "Does your cat ever talk to you?",
"order": 1,
"options": [
{
"optionId": 1,
"text": "No..mayby",
"order": 1,
"answersCount": 2
},
{
"optionId": 2,
"text": "Yes",
"order": 2,
"answersCount": 5
},
{
"optionId": 3,
"text": "Cats can`t talk, stupid",
"order": 3,
"answersCount": 0
}
]
},
{
"questionId": 2,
"questionType": "Select",
"text": "Does your cat have strange markings?",
"order": 2,
"options": [
{
"optionId": 4,
"text": "Spectacle marks",
"order": 1,
"answersCount": 2
},
{
"optionId": 5,
"text": "Maybe",
"order": 2,
"answersCount": 3
},
{
"optionId": 6,
"text": "No",
"order": 3,
"answersCount": 2
}
]
}
]
}
}-
Error Response:
None