GET api/Exam/GetExam?entityId={entityId}&examType={examType}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
entityId | integer |
Required |
|
examType | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
AddQuestionsExamDTOName | Description | Type | Additional information |
---|---|---|---|
examName | string |
None. |
|
timer | integer |
None. |
|
examId | integer |
None. |
|
createdByUserId | integer |
None. |
|
questions | Collection of AddQuestionDTO |
None. |
Response Formats
application/json, text/json
Sample:
{ "examName": "sample string 1", "timer": 1, "examId": 2, "createdByUserId": 3, "questions": [ { "questionId": 1, "question": "sample string 2", "examId": 3, "createdByUserId": 4, "questionIndex": 5, "answers": [ { "answer": "sample string 1", "answerId": 2, "isCorrect": true }, { "answer": "sample string 1", "answerId": 2, "isCorrect": true } ] }, { "questionId": 1, "question": "sample string 2", "examId": 3, "createdByUserId": 4, "questionIndex": 5, "answers": [ { "answer": "sample string 1", "answerId": 2, "isCorrect": true }, { "answer": "sample string 1", "answerId": 2, "isCorrect": true } ] } ] }