4 ms·
Awesome! I've been using django-oauth for sometime now, been looking at django-restapi and so on. But this takes the best of both worlds. And I especially like
by swaroop 17y ago
Awesome! I've been using django-oauth for sometime now, been looking at django-restapi and so on. But this takes the best of both worlds. And I especially like that it is not tied to the data models, so this means we can build in some business logic.
- j2d2 17y agoAnd I especially like that it is not tied to the data models, so this means we can build in some business logic. Can you elaborate? I'm doing my first big django project now and am looking for lessons from others!
- simonw 17y agoSee Jacob's post here: http://jacobian.org/writing/rest-worst-practices/ http://jacobian.org/writing/rest-worst-practices/ Basically, it's a bad idea to couple something like django-piston too tightly to the underlying models because in any even moderately useful API there will be plenty of resources you want to expose that are actually cobbled together from various different models (or even other storage locations such as a search index or external web service).