Skip to content

echo middleware to automatically generate RESTful API documentation with Swagger 2.0.

License

Notifications You must be signed in to change notification settings

worldline-go/echo-swagger

 
 

Repository files navigation

echo-swagger

This is a forked version of echo-swagger to be sure not get updated with breaking changes.

echo middleware to automatically generate RESTful API documentation with Swagger 2.0.

go get github.com/worldline-go/echo-swagger

Usage

Set client-id for swagger-ui for oauth2 authentication. Use our auth library to get client-id external.

// echoSwagger "github.com/worldline-go/echo-swagger"

// set default external client-id in swagger-ui
v1.GET("/swagger/*", echoSwagger.EchoWrapHandler(func(c *echoSwagger.Config) {
	c.OAuth = &echoSwagger.OAuthConfig{
		ClientId: authProvider.GetClientIDExternal(),
	}
}))

About

echo middleware to automatically generate RESTful API documentation with Swagger 2.0.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%