I am having these web service endpoints:
/quizzes POST - Generates a new quiz on the server and respond with the resource generated.
/quizzes/1/answer/done POST - Posts an answer to the quiz. Ends the quiz.
/quizzes/1/answer/temporary POST - Posts an answer to the quiz. Pauses the quiz.
I want to be able to toggle the status
and the some other fields on the quiz
when moving between the different stages.
However, I am not sure what the URI for resuming a paused quiz should be.
And would it be better to separate the task og toggeling the state of the quiz in another request? How should the URI's for that be? I am trying to keep the logic at the server and the interface with the web application as simple as possible.