5 ms·
Are there some go to standards for API design that are followed?
by normalfaults 13y ago
Are there some go to standards for API design that are followed?
- iaskwhy 13y agoI use the following sources as standards: - Vinay Sahni's Best Practices for Designing a Pragmatic RESTful API: http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api http://www.vinaysahni.com/best-practices-for-a-pragmatic-res... - HN discussion on Vinay's post: https://news.ycombinator.com/item?id=5819231 https://news.ycombinator.com/item?id=5819231 - Twitter's Error Codes & Responses: https://dev.twitter.com/docs/error-codes-responses https://dev.twitter.com/docs/error-codes-responses
- normalfaults 13y agoThanks these are great!
- johns 13y agoIf I can throw my own in: http://john-sheehan.com/blog/dont-build-the-best-rest-api-build-the-best-http-api http://john-sheehan.com/blog/dont-build-the-best-rest-api-bu...
- icedog 13y agoApigee's free ebook is pretty nice. http://pages.apigee.com/web-api-design-ebook.html http://pages.apigee.com/web-api-design-ebook.html
- Kerrick 13y agohttp://jsonapi.org/ http://jsonapi.org/ is an emerging standard. http://dev.billysbilling.com/blog/How-to-make-your-API-better-than-the-REST http://dev.billysbilling.com/blog/How-to-make-your-API-bette... is a great blog post on API design.
- steveklabnik 13y agoCoauthor of JSON API here, expect to hear lots of neat stuff soon. ;)
- johns 13y agoA new site was just launched to help with this: apicommons.org My general advice is if it's internal, build what feels right to your team. If it's external, research the APIs you like or are popular (Twilio, Stripe, etc.) and don't be clever.
- grosskur 13y ago"Designing REST + JSON APIs" by Les Hazlewood is a good starting point: http://www.stormpath.com/blog/designing-rest-json-apis http://www.stormpath.com/blog/designing-rest-json-apis