sanity_test

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SanityController

type SanityController struct {
	runtime.GleeceController // Embedding the GleeceController to inherit its methods
}

@Tag(Sanity Controller Tag) @Route(/test/sanity) @Description Sanity Controller

func (*SanityController) ValidMethodWithSimpleRouteQueryAndHeaderParameters

func (ec *SanityController) ValidMethodWithSimpleRouteQueryAndHeaderParameters(
	routeParam string,
	queryParam int,
	headerParam float32,
) (SimpleResponseModel, error)

A sanity test controller method @Method(POST) @Route(/{routeParam}) @Path(routeParam, {name: "routeParamAlias"}) @Query(queryParam) @Header(headerParam) @Response(200) Description for HTTP 200 @ErrorResponse(500) Code 500 @ErrorResponse(502) Code 502

type SimpleResponseModel

type SimpleResponseModel struct {
	// A description for the value
	SomeValue int `validate:"required,min=0,max=10"`
}

Some comment @Description This should be the actual description

Jump to

Keyboard shortcuts

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