Ask HN: What is your go-to example for a good REST API?
401 pointsI 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?
Anyone have some good examples of a particularly well laid out API?
Comments (182) 67 threads
Earlier comments- Documentation is complete and concise.
- Responses are consistent (in terms of data structure)
- Status codes are consistent
I really hate this notion. It makes jumping to page 100 of a 345 page result set impossible. You would literally have to follow 100 pages, or have some ridiculously long index with 345 separate links.
I believe that it should be possible for an API to document a URL formula, and rely on the API client to follow that formula to generate a URL.
That's where things get sticky, though, because as far as I know, there's no good standard defined for how an API can document a dynamic URL formula that is programmatically discoverable.
[0] http://tools.ietf.org/html/rfc6570
What resources (books/blogs) are you guys/gals looking at that talks about best practices for creating/implementing great REST API endpoints?
All comments shown.
Couldn't load more comments. Check your connection and try again.