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

I've been using flask-restless to good effect. Then you don't build your own api at all, you just generate it based on your database model. You get urls like /persons/23/edit, /persons/77/delete and so on by free. There is also Django restless which is pretty good too.

https://github.com/jfinkels/flask-restless



That doesn't seem like a good example at all.

Instead of /persons/23/edit, maybe POST /person/23

Instead of /persons/77/delete, maybe DELETE /person/23


/persons/23/edit would become PUT /persons/23, while create would be POST /persons.


It's configurable. For various reasons you might not be able to send DELETE requests.




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

Search: