Ask HN: REST API Design Guidelines?
I'm about to embark on designing an API for my startup. Are there any guidelines available online regarding things like:
- Which response codes should be returned - How errors should be handled - How the xml/json should be structured - How to handle authentication
Or can someone point me in the direction of a particularly well thought out REST API in the wild, that I can learn from?
4 comments
[ 1.5 ms ] story [ 24.2 ms ] threadCheck out "Get Your API Right" by Trek - http://wonderfullyflawed.com/2009/07/02/get-your-api-right.h...
http://martinfowler.com/articles/richardsonMaturityModel.htm...
Also a huge plus with most API's is a test/development environment. This depends on what the product/service is, but in some cases this is a huge issue.