openapi-gen

command
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

README

How to run example

Run by hack/run.sh

./examples/openapi/hack/run.sh

swagger.json will be output as ./examples/openapi/swagger.json

Run manually

workspace: github.com/caicloud/nirvana

Generate definition
go run ./cmd/openapi-gen/main.go \
    -i github.com/caicloud/nirvana/examples/openapi/pkg/api/v1 \
    -p github.com/caicloud/nirvana/examples/openapi/api

A file named openapi_generated.go will be output

Generate swagger.json
go run ./examples/openapi/main.go > ./examples/openapi/swagger.json

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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