I am developing an external app that starts a quiz, retrieves the questions, then saves/updates the responses, and finally, completes the quiz, using various API Endpoints. There does not appear to be any type of workflow documentation for this process, so my methodology is basically to "try this and see what happens".
For all the following, Shibboleth authentication is used, and an OAuth2 workflow is completed successfully.
Using my personal credentials as an administrator, I am able to
- list quizzes in a course,
- create a quiz submission for a quiz in a course, and
- get Quiz Questions for a specific quiz in a course (GET /api/v1/courses/:courseID/quizzes/:quizID/questions)
Using a test student account, I am able to
- list quizzes in a course,
- create a quiz submission for a quiz in a course, and
- I am unable to get Quiz Questions for a specific quiz in a course. The response is {"status":"unauthorized","errors":[{"message":"user not authorized to perform that action"}]}
The have several questions:
- Is there some workflow-type documentation that describes how the various endpoints should be used?
- Am I using the correct endpoint for the student to retrieve the quiz qestions?
- Are there (script) examples of this process that anyone is willing to share from which I can learn?
Thanks for any and all feedback!