One core part of Geekier APIs (
https://github.com/rulesio/geekier/wiki) is a repository of API descriptions - not libraries - that are supposed to be processed by an api factory which will create connection objects from it.
Of those API description formats there are several out there that look interesting, for example, Swagger (
https://github.com/wordnik/swagger-core), iodocs (
https://github.com/mashery/iodocs) and the Google API Discovery Service Document Format (GADSDF -
https://developers.google.com/discovery/v1/reference/apis).
While looking into all of those we also compiled a list of things we would want from this format. The most important to me are:
- A way to describe the authentication scheme (oauth, some token, you name it)
- Errors one should expect from a call (or the whole API), what they mean (i.e. a message to display to a user) and whether or not one should bother retrying
- The ability to describe the same call in more than one way (with static values for some parameters, ideally)
I'm currently thinking about extending the swagger format with those details but want to put this question out to there, so that you can weigh in with your opinions or experiences.
Let me hear, what you think, which format you like better, maybe, or which existing solution you think we should stick with.
--
Chris Weis