Documentation ¶
Index ¶
- Constants
- type GetApis
- type GetApisHandler
- type GetApisHandlerFunc
- type GetApisInternalServerError
- type GetApisOK
- type GetApisParams
- type GetApisURL
- func (o *GetApisURL) Build() (*url.URL, error)
- func (o *GetApisURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetApisURL) Must(u *url.URL, err error) *url.URL
- func (o *GetApisURL) SetBasePath(bp string)
- func (o *GetApisURL) String() string
- func (o *GetApisURL) StringFull(scheme, host string) string
- func (o *GetApisURL) WithBasePath(bp string) *GetApisURL
- type GetApisUnauthorized
Constants ¶
const GetApisInternalServerErrorCode int = 500
GetApisInternalServerErrorCode is the HTTP code returned for type GetApisInternalServerError
const GetApisOKCode int = 200
GetApisOKCode is the HTTP code returned for type GetApisOK
GetApisUnauthorizedCode is the HTTP code returned for type GetApisUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetApis ¶
type GetApis struct { Context *middleware.Context Handler GetApisHandler }
GetApis swagger:route GET /apis API (Collection) getApis
Get a list of API metadata ¶
This operation can be used to retrieve meta info about all APIs
func NewGetApis ¶
func NewGetApis(ctx *middleware.Context, handler GetApisHandler) *GetApis
NewGetApis creates a new http.Handler for the get apis operation
type GetApisHandler ¶
type GetApisHandler interface {
Handle(GetApisParams, *models.Principal) middleware.Responder
}
GetApisHandler interface for that can handle valid get apis params
type GetApisHandlerFunc ¶
type GetApisHandlerFunc func(GetApisParams, *models.Principal) middleware.Responder
GetApisHandlerFunc turns a function with the right signature into a get apis handler
func (GetApisHandlerFunc) Handle ¶
func (fn GetApisHandlerFunc) Handle(params GetApisParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetApisInternalServerError ¶
type GetApisInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetApisInternalServerError Internal Server Error.
swagger:response getApisInternalServerError
func NewGetApisInternalServerError ¶
func NewGetApisInternalServerError() *GetApisInternalServerError
NewGetApisInternalServerError creates GetApisInternalServerError with default headers values
func (*GetApisInternalServerError) SetPayload ¶
func (o *GetApisInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get apis internal server error response
func (*GetApisInternalServerError) WithPayload ¶
func (o *GetApisInternalServerError) WithPayload(payload *models.Error) *GetApisInternalServerError
WithPayload adds the payload to the get apis internal server error response
func (*GetApisInternalServerError) WriteResponse ¶
func (o *GetApisInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetApisOK ¶
GetApisOK An array of API Metadata
swagger:response getApisOK
func NewGetApisOK ¶
func NewGetApisOK() *GetApisOK
NewGetApisOK creates GetApisOK with default headers values
func (*GetApisOK) SetPayload ¶
SetPayload sets the payload to the get apis o k response
func (*GetApisOK) WithPayload ¶
WithPayload adds the payload to the get apis o k response
func (*GetApisOK) WriteResponse ¶
func (o *GetApisOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetApisParams ¶
type GetApisParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Number of APIs (APIMeta objects to return) Maximum: 1e+08 Minimum: 1 In: query */ Limit *int64 /*Optional - Condition to filter APIs. Currently only filtering by API type (HTTP or WebSocket) is supported. "type:http" for HTTP type "type:ws" for WebSocket type Max Length: 9 Pattern: ^[a-zA-Z:]*$ In: query */ Query *string }
GetApisParams contains all the bound params for the get apis operation typically these are obtained from a http.Request
swagger:parameters GetApis
func NewGetApisParams ¶
func NewGetApisParams() GetApisParams
NewGetApisParams creates a new GetApisParams object
There are no default values defined in the spec.
func (*GetApisParams) BindRequest ¶
func (o *GetApisParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetApisParams() beforehand.
type GetApisURL ¶
GetApisURL generates an URL for the get apis operation
func (*GetApisURL) Build ¶
func (o *GetApisURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetApisURL) BuildFull ¶
func (o *GetApisURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetApisURL) SetBasePath ¶
func (o *GetApisURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetApisURL) String ¶
func (o *GetApisURL) String() string
String returns the string representation of the path with query string
func (*GetApisURL) StringFull ¶
func (o *GetApisURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetApisURL) WithBasePath ¶
func (o *GetApisURL) WithBasePath(bp string) *GetApisURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetApisUnauthorized ¶
GetApisUnauthorized Unauthorized. Invalid authentication credentials.
swagger:response getApisUnauthorized
func NewGetApisUnauthorized ¶
func NewGetApisUnauthorized() *GetApisUnauthorized
NewGetApisUnauthorized creates GetApisUnauthorized with default headers values
func (*GetApisUnauthorized) SetPayload ¶
func (o *GetApisUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get apis unauthorized response
func (*GetApisUnauthorized) WithPayload ¶
func (o *GetApisUnauthorized) WithPayload(payload *models.Error) *GetApisUnauthorized
WithPayload adds the payload to the get apis unauthorized response
func (*GetApisUnauthorized) WriteResponse ¶
func (o *GetApisUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client