Package Usage: go: github.com/go-swagger/go-swagger
Package swagger (2.0) provides a powerful interface to your API
Contains an implementation of Swagger 2.0.
It knows how to serialize, deserialize and validate swagger specifications.
Swagger is a simple yet powerful representation of your RESTful API.
With the largest ecosystem of API tooling on the planet, thousands of developers are supporting Swagger
in almost every modern programming language and deployment environment.
With a Swagger-enabled API, you get interactive documentation, client SDK generation and discoverability.
We created Swagger to help fulfill the promise of APIs.
Swagger helps companies like Apigee, Getty Images, Intuit, LivingSocial, McKesson, Microsoft, Morningstar, and PayPal
build the best possible services with RESTful APIs.Now in version 2.0, Swagger is more enabling than ever.
And it's 100% open source software.
More detailed documentation is available at https://goswagger.io.
Install:
The implementation also provides a number of command line tools to help working with swagger.
Currently there is a spec validator tool:
To generate a server for a swagger spec document:
To generate a client for a swagger spec document:
To generate a swagger spec document for a go application:
There are several other sub commands available for the generate command
You're free to add files to the directories the generated code lands in, but the files generated by the generator itself
will be regenerated on following generation runs so any changes to those files will be lost.
However extra files you create won't be lost so they are safe to use for customizing the application to your needs.
To generate a server for a swagger spec document:
26 versions
Latest release: about 1 year ago
342 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/go-swagger/go-swagger