go-swagno / swagno-gin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swagno-gin

gin-gonic middleware to serve Swagger Ui files and doc.json file which generated from Swagno

Usage

  1. Get Swagno
  2. Create your endpoint array. See: https://github.com/go-swagno/swagno/blob/master/README.md#getting-started
  3. Get swagno-gin
go get github.com/go-swagno/swagno-gin
  1. Import swagno-gin to your handler
import "github.com/go-swagno/swagno-gin/swagger"
  1. Be sure you created swagger instance and endpoints
  2. Create swagger handler
a.GET("/swagger/*any", swagger.SwaggerHandler(sw.GenerateDocs()))
  1. Visit /swagger and /swagger/doc.json for confirmation

About


Languages

Language:Go 100.0%