The real major Open API I always think is required is an Open API allow me to interact with any part of a website so people can finally build assistive technology based on API rather than parsing some website's DOM that you will likely never be able to parse out correctly from version to version. If the website exposes a "REST" specification how to interact with the pages, then we can really build a website visual im…
The Open API Initiative
11–20 of 23 posts
Re: The Open API Initiative
#12What most API documentation lacks is one thing. Examples. Real, working, copy-n-paste examples. While I prefer the swagger format, we use Blueprint at work because it's trivial to include an actual example request or response as part of the documentation. Sure, schema helps, but having a spot to just lay out an example request or response is really important. Another thing: often, one must perform prerequisite steps…
There does appear to be an examples section in the project repository https://github.com/OAI/OpenAPI-Specification/tree/master/exa...
Re: The Open API Initiative
#13Earlier quoted context omitted.
There does appear to be an examples section in the project repository https://github.com/OAI/OpenAPI-Specification/tree/master/exa...
I believe he meant a way to put examples in the spec itself. I believe they have a client SDK that will consume the API spec and allow you to make requests and see responses.
It seems like the best supported tool for generating client and server stubs is Swagger Codegen. Version 2.1.2 seems to support the OpenAPI 2.0 draft spec.
Re: The Open API Initiative
#14Next will come the API spec parsers to automate client code generation. Those will break on the first vendor specific extension. Vendors will put in extensions for security, pre and post request action guidance, etc. This will cause vendor specific client code generators to be created. The specification will take a long time to get updated as each vendor will want their extensions in the core specification. As a resu…
Re: The Open API Initiative
#15What most API documentation lacks is one thing. Examples. Real, working, copy-n-paste examples. While I prefer the swagger format, we use Blueprint at work because it's trivial to include an actual example request or response as part of the documentation. Sure, schema helps, but having a spot to just lay out an example request or response is really important. Another thing: often, one must perform prerequisite steps…
Re: The Open API Initiative
#16Is there a directory of apis that conform to the spec?
Re: The Open API Initiative
#17Is there a directory of apis that conform to the spec?
Re: The Open API Initiative
#18What most API documentation lacks is one thing. Examples. Real, working, copy-n-paste examples. While I prefer the swagger format, we use Blueprint at work because it's trivial to include an actual example request or response as part of the documentation. Sure, schema helps, but having a spot to just lay out an example request or response is really important. Another thing: often, one must perform prerequisite steps…
There does appear to be an examples section in the project repository https://github.com/OAI/OpenAPI-Specification/tree/master/exa...
It's fine to just show a long list of method signatures and class hierarchies, but a working code sample is the picture that's worth a thousand words.
Re: The Open API Initiative
#19Earlier quoted context omitted.
There does appear to be an examples section in the project repository https://github.com/OAI/OpenAPI-Specification/tree/master/exa...
Yes, I mean documentation in general. It's fine to just show a long list of method signatures and class hierarchies, but a working code sample is the picture that's worth a thousand words.
generated from this
https://github.com/apidoc/apidocjs.com/tree/gh-pages/source/...
Re: The Open API Initiative
#20REST APIs are based around media types, not URI structures. Unfortunately, tools like Swagger are based around URI structures, which shouldn't be in REST API documentation at all. It makes trying to find good tooling for REST APIs difficult when people say "just use Swagger" and similar.