I’m willing to build a restful service using Django, I’m coming form RoR background and facing some problems that could be defined using the following questions:
- What package do you recommend to use to have RESTful interfaces?
- Is there a way to make nested resources like a post HTTP request to /posts/post_id/comments that adds a new comment ?
- Is there a way to add some extra actions out of the CRUD set, like having extra method called
notifyonPostresource that works on post HTTP request.
Cheers,
1) Check out django piston.
2) Yes, you set it up in your urls list.
3) Yes, this is straightforward to do in your view.
Django Piston:
http://bitbucket.org/jespern/django-piston/wiki/Home