Question
Get Questions by Course Id
GET
https://api.motar.io/edu/v1/question/
This endpoint allows an instructor or a course manager to get all questions for a specific course.
Query Parameters
Name
Type
Description
courseId
string
Id of the course being queried for questions.
showRemoved
string
Show removed questions.
Headers
Name
Type
Description
Authentication
string
Authentication token to track down who is emptying our stocks.
[
{
"answers": [
"Airforce",
"Army",
"Space force",
""
],
"__t": "CourseQuestion",
"_id": "609c7230bd85c400112d9b9b",
"course": "607f37db5efb430011852f8d",
"text": "Which branch of military will MOTAR support in the near future?",
"questionType": "multiple-choice",
"correctAnswerIndex": 2,
"createdDate": "2021-05-13T00:26:24.424Z",
"__v": 0,
"id": "609c7230bd85c400112d9b9b"
},
{
"answers": [
"NO",
"Maybe"
],
"__t": "CourseQuestion",
"_id": "609eafd7cdb2fd0011f1c6e4",
"course": "607f37db5efb430011852f8d",
"text": "Are there bugs",
"questionType": "multiple-choice",
"correctAnswerIndex": 0,
"createdDate": "2021-05-14T17:13:59.722Z",
"__v": 0,
"removedDate": "2021-05-18T23:23:13.305Z",
"id": "609eafd7cdb2fd0011f1c6e4"
},
{
"answers": [
"Moo",
"Quack"
],
"__t": "CourseQuestion",
"_id": "609ef37255569e001156fb83",
"course": "607f37db5efb430011852f8d",
"text": "The duck goes",
"questionType": "multiple-choice",
"correctAnswerIndex": 1,
"createdDate": "2021-05-14T22:02:26.676Z",
"__v": 1,
"id": "609ef37255569e001156fb83"
},
{
"answers": [
"Yes",
"No",
"We'll See"
],
"__t": "CourseQuestion",
"_id": "60a3e80867ee0d00115d3e18",
"course": "607f37db5efb430011852f8d",
"text": "This is a reusable question. Does it work?",
"questionType": "multiple-choice",
"correctAnswerIndex": 2,
"createdDate": "2021-05-18T16:15:04.152Z",
"__v": 0,
"id": "60a3e80867ee0d00115d3e18"
},
{
"answers": [
"abc",
"abc",
"def"
],
"__t": "CourseQuestion",
"_id": "60a57dd04a05a800118d98d3",
"course": "60a57c0d4a05a800118d9755",
"text": "test",
"questionType": "multiple-choice",
"correctAnswerIndex": 1,
"createdDate": "2021-05-19T21:06:24.488Z",
"__v": 0,
"removedDate": "2021-05-19T21:06:28.089Z",
"id": "60a57dd04a05a800118d98d3"
},
{
"answers": [
"a",
"b"
],
"__t": "CourseQuestion",
"_id": "60a57e6b4a05a800118d9905",
"course": "60a57e144a05a800118d98fc",
"text": "test",
"questionType": "multiple-choice",
"correctAnswerIndex": 1,
"createdDate": "2021-05-19T21:08:59.358Z",
"__v": 0,
"id": "60a57e6b4a05a800118d9905"
},
{
"answers": [],
"__t": "CourseQuestion",
"_id": "60a57e714a05a800118d9906",
"course": "60a57e144a05a800118d98fc",
"text": "adfads",
"questionType": "short-answer",
"correctAnswerIndex": -1,
"createdDate": "2021-05-19T21:09:05.567Z",
"__v": 0,
"id": "60a57e714a05a800118d9906"
}
]
Last updated