【发布时间】:2013-12-26 09:20:28
【问题描述】:
我有这些网络服务端点:
/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.
我希望能够在不同阶段之间移动时切换status 和quiz 上的其他一些字段。
但是,我不确定恢复暂停测验的 URI 应该是什么。
在另一个请求中将任务和切换测验状态分开会更好吗? URI 应该如何?我试图使服务器上的逻辑和与 Web 应用程序的接口尽可能简单。
【问题讨论】: