rest

package
v0.0.0-...-baa1f0e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpCodesResponsesMap = map[string]nexus.HTTPCodesResponse{
	"DefaultHTTPGETResponses":    nexus.DefaultHTTPGETResponses,
	"DefaultHTTPPUTResponses":    nexus.DefaultHTTPPUTResponses,
	"DefaultHTTPDELETEResponses": nexus.DefaultHTTPDELETEResponses,
}
View Source
var HttpMethodsResponsesMap = map[string]nexus.HTTPMethodsResponses{
	"DefaultHTTPMethodsResponses": nexus.DefaultHTTPMethodsResponses,
	"HTTPListResponse":            nexus.HTTPListResponse,
}

Functions

func GetHttpCodesResponses

func GetHttpCodesResponses(p parser.Package, responsesMap map[string]nexus.HTTPCodesResponse) map[string]nexus.HTTPCodesResponse

GetHttpCodesResponses will extract all variables which type is HTTPCodesResponse

func GetHttpMethodsResponses

func GetHttpMethodsResponses(p parser.Package, responsesMap map[string]nexus.HTTPMethodsResponses, httpCodes map[string]nexus.HTTPCodesResponse) map[string]nexus.HTTPMethodsResponses

func GetRestApiSpecs

func GetRestApiSpecs(p parser.Package, httpMethods map[string]nexus.HTTPMethodsResponses,
	httpCodes map[string]nexus.HTTPCodesResponse, parentsMap map[string]parser.NodeHelper) map[string]nexus.RestAPISpec

func ValidateRestApiSpec

func ValidateRestApiSpec(apiSpec nexus.RestAPISpec, parentsMap map[string]parser.NodeHelper, crdName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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