swagger

package
v0.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler() *Handler

func (*Handler) GetApiDocJson

func (h *Handler) GetApiDocJson(ctx *gin.Context)

GetApiDocJson godoc

@Id				Swagger API specification in JSON
@Summary		Swagger JSON
@Description	Request for getting swagger specification in JSON
@Tags			Swagger API
@Produce		application/yaml
@Success		200	{object}	string
@Router			/swagger/api-docs.json [get]

func (*Handler) GetApiDocYaml

func (h *Handler) GetApiDocYaml(ctx *gin.Context)

GetApiDocYaml godoc

@Id				Swagger API specification in YAML
@Summary		Swagger YAML
@Description	Request for getting swagger specification in YAML
@Tags			Swagger API
@Produce		application/yaml
@Success		200	{object}	string
@Router			/swagger/api-docs.yaml [get]

func (*Handler) GetUI

func (h *Handler) GetUI(ctx *gin.Context)

GetUI godoc

@Id				SwaggerUI
@Summary		Swagger UI
@Description	Request for getting swagger UI
@Tags			Swagger API
@Produce		text/html
@Success		200	{object}	string
@Router			/swagger/index.html [get]

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(router *gin.Engine, _ handler.RouteMiddlewares)

Jump to

Keyboard shortcuts

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