swagger

command
v0.0.0-...-f42d3a4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: MIT Imports: 4 Imported by: 0

README

Swagger

This example application adds Swagger documentation to the API example.

Run Example

From this directory, run:

go run main.go

By default, if you navigate to http://localhost:9090/api/, it will serve Swagger's default Petstore example. To use the local configuration, enter http://localhost:9090/swagger.json into the Explore box on the top right of the page, or navigate to http://localhost:9090/api/?url=http://localhost:9090/swagger.json

Getting Swagger UI

The Swagger UI in the static/swagger-ui/dist directory was cloned from the Swagger UI Repo. The dist directory holds the required files to needed to serve the Swagger UI.

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