An open API service indexing awesome lists of open source software.

https://github.com/utilitywarehouse/swagger-ui

A Go Swagger UI
https://github.com/utilitywarehouse/swagger-ui

golang pkg ui

Last synced: 9 months ago
JSON representation

A Go Swagger UI

Awesome Lists containing this project

README

          

# Swagger UI

`go get github.com/utilitywarehouse/swagger-ui/swaggerui`

swaggerui returns a handler with 3 routes

`/` redirects to `/swagger-ui`

`/swagger.json` presents the swagger file. This is looked for in the root of your project, and if you are using `go run` to test your code, because the root is dynamic you must store a swagger.json file in /tmp/swagger.json.

`/swagger-ui` is the UI itself