POST api/CourseQuestions/getQuestions

Request Information

URI Parameters

None.

Body Parameters

QuestionSearchDataModel
NameDescriptionTypeAdditional information
CourseId

integer

None.

Page

integer

None.

Count

integer

None.

OrderBy

EQuestionOrderBy

None.

Request Formats

application/json, text/json

Sample:
{
  "CourseId": 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 'QuestionSearchDataModel'.

Response Information

Resource Description

QuestionSearchModel
NameDescriptionTypeAdditional information
Questions

Collection of UserQuestionViewMode

None.

TotalCount

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Error getting value from 'PersianDate' on 'Data.Models.QAndA.UserQuestionViewMode'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Error getting value from 'PersianDate' on 'Data.Models.QAndA.UserQuestionViewMode'.