Ask HN: REST API Design Guidelines?

7 points by Jim_Neath ↗ HN
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 ] thread
I believe the Twitter API is one of the most widely used API's and would be a good resource. I really like their documentation, it makes integration a lot easier to have it well defined.

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.