Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And 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!



See Jacob's post here: 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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: