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
Click to show internal directories.
Click to hide internal directories.