Documentation ¶
Index ¶
- Constants
- type CreateItem
- type CreateItemCreated
- type CreateItemDefault
- func (o *CreateItemDefault) SetPayload(payload *models.Error)
- func (o *CreateItemDefault) SetStatusCode(code int)
- func (o *CreateItemDefault) WithPayload(payload *models.Error) *CreateItemDefault
- func (o *CreateItemDefault) WithStatusCode(code int) *CreateItemDefault
- func (o *CreateItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateItemHandler
- type CreateItemHandlerFunc
- type CreateItemParams
- type CreateItemURL
- func (o *CreateItemURL) Build() (*url.URL, error)
- func (o *CreateItemURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateItemURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateItemURL) SetBasePath(bp string)
- func (o *CreateItemURL) String() string
- func (o *CreateItemURL) StringFull(scheme, host string) string
- func (o *CreateItemURL) WithBasePath(bp string) *CreateItemURL
- type DeleteItem
- type DeleteItemDefault
- func (o *DeleteItemDefault) SetPayload(payload *models.Error)
- func (o *DeleteItemDefault) SetStatusCode(code int)
- func (o *DeleteItemDefault) WithPayload(payload *models.Error) *DeleteItemDefault
- func (o *DeleteItemDefault) WithStatusCode(code int) *DeleteItemDefault
- func (o *DeleteItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteItemHandler
- type DeleteItemHandlerFunc
- type DeleteItemOK
- type DeleteItemParams
- type DeleteItemURL
- func (o *DeleteItemURL) Build() (*url.URL, error)
- func (o *DeleteItemURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteItemURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteItemURL) SetBasePath(bp string)
- func (o *DeleteItemURL) String() string
- func (o *DeleteItemURL) StringFull(scheme, host string) string
- func (o *DeleteItemURL) WithBasePath(bp string) *DeleteItemURL
- type GetItem
- type GetItemDefault
- func (o *GetItemDefault) SetPayload(payload *models.Error)
- func (o *GetItemDefault) SetStatusCode(code int)
- func (o *GetItemDefault) WithPayload(payload *models.Error) *GetItemDefault
- func (o *GetItemDefault) WithStatusCode(code int) *GetItemDefault
- func (o *GetItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetItemHandler
- type GetItemHandlerFunc
- type GetItemOK
- type GetItemParams
- type GetItemURL
- func (o *GetItemURL) Build() (*url.URL, error)
- func (o *GetItemURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetItemURL) Must(u *url.URL, err error) *url.URL
- func (o *GetItemURL) SetBasePath(bp string)
- func (o *GetItemURL) String() string
- func (o *GetItemURL) StringFull(scheme, host string) string
- func (o *GetItemURL) WithBasePath(bp string) *GetItemURL
- type GetItems
- type GetItemsDefault
- func (o *GetItemsDefault) SetPayload(payload *models.Error)
- func (o *GetItemsDefault) SetStatusCode(code int)
- func (o *GetItemsDefault) WithPayload(payload *models.Error) *GetItemsDefault
- func (o *GetItemsDefault) WithStatusCode(code int) *GetItemsDefault
- func (o *GetItemsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetItemsHandler
- type GetItemsHandlerFunc
- type GetItemsOK
- type GetItemsParams
- type GetItemsURL
- func (o *GetItemsURL) Build() (*url.URL, error)
- func (o *GetItemsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetItemsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetItemsURL) SetBasePath(bp string)
- func (o *GetItemsURL) String() string
- func (o *GetItemsURL) StringFull(scheme, host string) string
- func (o *GetItemsURL) WithBasePath(bp string) *GetItemsURL
- type UpdateItem
- type UpdateItemDefault
- func (o *UpdateItemDefault) SetPayload(payload *models.Error)
- func (o *UpdateItemDefault) SetStatusCode(code int)
- func (o *UpdateItemDefault) WithPayload(payload *models.Error) *UpdateItemDefault
- func (o *UpdateItemDefault) WithStatusCode(code int) *UpdateItemDefault
- func (o *UpdateItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateItemHandler
- type UpdateItemHandlerFunc
- type UpdateItemOK
- type UpdateItemParams
- type UpdateItemURL
- func (o *UpdateItemURL) Build() (*url.URL, error)
- func (o *UpdateItemURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateItemURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateItemURL) SetBasePath(bp string)
- func (o *UpdateItemURL) String() string
- func (o *UpdateItemURL) StringFull(scheme, host string) string
- func (o *UpdateItemURL) WithBasePath(bp string) *UpdateItemURL
Constants ¶
const CreateItemCreatedCode int = 201
CreateItemCreatedCode is the HTTP code returned for type CreateItemCreated
const DeleteItemOKCode int = 200
DeleteItemOKCode is the HTTP code returned for type DeleteItemOK
const GetItemOKCode int = 200
GetItemOKCode is the HTTP code returned for type GetItemOK
const GetItemsOKCode int = 200
GetItemsOKCode is the HTTP code returned for type GetItemsOK
const UpdateItemOKCode int = 200
UpdateItemOKCode is the HTTP code returned for type UpdateItemOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateItem ¶
type CreateItem struct { Context *middleware.Context Handler CreateItemHandler }
CreateItem swagger:route POST /projects/{projectId}/items item createItem
Create a new item
func NewCreateItem ¶
func NewCreateItem(ctx *middleware.Context, handler CreateItemHandler) *CreateItem
NewCreateItem creates a new http.Handler for the create item operation
func (*CreateItem) ServeHTTP ¶
func (o *CreateItem) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateItemCreated ¶
type CreateItemCreated struct { /* In: Body */ Payload *models.ItemResponse `json:"body,omitempty"` }
CreateItemCreated Created
swagger:response createItemCreated
func NewCreateItemCreated ¶
func NewCreateItemCreated() *CreateItemCreated
NewCreateItemCreated creates CreateItemCreated with default headers values
func (*CreateItemCreated) SetPayload ¶
func (o *CreateItemCreated) SetPayload(payload *models.ItemResponse)
SetPayload sets the payload to the create item created response
func (*CreateItemCreated) WithPayload ¶
func (o *CreateItemCreated) WithPayload(payload *models.ItemResponse) *CreateItemCreated
WithPayload adds the payload to the create item created response
func (*CreateItemCreated) WriteResponse ¶
func (o *CreateItemCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateItemDefault ¶
type CreateItemDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateItemDefault unexpected error
swagger:response createItemDefault
func NewCreateItemDefault ¶
func NewCreateItemDefault(code int) *CreateItemDefault
NewCreateItemDefault creates CreateItemDefault with default headers values
func (*CreateItemDefault) SetPayload ¶
func (o *CreateItemDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create item default response
func (*CreateItemDefault) SetStatusCode ¶
func (o *CreateItemDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create item default response
func (*CreateItemDefault) WithPayload ¶
func (o *CreateItemDefault) WithPayload(payload *models.Error) *CreateItemDefault
WithPayload adds the payload to the create item default response
func (*CreateItemDefault) WithStatusCode ¶
func (o *CreateItemDefault) WithStatusCode(code int) *CreateItemDefault
WithStatusCode adds the status to the create item default response
func (*CreateItemDefault) WriteResponse ¶
func (o *CreateItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateItemHandler ¶
type CreateItemHandler interface {
Handle(CreateItemParams) middleware.Responder
}
CreateItemHandler interface for that can handle valid create item params
type CreateItemHandlerFunc ¶
type CreateItemHandlerFunc func(CreateItemParams) middleware.Responder
CreateItemHandlerFunc turns a function with the right signature into a create item handler
func (CreateItemHandlerFunc) Handle ¶
func (fn CreateItemHandlerFunc) Handle(params CreateItemParams) middleware.Responder
Handle executing the request and returning a response
type CreateItemParams ¶
type CreateItemParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The item details Required: true In: body */ Body *models.ItemRequest /*The project id Required: true In: path */ ProjectID string }
CreateItemParams contains all the bound params for the create item operation typically these are obtained from a http.Request
swagger:parameters createItem
func NewCreateItemParams ¶
func NewCreateItemParams() CreateItemParams
NewCreateItemParams creates a new CreateItemParams object no default values defined in spec.
func (*CreateItemParams) BindRequest ¶
func (o *CreateItemParams) 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 NewCreateItemParams() beforehand.
type CreateItemURL ¶
type CreateItemURL struct { ProjectID string // contains filtered or unexported fields }
CreateItemURL generates an URL for the create item operation
func (*CreateItemURL) Build ¶
func (o *CreateItemURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateItemURL) BuildFull ¶
func (o *CreateItemURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateItemURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateItemURL) SetBasePath ¶
func (o *CreateItemURL) 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 (*CreateItemURL) String ¶
func (o *CreateItemURL) String() string
String returns the string representation of the path with query string
func (*CreateItemURL) StringFull ¶
func (o *CreateItemURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateItemURL) WithBasePath ¶
func (o *CreateItemURL) WithBasePath(bp string) *CreateItemURL
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 DeleteItem ¶
type DeleteItem struct { Context *middleware.Context Handler DeleteItemHandler }
DeleteItem swagger:route DELETE /projects/{projectId}/items/{id} item deleteItem
Delete a item
func NewDeleteItem ¶
func NewDeleteItem(ctx *middleware.Context, handler DeleteItemHandler) *DeleteItem
NewDeleteItem creates a new http.Handler for the delete item operation
func (*DeleteItem) ServeHTTP ¶
func (o *DeleteItem) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteItemDefault ¶
type DeleteItemDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteItemDefault unexpected error
swagger:response deleteItemDefault
func NewDeleteItemDefault ¶
func NewDeleteItemDefault(code int) *DeleteItemDefault
NewDeleteItemDefault creates DeleteItemDefault with default headers values
func (*DeleteItemDefault) SetPayload ¶
func (o *DeleteItemDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete item default response
func (*DeleteItemDefault) SetStatusCode ¶
func (o *DeleteItemDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete item default response
func (*DeleteItemDefault) WithPayload ¶
func (o *DeleteItemDefault) WithPayload(payload *models.Error) *DeleteItemDefault
WithPayload adds the payload to the delete item default response
func (*DeleteItemDefault) WithStatusCode ¶
func (o *DeleteItemDefault) WithStatusCode(code int) *DeleteItemDefault
WithStatusCode adds the status to the delete item default response
func (*DeleteItemDefault) WriteResponse ¶
func (o *DeleteItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteItemHandler ¶
type DeleteItemHandler interface {
Handle(DeleteItemParams) middleware.Responder
}
DeleteItemHandler interface for that can handle valid delete item params
type DeleteItemHandlerFunc ¶
type DeleteItemHandlerFunc func(DeleteItemParams) middleware.Responder
DeleteItemHandlerFunc turns a function with the right signature into a delete item handler
func (DeleteItemHandlerFunc) Handle ¶
func (fn DeleteItemHandlerFunc) Handle(params DeleteItemParams) middleware.Responder
Handle executing the request and returning a response
type DeleteItemOK ¶
type DeleteItemOK struct { /* In: Body */ Payload *models.ItemResponse `json:"body,omitempty"` }
DeleteItemOK The item details
swagger:response deleteItemOK
func NewDeleteItemOK ¶
func NewDeleteItemOK() *DeleteItemOK
NewDeleteItemOK creates DeleteItemOK with default headers values
func (*DeleteItemOK) SetPayload ¶
func (o *DeleteItemOK) SetPayload(payload *models.ItemResponse)
SetPayload sets the payload to the delete item o k response
func (*DeleteItemOK) WithPayload ¶
func (o *DeleteItemOK) WithPayload(payload *models.ItemResponse) *DeleteItemOK
WithPayload adds the payload to the delete item o k response
func (*DeleteItemOK) WriteResponse ¶
func (o *DeleteItemOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteItemParams ¶
type DeleteItemParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The item id Required: true In: path */ ID string /*The project id Required: true In: path */ ProjectID string }
DeleteItemParams contains all the bound params for the delete item operation typically these are obtained from a http.Request
swagger:parameters deleteItem
func NewDeleteItemParams ¶
func NewDeleteItemParams() DeleteItemParams
NewDeleteItemParams creates a new DeleteItemParams object no default values defined in spec.
func (*DeleteItemParams) BindRequest ¶
func (o *DeleteItemParams) 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 NewDeleteItemParams() beforehand.
type DeleteItemURL ¶
DeleteItemURL generates an URL for the delete item operation
func (*DeleteItemURL) Build ¶
func (o *DeleteItemURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteItemURL) BuildFull ¶
func (o *DeleteItemURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteItemURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteItemURL) SetBasePath ¶
func (o *DeleteItemURL) 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 (*DeleteItemURL) String ¶
func (o *DeleteItemURL) String() string
String returns the string representation of the path with query string
func (*DeleteItemURL) StringFull ¶
func (o *DeleteItemURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteItemURL) WithBasePath ¶
func (o *DeleteItemURL) WithBasePath(bp string) *DeleteItemURL
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 GetItem ¶
type GetItem struct { Context *middleware.Context Handler GetItemHandler }
GetItem swagger:route GET /projects/{projectId}/items/{id} item getItem
Get a item
func NewGetItem ¶
func NewGetItem(ctx *middleware.Context, handler GetItemHandler) *GetItem
NewGetItem creates a new http.Handler for the get item operation
type GetItemDefault ¶
type GetItemDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetItemDefault unexpected error
swagger:response getItemDefault
func NewGetItemDefault ¶
func NewGetItemDefault(code int) *GetItemDefault
NewGetItemDefault creates GetItemDefault with default headers values
func (*GetItemDefault) SetPayload ¶
func (o *GetItemDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get item default response
func (*GetItemDefault) SetStatusCode ¶
func (o *GetItemDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get item default response
func (*GetItemDefault) WithPayload ¶
func (o *GetItemDefault) WithPayload(payload *models.Error) *GetItemDefault
WithPayload adds the payload to the get item default response
func (*GetItemDefault) WithStatusCode ¶
func (o *GetItemDefault) WithStatusCode(code int) *GetItemDefault
WithStatusCode adds the status to the get item default response
func (*GetItemDefault) WriteResponse ¶
func (o *GetItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetItemHandler ¶
type GetItemHandler interface {
Handle(GetItemParams) middleware.Responder
}
GetItemHandler interface for that can handle valid get item params
type GetItemHandlerFunc ¶
type GetItemHandlerFunc func(GetItemParams) middleware.Responder
GetItemHandlerFunc turns a function with the right signature into a get item handler
func (GetItemHandlerFunc) Handle ¶
func (fn GetItemHandlerFunc) Handle(params GetItemParams) middleware.Responder
Handle executing the request and returning a response
type GetItemOK ¶
type GetItemOK struct { /* In: Body */ Payload *models.ItemResponse `json:"body,omitempty"` }
GetItemOK The item details
swagger:response getItemOK
func NewGetItemOK ¶
func NewGetItemOK() *GetItemOK
NewGetItemOK creates GetItemOK with default headers values
func (*GetItemOK) SetPayload ¶
func (o *GetItemOK) SetPayload(payload *models.ItemResponse)
SetPayload sets the payload to the get item o k response
func (*GetItemOK) WithPayload ¶
func (o *GetItemOK) WithPayload(payload *models.ItemResponse) *GetItemOK
WithPayload adds the payload to the get item o k response
func (*GetItemOK) WriteResponse ¶
func (o *GetItemOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetItemParams ¶
type GetItemParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The item id Required: true In: path */ ID string /*The project id Required: true In: path */ ProjectID string }
GetItemParams contains all the bound params for the get item operation typically these are obtained from a http.Request
swagger:parameters getItem
func NewGetItemParams ¶
func NewGetItemParams() GetItemParams
NewGetItemParams creates a new GetItemParams object no default values defined in spec.
func (*GetItemParams) BindRequest ¶
func (o *GetItemParams) 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 NewGetItemParams() beforehand.
type GetItemURL ¶
GetItemURL generates an URL for the get item operation
func (*GetItemURL) Build ¶
func (o *GetItemURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetItemURL) BuildFull ¶
func (o *GetItemURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetItemURL) SetBasePath ¶
func (o *GetItemURL) 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 (*GetItemURL) String ¶
func (o *GetItemURL) String() string
String returns the string representation of the path with query string
func (*GetItemURL) StringFull ¶
func (o *GetItemURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetItemURL) WithBasePath ¶
func (o *GetItemURL) WithBasePath(bp string) *GetItemURL
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 GetItems ¶
type GetItems struct { Context *middleware.Context Handler GetItemsHandler }
GetItems swagger:route GET /projects/{projectId}/items item getItems
Get the items of the model
func NewGetItems ¶
func NewGetItems(ctx *middleware.Context, handler GetItemsHandler) *GetItems
NewGetItems creates a new http.Handler for the get items operation
type GetItemsDefault ¶
type GetItemsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetItemsDefault unexpected error
swagger:response getItemsDefault
func NewGetItemsDefault ¶
func NewGetItemsDefault(code int) *GetItemsDefault
NewGetItemsDefault creates GetItemsDefault with default headers values
func (*GetItemsDefault) SetPayload ¶
func (o *GetItemsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get items default response
func (*GetItemsDefault) SetStatusCode ¶
func (o *GetItemsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get items default response
func (*GetItemsDefault) WithPayload ¶
func (o *GetItemsDefault) WithPayload(payload *models.Error) *GetItemsDefault
WithPayload adds the payload to the get items default response
func (*GetItemsDefault) WithStatusCode ¶
func (o *GetItemsDefault) WithStatusCode(code int) *GetItemsDefault
WithStatusCode adds the status to the get items default response
func (*GetItemsDefault) WriteResponse ¶
func (o *GetItemsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetItemsHandler ¶
type GetItemsHandler interface {
Handle(GetItemsParams) middleware.Responder
}
GetItemsHandler interface for that can handle valid get items params
type GetItemsHandlerFunc ¶
type GetItemsHandlerFunc func(GetItemsParams) middleware.Responder
GetItemsHandlerFunc turns a function with the right signature into a get items handler
func (GetItemsHandlerFunc) Handle ¶
func (fn GetItemsHandlerFunc) Handle(params GetItemsParams) middleware.Responder
Handle executing the request and returning a response
type GetItemsOK ¶
type GetItemsOK struct { /* In: Body */ Payload *models.ItemsResponse `json:"body,omitempty"` }
GetItemsOK Created
swagger:response getItemsOK
func NewGetItemsOK ¶
func NewGetItemsOK() *GetItemsOK
NewGetItemsOK creates GetItemsOK with default headers values
func (*GetItemsOK) SetPayload ¶
func (o *GetItemsOK) SetPayload(payload *models.ItemsResponse)
SetPayload sets the payload to the get items o k response
func (*GetItemsOK) WithPayload ¶
func (o *GetItemsOK) WithPayload(payload *models.ItemsResponse) *GetItemsOK
WithPayload adds the payload to the get items o k response
func (*GetItemsOK) WriteResponse ¶
func (o *GetItemsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetItemsParams ¶
type GetItemsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*IDs to include in the response In: query */ Ids []int32 /*The limit count Minimum: 0 In: query */ Limit *int32 /*The page offset Minimum: 0 In: query */ Offset *int32 /*The project id Required: true In: path */ ProjectID string /*The filter query In: query */ Query *string /*The item-type id of the items Minimum: 1 In: query */ Type *int32 }
GetItemsParams contains all the bound params for the get items operation typically these are obtained from a http.Request
swagger:parameters getItems
func NewGetItemsParams ¶
func NewGetItemsParams() GetItemsParams
NewGetItemsParams creates a new GetItemsParams object no default values defined in spec.
func (*GetItemsParams) BindRequest ¶
func (o *GetItemsParams) 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 NewGetItemsParams() beforehand.
type GetItemsURL ¶
type GetItemsURL struct { ProjectID string Ids []int32 Limit *int32 Offset *int32 Query *string Type *int32 // contains filtered or unexported fields }
GetItemsURL generates an URL for the get items operation
func (*GetItemsURL) Build ¶
func (o *GetItemsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetItemsURL) BuildFull ¶
func (o *GetItemsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetItemsURL) SetBasePath ¶
func (o *GetItemsURL) 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 (*GetItemsURL) String ¶
func (o *GetItemsURL) String() string
String returns the string representation of the path with query string
func (*GetItemsURL) StringFull ¶
func (o *GetItemsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetItemsURL) WithBasePath ¶
func (o *GetItemsURL) WithBasePath(bp string) *GetItemsURL
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 UpdateItem ¶
type UpdateItem struct { Context *middleware.Context Handler UpdateItemHandler }
UpdateItem swagger:route PUT /projects/{projectId}/items/{id} item updateItem
Update a item
func NewUpdateItem ¶
func NewUpdateItem(ctx *middleware.Context, handler UpdateItemHandler) *UpdateItem
NewUpdateItem creates a new http.Handler for the update item operation
func (*UpdateItem) ServeHTTP ¶
func (o *UpdateItem) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateItemDefault ¶
type UpdateItemDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateItemDefault unexpected error
swagger:response updateItemDefault
func NewUpdateItemDefault ¶
func NewUpdateItemDefault(code int) *UpdateItemDefault
NewUpdateItemDefault creates UpdateItemDefault with default headers values
func (*UpdateItemDefault) SetPayload ¶
func (o *UpdateItemDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update item default response
func (*UpdateItemDefault) SetStatusCode ¶
func (o *UpdateItemDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update item default response
func (*UpdateItemDefault) WithPayload ¶
func (o *UpdateItemDefault) WithPayload(payload *models.Error) *UpdateItemDefault
WithPayload adds the payload to the update item default response
func (*UpdateItemDefault) WithStatusCode ¶
func (o *UpdateItemDefault) WithStatusCode(code int) *UpdateItemDefault
WithStatusCode adds the status to the update item default response
func (*UpdateItemDefault) WriteResponse ¶
func (o *UpdateItemDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateItemHandler ¶
type UpdateItemHandler interface {
Handle(UpdateItemParams) middleware.Responder
}
UpdateItemHandler interface for that can handle valid update item params
type UpdateItemHandlerFunc ¶
type UpdateItemHandlerFunc func(UpdateItemParams) middleware.Responder
UpdateItemHandlerFunc turns a function with the right signature into a update item handler
func (UpdateItemHandlerFunc) Handle ¶
func (fn UpdateItemHandlerFunc) Handle(params UpdateItemParams) middleware.Responder
Handle executing the request and returning a response
type UpdateItemOK ¶
type UpdateItemOK struct { /* In: Body */ Payload *models.ItemResponse `json:"body,omitempty"` }
UpdateItemOK The item details
swagger:response updateItemOK
func NewUpdateItemOK ¶
func NewUpdateItemOK() *UpdateItemOK
NewUpdateItemOK creates UpdateItemOK with default headers values
func (*UpdateItemOK) SetPayload ¶
func (o *UpdateItemOK) SetPayload(payload *models.ItemResponse)
SetPayload sets the payload to the update item o k response
func (*UpdateItemOK) WithPayload ¶
func (o *UpdateItemOK) WithPayload(payload *models.ItemResponse) *UpdateItemOK
WithPayload adds the payload to the update item o k response
func (*UpdateItemOK) WriteResponse ¶
func (o *UpdateItemOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateItemParams ¶
type UpdateItemParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The item details In: body */ Body *models.ItemRequest /*The item id Required: true In: path */ ID string /*The project id Required: true In: path */ ProjectID string }
UpdateItemParams contains all the bound params for the update item operation typically these are obtained from a http.Request
swagger:parameters updateItem
func NewUpdateItemParams ¶
func NewUpdateItemParams() UpdateItemParams
NewUpdateItemParams creates a new UpdateItemParams object no default values defined in spec.
func (*UpdateItemParams) BindRequest ¶
func (o *UpdateItemParams) 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 NewUpdateItemParams() beforehand.
type UpdateItemURL ¶
UpdateItemURL generates an URL for the update item operation
func (*UpdateItemURL) Build ¶
func (o *UpdateItemURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateItemURL) BuildFull ¶
func (o *UpdateItemURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateItemURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateItemURL) SetBasePath ¶
func (o *UpdateItemURL) 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 (*UpdateItemURL) String ¶
func (o *UpdateItemURL) String() string
String returns the string representation of the path with query string
func (*UpdateItemURL) StringFull ¶
func (o *UpdateItemURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateItemURL) WithBasePath ¶
func (o *UpdateItemURL) WithBasePath(bp string) *UpdateItemURL
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
Source Files ¶
- create_item.go
- create_item_parameters.go
- create_item_responses.go
- create_item_urlbuilder.go
- delete_item.go
- delete_item_parameters.go
- delete_item_responses.go
- delete_item_urlbuilder.go
- get_item.go
- get_item_parameters.go
- get_item_responses.go
- get_item_urlbuilder.go
- get_items.go
- get_items_parameters.go
- get_items_responses.go
- get_items_urlbuilder.go
- update_item.go
- update_item_parameters.go
- update_item_responses.go
- update_item_urlbuilder.go