Lurker News
I tend to always look to api.github.com when I need a little inspiration.

Anyone have some good examples of a particularly well laid out API?

Comments (182) 67 threads

Show all comments

Showing thread 14 of 67

bjourne1 reply#
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

bjornedstrom2 replies#
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

bjourne#
It's configurable. For various reasons you might not be able to send DELETE requests.
rahkiin#
/persons/23/edit would become PUT /persons/23, while create would be POST /persons.