Swagger
GolangSF, January 20, 2016
Ivan Porto Carrero
VMware
Ivan Porto Carrero
VMware
Did a bunch of work on/with swagger:
Humans want up to date documentation to read
Consumers need an exhaustive contract
Different teams, different programming languages
Introspection would be a plus
DRY at application level would be nice
Open standard on Linux Foundation
An interface to your service, described in JSON
A language/platform/deployment agnostic contract to your service
Enables "bigotry-free" restful design with emphasis on Getting Things Done.
Machine readable exhaustive contract of server abilities
Server controlled documentation
net/http
style middleware: `func(http.Handler) http.Handler`You fill in the blanks, aka business logic.
commandcar for instant CLI access
go-swagger going forward: