RESTful Question/Answer design?

Posted by Kirschstein on Stack Overflow See other posts from Stack Overflow or by Kirschstein
Published on 2010-03-30T11:27:43Z Indexed on 2010/03/30 11:33 UTC
Read the original article Hit count: 368

Filed under:
|
|
|
|

This is a toy project I'm working on at the moment.

My app contains questions with multiple choice answers.

The question url is in the following format, with GET & POST mapping to different actions on the questions controller.

GET:   url.com/questions/:category/:difficulty      => 'ask'
POST:  url.com/questions/:category/:difficulty      => 'answer'

I'm wondering if it's worth redesigning this into a RESTful style. I know I'd need to introduce answers as a resource, but I'm struggling to think of a url that would look natural for answering that question.

Would a redesign be worthwhile? How would you go about structuring the urls?

© Stack Overflow or respective owner

Related posts about rails

Related posts about restful