swagger-gin

command module
v0.0.0-...-a37c5e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2017 License: MIT Imports: 3 Imported by: 0

README

[DEPRECATED]

Generate REST API boilerplate code from Swagger 2.0 API spec for gin web framework. Thanks to the go-swagger project, it's awesome and has been heavily used as code base of swagger-gin.

Usage

Install the package

go get github.com/aiyi/swagger-gin

To generate source files (models, restapi and example operations)

Use default spec file "./swagger.json" and default target directory "./":

swagger-gin

Use specific api spec:

swagger-gin -spec=petstore.json

Use specific target folder:

swagger-gin -spec=petstore.json -target=petstore

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package generator provides the code generation library for go-swagger The general idea is that you should rarely see interface{} in the generated code.
Package generator provides the code generation library for go-swagger The general idea is that you should rarely see interface{} in the generated code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL