AnsweredAssumed Answered

which api should I use to get questions in a quiz

Question asked by Ming Wu on Apr 27, 2016
Latest reply on Apr 28, 2016 by Ming Wu

Hi,

 

I need to get questions of a quiz for a student so that he/she can take it in a mobile app. I tried two apis, but I did not get the questions

 

1.

GET /api/v1/courses/:course_id/quizzes/:quiz_id/questions?quiz_submission_id=xxx

 

I got the error message "user not authorized to perform that action", but if I use a teacher account, I get a list of questions.

 

2. I created a quiz submission, using

POST /api/v1/courses/:course_id/quizzes/:quiz_id/submissions

 

then I tried to use the following api with the submission id returned by the above post

GET /api/v1/quiz_submissions/:quiz_submission_id/questions

 

I got the error message "The specified resource does not exist."

 

 

Could someone please let me which api I should use to get a list of questions of a quiz for a student?

 

Thank you,

Outcomes