swagger

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 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 SwaggerJson

type SwaggerJson struct {
	Swagger     string                 `json:"swagger"`
	Info        SwaggerJsonInfo        `json:"info"`
	Schemes     []string               `json:"schemes"`
	Consumes    []string               `json:"consumes"`
	Produces    []string               `json:"produces"`
	Paths       map[string]interface{} `json:"paths"`
	Definitions map[string]interface{} `json:"definitions"`
}

swagger.json file struct

func MergeSwaggerJson

func MergeSwaggerJson(path string) (*SwaggerJson, error)

merge swagger.json file to one swagger.json obj

func MergeSwaggerJsonBy

func MergeSwaggerJsonBy(data map[string][]byte) *SwaggerJson

func NewSwaggerJson

func NewSwaggerJson() *SwaggerJson

type SwaggerJsonInfo

type SwaggerJsonInfo struct {
	Title   string `json:"title"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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