26

command
v0.0.0-...-b25fcf9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 6 Imported by: 0

README

Go Swagger + Swagger UI + CORS

Tested using

  • go 1.10
  • dep v0.4.1
  • docker 18.06.0-ce-mac70 (26399)

dep

  • dep ensure -vendor-only

go-swagger

Swagger UI

  • docker run --rm -d -p 8080:8080 -e API_URL=http://localhost:8000/swagger.json swaggerapi/swagger-ui:3.17.5
  • Open http://localhost:8080/
  • Click explore

Documentation

Overview

Package main Provides all Users APIs.

HTTP APIs used as an example

Schemes: http, https
Host: localhost:8000
BasePath: /
Version: 1.0.0
Contact: info@carrion.ws
Consumes:
  - application/json
Produces:
  - application/json

swagger:meta

Jump to

Keyboard shortcuts

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