|
|
|
Ask HN: How would you design a reporting API? How would you research it?
|
|
12 points
by georgem12
4335 days ago
|
|
I'm trying to design a reporting API for our company (we do real time bidding on advertising). I'm not sure how to structure it and what conventions to use. (for example, there's really nothing to "set" in terms of reporting). How would you design this API? Are there any good books or resources covering this? |
|
I suggest starting out by strictly adhering to REST standards, and then choose areas where you want to be flexible to increase usability (allowing POST calls to be overridden and interpreted as PUT calls, for example).
Check out this checklist: https://mathieu.fenniak.net/the-api-checklist/
I can also enthusiastically recommend Apiary (https://apiary.io) for designing and mocking up your API. It's absolutely fantastic.