POST api/CourseQuestions/getAnswers

Request Information

URI Parameters

None.

Body Parameters

AnswerSearchDataModel
NameDescriptionTypeAdditional information
QuestionId

integer

None.

Page

integer

None.

Count

integer

None.

OrderBy

EQuestionOrderBy

None.

Request Formats

application/json, text/json

Sample:
{
  "QuestionId": 1,
  "Page": 2,
  "Count": 3,
  "OrderBy": 0
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AnswerSearchDataModel'.

Response Information

Resource Description

AnswerSearchModel
NameDescriptionTypeAdditional information
Answers

Collection of UserAnswerViewMode

None.

TotalCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Answers": [
    {
      "$id": "2",
      "Id": 1,
      "UserQuestionId": 2,
      "Answer": "sample string 3",
      "PersianDate": "",
      "Time": "sa:mp",
      "UserType": 0,
      "Score": 6,
      "Name": "sample string 7",
      "ProfileUrl": "sample string 8",
      "IsLike": true,
      "IsMyAnswer": true
    },
    {
      "$ref": "2"
    }
  ],
  "TotalCount": 1
}