I'm building a REST Web service and I'd like to what is the best way (performance wise, elegance, and best-practice) on how to structure my resources. I have two models with ManyToMany relationship, so I could design my resources endpoints like follow (and as explained here :
/api/v1/question/{q_id} #to access the question resource
and
/api/v1/question/{q_id}/answers/{a_id} # to access the answers of a question.
Now that's completely fine with a GET method, what if I want to create a new question with new answers, I have to send a POST request to the first URL and then another POST to the second?? Is it still considered a clean way of doing things despite the round trips?
P.S I'm using Django and still hesitating between django-simple-rest, django-rest-framework and django-tastypie with BackboneJS in the client side.