POST api/quiz
Request Information
URI Parameters
None.
Body Parameters
QuizDtoName | Description | Type | Additional information |
---|---|---|---|
LessonID | integer |
None. |
|
CourseID | integer |
None. |
|
SetID | integer |
None. |
|
QuestionID | integer |
None. |
|
QuestionText | string |
None. |
|
Answers | Collection of QuestionAnswer |
None. |
Request Formats
application/json, text/json
Sample:
{ "LessonID": 1, "CourseID": 2, "SetID": 3, "QuestionID": 4, "QuestionText": "sample string 5", "Answers": [ { "AnswerText": "sample string 1", "AnswerResult": "sample string 2" }, { "AnswerText": "sample string 1", "AnswerResult": "sample string 2" } ] }
application/xml, text/xml
Sample:
<QuizDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Model"> <Answers xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract"> <QuestionAnswer> <AnswerResult>sample string 2</AnswerResult> <AnswerText>sample string 1</AnswerText> </QuestionAnswer> <QuestionAnswer> <AnswerResult>sample string 2</AnswerResult> <AnswerText>sample string 1</AnswerText> </QuestionAnswer> </Answers> <CourseID xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract">2</CourseID> <QuestionID xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract">4</QuestionID> <QuestionText xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract">sample string 5</QuestionText> <SetID xmlns="http://schemas.datacontract.org/2004/07/MODEL.HRDIElearning.Abstract">3</SetID> <LessonID>1</LessonID> </QuizDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.