item

package
v0.0.0-...-281c92d Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const CreateItemCreatedCode int = 201

CreateItemCreatedCode is the HTTP code returned for type CreateItemCreated

View Source
const DeleteItemOKCode int = 200

DeleteItemOKCode is the HTTP code returned for type DeleteItemOK

View Source
const GetItemOKCode int = 200

GetItemOKCode is the HTTP code returned for type GetItemOK

View Source
const GetItemsOKCode int = 200

GetItemsOKCode is the HTTP code returned for type GetItemsOK

View Source
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

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

func (o *CreateItemURL) Must(u *url.URL, err error) *url.URL

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

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

type DeleteItemURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

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

func (o *DeleteItemURL) Must(u *url.URL, err error) *url.URL

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

func (*GetItem) ServeHTTP

func (o *GetItem) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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

type GetItemURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

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) Must

func (o *GetItemURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

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

func (*GetItems) ServeHTTP

func (o *GetItems) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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) Must

func (o *GetItemsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

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

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

type UpdateItemURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

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

func (o *UpdateItemURL) Must(u *url.URL, err error) *url.URL

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

Jump to

Keyboard shortcuts

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