[Survey] Tạo khảo sát - duyit2405/portal-app GitHub Wiki
Request
-
Method: POST
-
URL: /api/Survey/CreateSurvey
-
FULL URL WITH SERVER: http://vsn.thenhan.com/api/Survey/CreateSurvey
-
Note For URL:
-
Header:
Authorization:Bearer {access_token}
-
Description: API Tạo khảo sát
-
Note For Response:
Parameter URL: N/A
- Post Data:
{
"Questions": [
{
"index": 0,
"Content": "<p>Nội dung câu hỏi </p>",
"Options": [
{
"Content": "Option 1"
},
{
"Content": "Option 2"
}
],
"IsMultipleChoice": true,
"CanOtherPeopleCreateOption": true
},
{
"Content": "Câu hỏi 2",
"Options": [
{
"Content": "Option"
},
{
"Content": "Option"
}
],
"IsMultipleChoice": false,
"CanOtherPeopleCreateOption": false
}
],
"Title": "Danh sách",
"Deadline": "2017-11-08T17:00:00.000Z",
"ViewerIDs": [ 344, 346 ],
"ViewOnlyViewerIDs": [ 310, 330 ]
}
- Response: Respone trả về Id của khảo sát
6