Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleSwaggerUI ¶
HandleSwaggerUI adds a new sub-party to party with all the necessary endpoints to serve the Swagger UI based on config.
Types ¶
type Config ¶
type Config struct { // ExternalConfigURL is the URL of an external configuration JavaScript object. // If it is non empty the UI configuration will be base on this object only, all // other parameters will be ingored. ExternalConfigURL string // SpecRefs is a list of API specifications [SwaggerSpecRef]. // If only one SpecRef is present Swagger UI will be configured with the BasicLayout, // otherwise with the StandaloneLayout and the SwaggerUIBundle.plugins.Topbar plugin. SpecRefs []SwaggerSpecRef // DeepLinking will determine the value of the corresponfing parameter // of the Swagger UI configuration. DeepLinking bool }
Config represents a (minimal) swagger UI configuration.
type SwaggerSpecRef ¶
SwaggerSpecRef represents a single swagger specification file. The URL field can be and absolute URL or a local path. In the letter case a route to serve that file will be added to the Swagger UI party.
Click to show internal directories.
Click to hide internal directories.