[Survey] Tạo khảo sát - duyit2405/portal-app GitHub Wiki

Request

Parameter URL: N/A

  • Post Data:
{
  "Questions": [
    {
      "index": 0,
      "Content": "<p>Nội dung câu hỏi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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