27 points · by prabhatjha · 11y ago · 8 comments
I think any of the above would be useful, I'm just not sure which one(s) this is trying to be.
* version controlled canonical specs and documentation of API using apistudio.io
* use existing Swagger extensions to build out Swagger spec from implementation
* Some tool to automatically compare/verify canonical swagger spec with spec generated by framework plugin
Its amusing to be able to mock out some APIs but the fact that its just a mock makes it a waste of time.
There are already projects that let you automatically build out a swagger page from a jax-ws project (or your language of choice). Actually making the objects and stubbing out endpoints in code should be just as fast as playing with a new custom schema language.
That final aspect is the thrust of swagger-node (https://www.npmjs.com/swagger) where we can take a Swagger document and use it as the basis of a dynamic (ie. not code-gen) Node.js API server. In the future, we'll also move beyond validation and routing to utilize extensions to declaratively provide other API services that are necessary but tangential to the business logic.