Re:An experimental, automatically generated set of AWS clien...
by kevinconroy on Sunday December 14, 2014 @10:37PM
(#8750566)
Feel like I'm in college and missed a class lecture - what's the standard for JSON API descriptions and where can I learn more so that I can upgrade my APIs to have a usable JSON description?
[ Parent
| on HN ]
Re:An experimental, automatically generated set of AWS clien...
by kevinconroy on Monday December 15, 2014 @12:16AM
(#8750781)
Follow-up: Looks like JSON Schema is emerging as the standard, in part thanks to Swagger and Google adopting it for their APIs. References to Amazon and Heroku doing so as well (not exhaustive list, just what I've found while searching).
Helpful links: https://github.com/swagger-api/swagger-spec/blob/master/vers...
Powerful array of tools to enable wrappers for Go, Scala, Flash, Java, Objc, PHP, Python, Python3, Ruby, Node, and more. https://github.com/swagger-api/swagger-codegen
Re:An experimental, automatically generated set of AWS clien...
by astockwell on Sunday December 14, 2014 @10:53PM
(#8750599)
Not sure if there's really a _standard_, but there are examples of projects[1] and generators[2] that encourage best practices. Presumably if you can document your API as JSON, it should be reasonably well-formed.
[1] https://bgentry.io/blog/2014/01/09/auto-generating-a-go-api-...
[2] https://github.com/pksunkara/alpaca
Update: Here's a link from [1] that may be closer to what you're looking for: http://json-schema.org/
Re:An experimental, automatically generated set of AWS clien...
by andrewstuart on Sunday December 14, 2014 @10:39PM
(#8750571)
Swagger
Re:An experimental, automatically generated set of AWS clien...
by Maxious on Sunday December 14, 2014 @11:03PM
(#8750624)
"Swagger is a simple yet powerful representation of your RESTful API." http://swagger.io/
Re:An experimental, automatically generated set of AWS clien...
by wye on Sunday December 14, 2014 @11:12PM
(#8750641)
What an awful name for such a useful project.
Re:An experimental, automatically generated set of AWS clien...
by kevinconroy on Monday December 15, 2014 @12:12AM
(#8750770)
Thanks. Here's GitHub link for others interested like me: https://github.com/swagger-api/swagger-spec