Re:A Visual Guide to What's New in Swagger 3.0
by bpicolo on Tuesday March 21, 2017 @06:48PM
(#13927005)
The best part about Swagger is there's a lot of good open-source tooling for it (though this depends on the language).
One alternative I find super interesting lately is defining APIs with grpc and then exposing them with the gateway proxy: https://github.com/grpc-ecosystem/grpc-gateway
In this way, you get strongly-typed interfaces and Swagger is autogenned for you.
Re:A Visual Guide to What's New in Swagger 3.0
by zeptomu on Tuesday March 21, 2017 @05:39PM
(#13926514)
I think most are crafted by hand. Maybe the problem is similar to language, compiler and interpreter design. There exists specific software that tries to help you with providing solutions for sub-problems (lexers and parser-generators), but they are hardly used, as they are hard to customize (see a recent discussion about writing a recursive descent parser), so people hand-craft them.
When designing an API the hard part is getting it right(tm) and hopefully guarantee some kind of backwards compatibility and providing a clear path for its consumers, in particular documentation. It is possible to auto-generate some parts of the documentation, but such documentation is probably as helpful as auto-generated javadoc without notes provided by humans.
Re:A Visual Guide to What's New in Swagger 3.0
by abraae on Wednesday March 22, 2017 @02:52AM
(#13928929)
RAML https://www.google.co.nz/url?sa=t&rct=j&q=&esrc=s&source=web..., with json schema http://json-schema.org/
I ask because this is something the UK Government is looking at - https://github.com/alphagov/tech-and-data-standards/issues/3...