multiple

command
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 6 Imported by: 0

README

Multiple API feature

Since swag 1.7.9 we are allowing registration of multiple endpoints into the same server.

Generate documentation for v1 endpoints

swag i -g main.go -dir api/v1 --instanceName v1

Generate documentation for v2 endpoints

swag i -g main.go -dir api/v2 --instanceName v2

Run example

    go run main.go

Now you can access the v1 swagger here http://localhost:8080/swagger/v1/index.html , and v2 swagger here http://localhost:8080/swagger/v2/index.html

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
v2
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag

Jump to

Keyboard shortcuts

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