Documentation ¶
Index ¶
- Constants
- type CreateSubCategory
- type CreateSubCategoryBadRequest
- type CreateSubCategoryByCategory
- type CreateSubCategoryByCategoryBadRequest
- type CreateSubCategoryByCategoryCreated
- func (o *CreateSubCategoryByCategoryCreated) SetPayload(payload *models.SubCategory)
- func (o *CreateSubCategoryByCategoryCreated) WithPayload(payload *models.SubCategory) *CreateSubCategoryByCategoryCreated
- func (o *CreateSubCategoryByCategoryCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSubCategoryByCategoryHandler
- type CreateSubCategoryByCategoryHandlerFunc
- type CreateSubCategoryByCategoryParams
- type CreateSubCategoryByCategoryURL
- func (o *CreateSubCategoryByCategoryURL) Build() (*url.URL, error)
- func (o *CreateSubCategoryByCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateSubCategoryByCategoryURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateSubCategoryByCategoryURL) SetBasePath(bp string)
- func (o *CreateSubCategoryByCategoryURL) String() string
- func (o *CreateSubCategoryByCategoryURL) StringFull(scheme, host string) string
- func (o *CreateSubCategoryByCategoryURL) WithBasePath(bp string) *CreateSubCategoryByCategoryURL
- type CreateSubCategoryCreated
- type CreateSubCategoryHandler
- type CreateSubCategoryHandlerFunc
- type CreateSubCategoryParams
- type CreateSubCategoryURL
- func (o *CreateSubCategoryURL) Build() (*url.URL, error)
- func (o *CreateSubCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateSubCategoryURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateSubCategoryURL) SetBasePath(bp string)
- func (o *CreateSubCategoryURL) String() string
- func (o *CreateSubCategoryURL) StringFull(scheme, host string) string
- func (o *CreateSubCategoryURL) WithBasePath(bp string) *CreateSubCategoryURL
- type DeleteSubCategories
- type DeleteSubCategoriesByCategory
- type DeleteSubCategoriesByCategoryHandler
- type DeleteSubCategoriesByCategoryHandlerFunc
- type DeleteSubCategoriesByCategoryNotFound
- type DeleteSubCategoriesByCategoryOK
- type DeleteSubCategoriesByCategoryParams
- type DeleteSubCategoriesByCategoryURL
- func (o *DeleteSubCategoriesByCategoryURL) Build() (*url.URL, error)
- func (o *DeleteSubCategoriesByCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSubCategoriesByCategoryURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSubCategoriesByCategoryURL) SetBasePath(bp string)
- func (o *DeleteSubCategoriesByCategoryURL) String() string
- func (o *DeleteSubCategoriesByCategoryURL) StringFull(scheme, host string) string
- func (o *DeleteSubCategoriesByCategoryURL) WithBasePath(bp string) *DeleteSubCategoriesByCategoryURL
- type DeleteSubCategoriesHandler
- type DeleteSubCategoriesHandlerFunc
- type DeleteSubCategoriesNotFound
- type DeleteSubCategoriesOK
- type DeleteSubCategoriesParams
- type DeleteSubCategoriesURL
- func (o *DeleteSubCategoriesURL) Build() (*url.URL, error)
- func (o *DeleteSubCategoriesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSubCategoriesURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSubCategoriesURL) SetBasePath(bp string)
- func (o *DeleteSubCategoriesURL) String() string
- func (o *DeleteSubCategoriesURL) StringFull(scheme, host string) string
- func (o *DeleteSubCategoriesURL) WithBasePath(bp string) *DeleteSubCategoriesURL
- type DeleteSubCategory
- type DeleteSubCategoryBadRequest
- type DeleteSubCategoryHandler
- type DeleteSubCategoryHandlerFunc
- type DeleteSubCategoryNotFound
- type DeleteSubCategoryOK
- type DeleteSubCategoryParams
- type DeleteSubCategoryURL
- func (o *DeleteSubCategoryURL) Build() (*url.URL, error)
- func (o *DeleteSubCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSubCategoryURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSubCategoryURL) SetBasePath(bp string)
- func (o *DeleteSubCategoryURL) String() string
- func (o *DeleteSubCategoryURL) StringFull(scheme, host string) string
- func (o *DeleteSubCategoryURL) WithBasePath(bp string) *DeleteSubCategoryURL
- type GetSubCategories
- type GetSubCategoriesByCategory
- type GetSubCategoriesByCategoryHandler
- type GetSubCategoriesByCategoryHandlerFunc
- type GetSubCategoriesByCategoryNotFound
- type GetSubCategoriesByCategoryOK
- type GetSubCategoriesByCategoryParams
- type GetSubCategoriesByCategoryURL
- func (o *GetSubCategoriesByCategoryURL) Build() (*url.URL, error)
- func (o *GetSubCategoriesByCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSubCategoriesByCategoryURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSubCategoriesByCategoryURL) SetBasePath(bp string)
- func (o *GetSubCategoriesByCategoryURL) String() string
- func (o *GetSubCategoriesByCategoryURL) StringFull(scheme, host string) string
- func (o *GetSubCategoriesByCategoryURL) WithBasePath(bp string) *GetSubCategoriesByCategoryURL
- type GetSubCategoriesHandler
- type GetSubCategoriesHandlerFunc
- type GetSubCategoriesNotFound
- type GetSubCategoriesOK
- type GetSubCategoriesParams
- type GetSubCategoriesURL
- func (o *GetSubCategoriesURL) Build() (*url.URL, error)
- func (o *GetSubCategoriesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSubCategoriesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSubCategoriesURL) SetBasePath(bp string)
- func (o *GetSubCategoriesURL) String() string
- func (o *GetSubCategoriesURL) StringFull(scheme, host string) string
- func (o *GetSubCategoriesURL) WithBasePath(bp string) *GetSubCategoriesURL
- type GetSubCategory
- type GetSubCategoryBadRequest
- type GetSubCategoryHandler
- type GetSubCategoryHandlerFunc
- type GetSubCategoryNotFound
- type GetSubCategoryOK
- type GetSubCategoryParams
- type GetSubCategoryURL
- func (o *GetSubCategoryURL) Build() (*url.URL, error)
- func (o *GetSubCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSubCategoryURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSubCategoryURL) SetBasePath(bp string)
- func (o *GetSubCategoryURL) String() string
- func (o *GetSubCategoryURL) StringFull(scheme, host string) string
- func (o *GetSubCategoryURL) WithBasePath(bp string) *GetSubCategoryURL
- type UpdateSubCategory
- type UpdateSubCategoryBadRequest
- type UpdateSubCategoryCreated
- type UpdateSubCategoryHandler
- type UpdateSubCategoryHandlerFunc
- type UpdateSubCategoryNotFound
- type UpdateSubCategoryParams
- type UpdateSubCategoryURL
- func (o *UpdateSubCategoryURL) Build() (*url.URL, error)
- func (o *UpdateSubCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateSubCategoryURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateSubCategoryURL) SetBasePath(bp string)
- func (o *UpdateSubCategoryURL) String() string
- func (o *UpdateSubCategoryURL) StringFull(scheme, host string) string
- func (o *UpdateSubCategoryURL) WithBasePath(bp string) *UpdateSubCategoryURL
Constants ¶
const CreateSubCategoryBadRequestCode int = 400
CreateSubCategoryBadRequestCode is the HTTP code returned for type CreateSubCategoryBadRequest
const CreateSubCategoryByCategoryBadRequestCode int = 400
CreateSubCategoryByCategoryBadRequestCode is the HTTP code returned for type CreateSubCategoryByCategoryBadRequest
const CreateSubCategoryByCategoryCreatedCode int = 201
CreateSubCategoryByCategoryCreatedCode is the HTTP code returned for type CreateSubCategoryByCategoryCreated
const CreateSubCategoryCreatedCode int = 201
CreateSubCategoryCreatedCode is the HTTP code returned for type CreateSubCategoryCreated
const DeleteSubCategoriesByCategoryNotFoundCode int = 404
DeleteSubCategoriesByCategoryNotFoundCode is the HTTP code returned for type DeleteSubCategoriesByCategoryNotFound
const DeleteSubCategoriesByCategoryOKCode int = 200
DeleteSubCategoriesByCategoryOKCode is the HTTP code returned for type DeleteSubCategoriesByCategoryOK
const DeleteSubCategoriesNotFoundCode int = 404
DeleteSubCategoriesNotFoundCode is the HTTP code returned for type DeleteSubCategoriesNotFound
const DeleteSubCategoriesOKCode int = 200
DeleteSubCategoriesOKCode is the HTTP code returned for type DeleteSubCategoriesOK
const DeleteSubCategoryBadRequestCode int = 400
DeleteSubCategoryBadRequestCode is the HTTP code returned for type DeleteSubCategoryBadRequest
const DeleteSubCategoryNotFoundCode int = 404
DeleteSubCategoryNotFoundCode is the HTTP code returned for type DeleteSubCategoryNotFound
const DeleteSubCategoryOKCode int = 200
DeleteSubCategoryOKCode is the HTTP code returned for type DeleteSubCategoryOK
const GetSubCategoriesByCategoryNotFoundCode int = 404
GetSubCategoriesByCategoryNotFoundCode is the HTTP code returned for type GetSubCategoriesByCategoryNotFound
const GetSubCategoriesByCategoryOKCode int = 200
GetSubCategoriesByCategoryOKCode is the HTTP code returned for type GetSubCategoriesByCategoryOK
const GetSubCategoriesNotFoundCode int = 404
GetSubCategoriesNotFoundCode is the HTTP code returned for type GetSubCategoriesNotFound
const GetSubCategoriesOKCode int = 200
GetSubCategoriesOKCode is the HTTP code returned for type GetSubCategoriesOK
const GetSubCategoryBadRequestCode int = 400
GetSubCategoryBadRequestCode is the HTTP code returned for type GetSubCategoryBadRequest
const GetSubCategoryNotFoundCode int = 404
GetSubCategoryNotFoundCode is the HTTP code returned for type GetSubCategoryNotFound
const GetSubCategoryOKCode int = 200
GetSubCategoryOKCode is the HTTP code returned for type GetSubCategoryOK
const UpdateSubCategoryBadRequestCode int = 400
UpdateSubCategoryBadRequestCode is the HTTP code returned for type UpdateSubCategoryBadRequest
const UpdateSubCategoryCreatedCode int = 201
UpdateSubCategoryCreatedCode is the HTTP code returned for type UpdateSubCategoryCreated
const UpdateSubCategoryNotFoundCode int = 404
UpdateSubCategoryNotFoundCode is the HTTP code returned for type UpdateSubCategoryNotFound
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSubCategory ¶
type CreateSubCategory struct { Context *middleware.Context Handler CreateSubCategoryHandler }
CreateSubCategory swagger:route POST /subcategories Subcategories createSubCategory
Create a SubCategory
func NewCreateSubCategory ¶
func NewCreateSubCategory(ctx *middleware.Context, handler CreateSubCategoryHandler) *CreateSubCategory
NewCreateSubCategory creates a new http.Handler for the create sub category operation
func (*CreateSubCategory) ServeHTTP ¶
func (o *CreateSubCategory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateSubCategoryBadRequest ¶
type CreateSubCategoryBadRequest struct { }
CreateSubCategoryBadRequest Invalid input
swagger:response createSubCategoryBadRequest
func NewCreateSubCategoryBadRequest ¶
func NewCreateSubCategoryBadRequest() *CreateSubCategoryBadRequest
NewCreateSubCategoryBadRequest creates CreateSubCategoryBadRequest with default headers values
func (*CreateSubCategoryBadRequest) WriteResponse ¶
func (o *CreateSubCategoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSubCategoryByCategory ¶
type CreateSubCategoryByCategory struct { Context *middleware.Context Handler CreateSubCategoryByCategoryHandler }
CreateSubCategoryByCategory swagger:route POST /categories/{id}/subcategories Subcategories createSubCategoryByCategory
Create a SubCategory by Category
func NewCreateSubCategoryByCategory ¶
func NewCreateSubCategoryByCategory(ctx *middleware.Context, handler CreateSubCategoryByCategoryHandler) *CreateSubCategoryByCategory
NewCreateSubCategoryByCategory creates a new http.Handler for the create sub category by category operation
func (*CreateSubCategoryByCategory) ServeHTTP ¶
func (o *CreateSubCategoryByCategory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateSubCategoryByCategoryBadRequest ¶
type CreateSubCategoryByCategoryBadRequest struct { }
CreateSubCategoryByCategoryBadRequest Invalid input
swagger:response createSubCategoryByCategoryBadRequest
func NewCreateSubCategoryByCategoryBadRequest ¶
func NewCreateSubCategoryByCategoryBadRequest() *CreateSubCategoryByCategoryBadRequest
NewCreateSubCategoryByCategoryBadRequest creates CreateSubCategoryByCategoryBadRequest with default headers values
func (*CreateSubCategoryByCategoryBadRequest) WriteResponse ¶
func (o *CreateSubCategoryByCategoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSubCategoryByCategoryCreated ¶
type CreateSubCategoryByCategoryCreated struct { /* In: Body */ Payload *models.SubCategory `json:"body,omitempty"` }
CreateSubCategoryByCategoryCreated SubCategory Created
swagger:response createSubCategoryByCategoryCreated
func NewCreateSubCategoryByCategoryCreated ¶
func NewCreateSubCategoryByCategoryCreated() *CreateSubCategoryByCategoryCreated
NewCreateSubCategoryByCategoryCreated creates CreateSubCategoryByCategoryCreated with default headers values
func (*CreateSubCategoryByCategoryCreated) SetPayload ¶
func (o *CreateSubCategoryByCategoryCreated) SetPayload(payload *models.SubCategory)
SetPayload sets the payload to the create sub category by category created response
func (*CreateSubCategoryByCategoryCreated) WithPayload ¶
func (o *CreateSubCategoryByCategoryCreated) WithPayload(payload *models.SubCategory) *CreateSubCategoryByCategoryCreated
WithPayload adds the payload to the create sub category by category created response
func (*CreateSubCategoryByCategoryCreated) WriteResponse ¶
func (o *CreateSubCategoryByCategoryCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSubCategoryByCategoryHandler ¶
type CreateSubCategoryByCategoryHandler interface {
Handle(CreateSubCategoryByCategoryParams) middleware.Responder
}
CreateSubCategoryByCategoryHandler interface for that can handle valid create sub category by category params
type CreateSubCategoryByCategoryHandlerFunc ¶
type CreateSubCategoryByCategoryHandlerFunc func(CreateSubCategoryByCategoryParams) middleware.Responder
CreateSubCategoryByCategoryHandlerFunc turns a function with the right signature into a create sub category by category handler
func (CreateSubCategoryByCategoryHandlerFunc) Handle ¶
func (fn CreateSubCategoryByCategoryHandlerFunc) Handle(params CreateSubCategoryByCategoryParams) middleware.Responder
Handle executing the request and returning a response
type CreateSubCategoryByCategoryParams ¶
type CreateSubCategoryByCategoryParams struct { // HTTP Request Object HTTPRequest *http.Request /*Category that needs to be added to the DB Required: true In: body */ Body *models.SubCategory /*Category ID Associated to Subcategory(s) Required: true In: path */ ID int64 }
CreateSubCategoryByCategoryParams contains all the bound params for the create sub category by category operation typically these are obtained from a http.Request
swagger:parameters createSubCategoryByCategory
func NewCreateSubCategoryByCategoryParams ¶
func NewCreateSubCategoryByCategoryParams() CreateSubCategoryByCategoryParams
NewCreateSubCategoryByCategoryParams creates a new CreateSubCategoryByCategoryParams object with the default values initialized.
func (*CreateSubCategoryByCategoryParams) BindRequest ¶
func (o *CreateSubCategoryByCategoryParams) 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
type CreateSubCategoryByCategoryURL ¶
type CreateSubCategoryByCategoryURL struct { ID int64 // contains filtered or unexported fields }
CreateSubCategoryByCategoryURL generates an URL for the create sub category by category operation
func (*CreateSubCategoryByCategoryURL) Build ¶
func (o *CreateSubCategoryByCategoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateSubCategoryByCategoryURL) BuildFull ¶
func (o *CreateSubCategoryByCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateSubCategoryByCategoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateSubCategoryByCategoryURL) SetBasePath ¶
func (o *CreateSubCategoryByCategoryURL) 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 (*CreateSubCategoryByCategoryURL) String ¶
func (o *CreateSubCategoryByCategoryURL) String() string
String returns the string representation of the path with query string
func (*CreateSubCategoryByCategoryURL) StringFull ¶
func (o *CreateSubCategoryByCategoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateSubCategoryByCategoryURL) WithBasePath ¶
func (o *CreateSubCategoryByCategoryURL) WithBasePath(bp string) *CreateSubCategoryByCategoryURL
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 CreateSubCategoryCreated ¶
type CreateSubCategoryCreated struct { /* In: Body */ Payload *models.SubCategory `json:"body,omitempty"` }
CreateSubCategoryCreated SubCategory Created
swagger:response createSubCategoryCreated
func NewCreateSubCategoryCreated ¶
func NewCreateSubCategoryCreated() *CreateSubCategoryCreated
NewCreateSubCategoryCreated creates CreateSubCategoryCreated with default headers values
func (*CreateSubCategoryCreated) SetPayload ¶
func (o *CreateSubCategoryCreated) SetPayload(payload *models.SubCategory)
SetPayload sets the payload to the create sub category created response
func (*CreateSubCategoryCreated) WithPayload ¶
func (o *CreateSubCategoryCreated) WithPayload(payload *models.SubCategory) *CreateSubCategoryCreated
WithPayload adds the payload to the create sub category created response
func (*CreateSubCategoryCreated) WriteResponse ¶
func (o *CreateSubCategoryCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSubCategoryHandler ¶
type CreateSubCategoryHandler interface {
Handle(CreateSubCategoryParams) middleware.Responder
}
CreateSubCategoryHandler interface for that can handle valid create sub category params
type CreateSubCategoryHandlerFunc ¶
type CreateSubCategoryHandlerFunc func(CreateSubCategoryParams) middleware.Responder
CreateSubCategoryHandlerFunc turns a function with the right signature into a create sub category handler
func (CreateSubCategoryHandlerFunc) Handle ¶
func (fn CreateSubCategoryHandlerFunc) Handle(params CreateSubCategoryParams) middleware.Responder
Handle executing the request and returning a response
type CreateSubCategoryParams ¶
type CreateSubCategoryParams struct { // HTTP Request Object HTTPRequest *http.Request /*Category that needs to be added to the DB Required: true In: body */ Body *models.SubCategory }
CreateSubCategoryParams contains all the bound params for the create sub category operation typically these are obtained from a http.Request
swagger:parameters createSubCategory
func NewCreateSubCategoryParams ¶
func NewCreateSubCategoryParams() CreateSubCategoryParams
NewCreateSubCategoryParams creates a new CreateSubCategoryParams object with the default values initialized.
func (*CreateSubCategoryParams) BindRequest ¶
func (o *CreateSubCategoryParams) 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
type CreateSubCategoryURL ¶
type CreateSubCategoryURL struct {
// contains filtered or unexported fields
}
CreateSubCategoryURL generates an URL for the create sub category operation
func (*CreateSubCategoryURL) Build ¶
func (o *CreateSubCategoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateSubCategoryURL) BuildFull ¶
func (o *CreateSubCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateSubCategoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateSubCategoryURL) SetBasePath ¶
func (o *CreateSubCategoryURL) 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 (*CreateSubCategoryURL) String ¶
func (o *CreateSubCategoryURL) String() string
String returns the string representation of the path with query string
func (*CreateSubCategoryURL) StringFull ¶
func (o *CreateSubCategoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateSubCategoryURL) WithBasePath ¶
func (o *CreateSubCategoryURL) WithBasePath(bp string) *CreateSubCategoryURL
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 DeleteSubCategories ¶
type DeleteSubCategories struct { Context *middleware.Context Handler DeleteSubCategoriesHandler }
DeleteSubCategories swagger:route DELETE /subcategories Subcategories deleteSubCategories
Delete all SubCategories ¶
removes all subcategories.
func NewDeleteSubCategories ¶
func NewDeleteSubCategories(ctx *middleware.Context, handler DeleteSubCategoriesHandler) *DeleteSubCategories
NewDeleteSubCategories creates a new http.Handler for the delete sub categories operation
func (*DeleteSubCategories) ServeHTTP ¶
func (o *DeleteSubCategories) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteSubCategoriesByCategory ¶
type DeleteSubCategoriesByCategory struct { Context *middleware.Context Handler DeleteSubCategoriesByCategoryHandler }
DeleteSubCategoriesByCategory swagger:route DELETE /categories/{id}/subcategories Subcategories deleteSubCategoriesByCategory
Delete all SubCategories By Category ¶
removes all subcategories from a given category.
func NewDeleteSubCategoriesByCategory ¶
func NewDeleteSubCategoriesByCategory(ctx *middleware.Context, handler DeleteSubCategoriesByCategoryHandler) *DeleteSubCategoriesByCategory
NewDeleteSubCategoriesByCategory creates a new http.Handler for the delete sub categories by category operation
func (*DeleteSubCategoriesByCategory) ServeHTTP ¶
func (o *DeleteSubCategoriesByCategory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteSubCategoriesByCategoryHandler ¶
type DeleteSubCategoriesByCategoryHandler interface {
Handle(DeleteSubCategoriesByCategoryParams) middleware.Responder
}
DeleteSubCategoriesByCategoryHandler interface for that can handle valid delete sub categories by category params
type DeleteSubCategoriesByCategoryHandlerFunc ¶
type DeleteSubCategoriesByCategoryHandlerFunc func(DeleteSubCategoriesByCategoryParams) middleware.Responder
DeleteSubCategoriesByCategoryHandlerFunc turns a function with the right signature into a delete sub categories by category handler
func (DeleteSubCategoriesByCategoryHandlerFunc) Handle ¶
func (fn DeleteSubCategoriesByCategoryHandlerFunc) Handle(params DeleteSubCategoriesByCategoryParams) middleware.Responder
Handle executing the request and returning a response
type DeleteSubCategoriesByCategoryNotFound ¶
type DeleteSubCategoriesByCategoryNotFound struct { }
DeleteSubCategoriesByCategoryNotFound No items found
swagger:response deleteSubCategoriesByCategoryNotFound
func NewDeleteSubCategoriesByCategoryNotFound ¶
func NewDeleteSubCategoriesByCategoryNotFound() *DeleteSubCategoriesByCategoryNotFound
NewDeleteSubCategoriesByCategoryNotFound creates DeleteSubCategoriesByCategoryNotFound with default headers values
func (*DeleteSubCategoriesByCategoryNotFound) WriteResponse ¶
func (o *DeleteSubCategoriesByCategoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubCategoriesByCategoryOK ¶
type DeleteSubCategoriesByCategoryOK struct { }
DeleteSubCategoriesByCategoryOK Status Ok
swagger:response deleteSubCategoriesByCategoryOK
func NewDeleteSubCategoriesByCategoryOK ¶
func NewDeleteSubCategoriesByCategoryOK() *DeleteSubCategoriesByCategoryOK
NewDeleteSubCategoriesByCategoryOK creates DeleteSubCategoriesByCategoryOK with default headers values
func (*DeleteSubCategoriesByCategoryOK) WriteResponse ¶
func (o *DeleteSubCategoriesByCategoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubCategoriesByCategoryParams ¶
type DeleteSubCategoriesByCategoryParams struct { // HTTP Request Object HTTPRequest *http.Request /*Category ID Associated to Subcategory(s) Required: true In: path */ ID int64 }
DeleteSubCategoriesByCategoryParams contains all the bound params for the delete sub categories by category operation typically these are obtained from a http.Request
swagger:parameters deleteSubCategoriesByCategory
func NewDeleteSubCategoriesByCategoryParams ¶
func NewDeleteSubCategoriesByCategoryParams() DeleteSubCategoriesByCategoryParams
NewDeleteSubCategoriesByCategoryParams creates a new DeleteSubCategoriesByCategoryParams object with the default values initialized.
func (*DeleteSubCategoriesByCategoryParams) BindRequest ¶
func (o *DeleteSubCategoriesByCategoryParams) 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
type DeleteSubCategoriesByCategoryURL ¶
type DeleteSubCategoriesByCategoryURL struct { ID int64 // contains filtered or unexported fields }
DeleteSubCategoriesByCategoryURL generates an URL for the delete sub categories by category operation
func (*DeleteSubCategoriesByCategoryURL) Build ¶
func (o *DeleteSubCategoriesByCategoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteSubCategoriesByCategoryURL) BuildFull ¶
func (o *DeleteSubCategoriesByCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteSubCategoriesByCategoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteSubCategoriesByCategoryURL) SetBasePath ¶
func (o *DeleteSubCategoriesByCategoryURL) 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 (*DeleteSubCategoriesByCategoryURL) String ¶
func (o *DeleteSubCategoriesByCategoryURL) String() string
String returns the string representation of the path with query string
func (*DeleteSubCategoriesByCategoryURL) StringFull ¶
func (o *DeleteSubCategoriesByCategoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteSubCategoriesByCategoryURL) WithBasePath ¶
func (o *DeleteSubCategoriesByCategoryURL) WithBasePath(bp string) *DeleteSubCategoriesByCategoryURL
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 DeleteSubCategoriesHandler ¶
type DeleteSubCategoriesHandler interface {
Handle(DeleteSubCategoriesParams) middleware.Responder
}
DeleteSubCategoriesHandler interface for that can handle valid delete sub categories params
type DeleteSubCategoriesHandlerFunc ¶
type DeleteSubCategoriesHandlerFunc func(DeleteSubCategoriesParams) middleware.Responder
DeleteSubCategoriesHandlerFunc turns a function with the right signature into a delete sub categories handler
func (DeleteSubCategoriesHandlerFunc) Handle ¶
func (fn DeleteSubCategoriesHandlerFunc) Handle(params DeleteSubCategoriesParams) middleware.Responder
Handle executing the request and returning a response
type DeleteSubCategoriesNotFound ¶
type DeleteSubCategoriesNotFound struct { }
DeleteSubCategoriesNotFound No items found
swagger:response deleteSubCategoriesNotFound
func NewDeleteSubCategoriesNotFound ¶
func NewDeleteSubCategoriesNotFound() *DeleteSubCategoriesNotFound
NewDeleteSubCategoriesNotFound creates DeleteSubCategoriesNotFound with default headers values
func (*DeleteSubCategoriesNotFound) WriteResponse ¶
func (o *DeleteSubCategoriesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubCategoriesOK ¶
type DeleteSubCategoriesOK struct { }
DeleteSubCategoriesOK Status Ok
swagger:response deleteSubCategoriesOK
func NewDeleteSubCategoriesOK ¶
func NewDeleteSubCategoriesOK() *DeleteSubCategoriesOK
NewDeleteSubCategoriesOK creates DeleteSubCategoriesOK with default headers values
func (*DeleteSubCategoriesOK) WriteResponse ¶
func (o *DeleteSubCategoriesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubCategoriesParams ¶
DeleteSubCategoriesParams contains all the bound params for the delete sub categories operation typically these are obtained from a http.Request
swagger:parameters deleteSubCategories
func NewDeleteSubCategoriesParams ¶
func NewDeleteSubCategoriesParams() DeleteSubCategoriesParams
NewDeleteSubCategoriesParams creates a new DeleteSubCategoriesParams object with the default values initialized.
func (*DeleteSubCategoriesParams) BindRequest ¶
func (o *DeleteSubCategoriesParams) 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
type DeleteSubCategoriesURL ¶
type DeleteSubCategoriesURL struct {
// contains filtered or unexported fields
}
DeleteSubCategoriesURL generates an URL for the delete sub categories operation
func (*DeleteSubCategoriesURL) Build ¶
func (o *DeleteSubCategoriesURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteSubCategoriesURL) BuildFull ¶
func (o *DeleteSubCategoriesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteSubCategoriesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteSubCategoriesURL) SetBasePath ¶
func (o *DeleteSubCategoriesURL) 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 (*DeleteSubCategoriesURL) String ¶
func (o *DeleteSubCategoriesURL) String() string
String returns the string representation of the path with query string
func (*DeleteSubCategoriesURL) StringFull ¶
func (o *DeleteSubCategoriesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteSubCategoriesURL) WithBasePath ¶
func (o *DeleteSubCategoriesURL) WithBasePath(bp string) *DeleteSubCategoriesURL
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 DeleteSubCategory ¶
type DeleteSubCategory struct { Context *middleware.Context Handler DeleteSubCategoryHandler }
DeleteSubCategory swagger:route DELETE /subcategories/{id} Subcategories deleteSubCategory
Delete a specific SubCategory ¶
removes a specfic subcategory.
func NewDeleteSubCategory ¶
func NewDeleteSubCategory(ctx *middleware.Context, handler DeleteSubCategoryHandler) *DeleteSubCategory
NewDeleteSubCategory creates a new http.Handler for the delete sub category operation
func (*DeleteSubCategory) ServeHTTP ¶
func (o *DeleteSubCategory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteSubCategoryBadRequest ¶
type DeleteSubCategoryBadRequest struct { }
DeleteSubCategoryBadRequest Invalid input
swagger:response deleteSubCategoryBadRequest
func NewDeleteSubCategoryBadRequest ¶
func NewDeleteSubCategoryBadRequest() *DeleteSubCategoryBadRequest
NewDeleteSubCategoryBadRequest creates DeleteSubCategoryBadRequest with default headers values
func (*DeleteSubCategoryBadRequest) WriteResponse ¶
func (o *DeleteSubCategoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubCategoryHandler ¶
type DeleteSubCategoryHandler interface {
Handle(DeleteSubCategoryParams) middleware.Responder
}
DeleteSubCategoryHandler interface for that can handle valid delete sub category params
type DeleteSubCategoryHandlerFunc ¶
type DeleteSubCategoryHandlerFunc func(DeleteSubCategoryParams) middleware.Responder
DeleteSubCategoryHandlerFunc turns a function with the right signature into a delete sub category handler
func (DeleteSubCategoryHandlerFunc) Handle ¶
func (fn DeleteSubCategoryHandlerFunc) Handle(params DeleteSubCategoryParams) middleware.Responder
Handle executing the request and returning a response
type DeleteSubCategoryNotFound ¶
type DeleteSubCategoryNotFound struct { }
DeleteSubCategoryNotFound No items found
swagger:response deleteSubCategoryNotFound
func NewDeleteSubCategoryNotFound ¶
func NewDeleteSubCategoryNotFound() *DeleteSubCategoryNotFound
NewDeleteSubCategoryNotFound creates DeleteSubCategoryNotFound with default headers values
func (*DeleteSubCategoryNotFound) WriteResponse ¶
func (o *DeleteSubCategoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubCategoryOK ¶
type DeleteSubCategoryOK struct { }
DeleteSubCategoryOK Status Ok
swagger:response deleteSubCategoryOK
func NewDeleteSubCategoryOK ¶
func NewDeleteSubCategoryOK() *DeleteSubCategoryOK
NewDeleteSubCategoryOK creates DeleteSubCategoryOK with default headers values
func (*DeleteSubCategoryOK) WriteResponse ¶
func (o *DeleteSubCategoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubCategoryParams ¶
type DeleteSubCategoryParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: path */ ID int64 }
DeleteSubCategoryParams contains all the bound params for the delete sub category operation typically these are obtained from a http.Request
swagger:parameters deleteSubCategory
func NewDeleteSubCategoryParams ¶
func NewDeleteSubCategoryParams() DeleteSubCategoryParams
NewDeleteSubCategoryParams creates a new DeleteSubCategoryParams object with the default values initialized.
func (*DeleteSubCategoryParams) BindRequest ¶
func (o *DeleteSubCategoryParams) 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
type DeleteSubCategoryURL ¶
type DeleteSubCategoryURL struct { ID int64 // contains filtered or unexported fields }
DeleteSubCategoryURL generates an URL for the delete sub category operation
func (*DeleteSubCategoryURL) Build ¶
func (o *DeleteSubCategoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteSubCategoryURL) BuildFull ¶
func (o *DeleteSubCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteSubCategoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteSubCategoryURL) SetBasePath ¶
func (o *DeleteSubCategoryURL) 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 (*DeleteSubCategoryURL) String ¶
func (o *DeleteSubCategoryURL) String() string
String returns the string representation of the path with query string
func (*DeleteSubCategoryURL) StringFull ¶
func (o *DeleteSubCategoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteSubCategoryURL) WithBasePath ¶
func (o *DeleteSubCategoryURL) WithBasePath(bp string) *DeleteSubCategoryURL
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 GetSubCategories ¶
type GetSubCategories struct { Context *middleware.Context Handler GetSubCategoriesHandler }
GetSubCategories swagger:route GET /subcategories Subcategories getSubCategories
Get all SubCategories
func NewGetSubCategories ¶
func NewGetSubCategories(ctx *middleware.Context, handler GetSubCategoriesHandler) *GetSubCategories
NewGetSubCategories creates a new http.Handler for the get sub categories operation
func (*GetSubCategories) ServeHTTP ¶
func (o *GetSubCategories) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSubCategoriesByCategory ¶
type GetSubCategoriesByCategory struct { Context *middleware.Context Handler GetSubCategoriesByCategoryHandler }
GetSubCategoriesByCategory swagger:route GET /categories/{id}/subcategories Subcategories getSubCategoriesByCategory
Get all SubCategories by Category
func NewGetSubCategoriesByCategory ¶
func NewGetSubCategoriesByCategory(ctx *middleware.Context, handler GetSubCategoriesByCategoryHandler) *GetSubCategoriesByCategory
NewGetSubCategoriesByCategory creates a new http.Handler for the get sub categories by category operation
func (*GetSubCategoriesByCategory) ServeHTTP ¶
func (o *GetSubCategoriesByCategory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSubCategoriesByCategoryHandler ¶
type GetSubCategoriesByCategoryHandler interface {
Handle(GetSubCategoriesByCategoryParams) middleware.Responder
}
GetSubCategoriesByCategoryHandler interface for that can handle valid get sub categories by category params
type GetSubCategoriesByCategoryHandlerFunc ¶
type GetSubCategoriesByCategoryHandlerFunc func(GetSubCategoriesByCategoryParams) middleware.Responder
GetSubCategoriesByCategoryHandlerFunc turns a function with the right signature into a get sub categories by category handler
func (GetSubCategoriesByCategoryHandlerFunc) Handle ¶
func (fn GetSubCategoriesByCategoryHandlerFunc) Handle(params GetSubCategoriesByCategoryParams) middleware.Responder
Handle executing the request and returning a response
type GetSubCategoriesByCategoryNotFound ¶
type GetSubCategoriesByCategoryNotFound struct { }
GetSubCategoriesByCategoryNotFound No items found
swagger:response getSubCategoriesByCategoryNotFound
func NewGetSubCategoriesByCategoryNotFound ¶
func NewGetSubCategoriesByCategoryNotFound() *GetSubCategoriesByCategoryNotFound
NewGetSubCategoriesByCategoryNotFound creates GetSubCategoriesByCategoryNotFound with default headers values
func (*GetSubCategoriesByCategoryNotFound) WriteResponse ¶
func (o *GetSubCategoriesByCategoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubCategoriesByCategoryOK ¶
type GetSubCategoriesByCategoryOK struct { /* In: Body */ Payload models.SubCategories `json:"body,omitempty"` }
GetSubCategoriesByCategoryOK Status Ok
swagger:response getSubCategoriesByCategoryOK
func NewGetSubCategoriesByCategoryOK ¶
func NewGetSubCategoriesByCategoryOK() *GetSubCategoriesByCategoryOK
NewGetSubCategoriesByCategoryOK creates GetSubCategoriesByCategoryOK with default headers values
func (*GetSubCategoriesByCategoryOK) SetPayload ¶
func (o *GetSubCategoriesByCategoryOK) SetPayload(payload models.SubCategories)
SetPayload sets the payload to the get sub categories by category o k response
func (*GetSubCategoriesByCategoryOK) WithPayload ¶
func (o *GetSubCategoriesByCategoryOK) WithPayload(payload models.SubCategories) *GetSubCategoriesByCategoryOK
WithPayload adds the payload to the get sub categories by category o k response
func (*GetSubCategoriesByCategoryOK) WriteResponse ¶
func (o *GetSubCategoriesByCategoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubCategoriesByCategoryParams ¶
type GetSubCategoriesByCategoryParams struct { // HTTP Request Object HTTPRequest *http.Request /*Category ID Associated to Subcategory(s) Required: true In: path */ ID int64 }
GetSubCategoriesByCategoryParams contains all the bound params for the get sub categories by category operation typically these are obtained from a http.Request
swagger:parameters getSubCategoriesByCategory
func NewGetSubCategoriesByCategoryParams ¶
func NewGetSubCategoriesByCategoryParams() GetSubCategoriesByCategoryParams
NewGetSubCategoriesByCategoryParams creates a new GetSubCategoriesByCategoryParams object with the default values initialized.
func (*GetSubCategoriesByCategoryParams) BindRequest ¶
func (o *GetSubCategoriesByCategoryParams) 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
type GetSubCategoriesByCategoryURL ¶
type GetSubCategoriesByCategoryURL struct { ID int64 // contains filtered or unexported fields }
GetSubCategoriesByCategoryURL generates an URL for the get sub categories by category operation
func (*GetSubCategoriesByCategoryURL) Build ¶
func (o *GetSubCategoriesByCategoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSubCategoriesByCategoryURL) BuildFull ¶
func (o *GetSubCategoriesByCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSubCategoriesByCategoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSubCategoriesByCategoryURL) SetBasePath ¶
func (o *GetSubCategoriesByCategoryURL) 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 (*GetSubCategoriesByCategoryURL) String ¶
func (o *GetSubCategoriesByCategoryURL) String() string
String returns the string representation of the path with query string
func (*GetSubCategoriesByCategoryURL) StringFull ¶
func (o *GetSubCategoriesByCategoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSubCategoriesByCategoryURL) WithBasePath ¶
func (o *GetSubCategoriesByCategoryURL) WithBasePath(bp string) *GetSubCategoriesByCategoryURL
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 GetSubCategoriesHandler ¶
type GetSubCategoriesHandler interface {
Handle(GetSubCategoriesParams) middleware.Responder
}
GetSubCategoriesHandler interface for that can handle valid get sub categories params
type GetSubCategoriesHandlerFunc ¶
type GetSubCategoriesHandlerFunc func(GetSubCategoriesParams) middleware.Responder
GetSubCategoriesHandlerFunc turns a function with the right signature into a get sub categories handler
func (GetSubCategoriesHandlerFunc) Handle ¶
func (fn GetSubCategoriesHandlerFunc) Handle(params GetSubCategoriesParams) middleware.Responder
Handle executing the request and returning a response
type GetSubCategoriesNotFound ¶
type GetSubCategoriesNotFound struct { }
GetSubCategoriesNotFound No items found
swagger:response getSubCategoriesNotFound
func NewGetSubCategoriesNotFound ¶
func NewGetSubCategoriesNotFound() *GetSubCategoriesNotFound
NewGetSubCategoriesNotFound creates GetSubCategoriesNotFound with default headers values
func (*GetSubCategoriesNotFound) WriteResponse ¶
func (o *GetSubCategoriesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubCategoriesOK ¶
type GetSubCategoriesOK struct { /* In: Body */ Payload models.SubCategories `json:"body,omitempty"` }
GetSubCategoriesOK Status Ok
swagger:response getSubCategoriesOK
func NewGetSubCategoriesOK ¶
func NewGetSubCategoriesOK() *GetSubCategoriesOK
NewGetSubCategoriesOK creates GetSubCategoriesOK with default headers values
func (*GetSubCategoriesOK) SetPayload ¶
func (o *GetSubCategoriesOK) SetPayload(payload models.SubCategories)
SetPayload sets the payload to the get sub categories o k response
func (*GetSubCategoriesOK) WithPayload ¶
func (o *GetSubCategoriesOK) WithPayload(payload models.SubCategories) *GetSubCategoriesOK
WithPayload adds the payload to the get sub categories o k response
func (*GetSubCategoriesOK) WriteResponse ¶
func (o *GetSubCategoriesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubCategoriesParams ¶
GetSubCategoriesParams contains all the bound params for the get sub categories operation typically these are obtained from a http.Request
swagger:parameters getSubCategories
func NewGetSubCategoriesParams ¶
func NewGetSubCategoriesParams() GetSubCategoriesParams
NewGetSubCategoriesParams creates a new GetSubCategoriesParams object with the default values initialized.
func (*GetSubCategoriesParams) BindRequest ¶
func (o *GetSubCategoriesParams) 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
type GetSubCategoriesURL ¶
type GetSubCategoriesURL struct {
// contains filtered or unexported fields
}
GetSubCategoriesURL generates an URL for the get sub categories operation
func (*GetSubCategoriesURL) Build ¶
func (o *GetSubCategoriesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSubCategoriesURL) BuildFull ¶
func (o *GetSubCategoriesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSubCategoriesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSubCategoriesURL) SetBasePath ¶
func (o *GetSubCategoriesURL) 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 (*GetSubCategoriesURL) String ¶
func (o *GetSubCategoriesURL) String() string
String returns the string representation of the path with query string
func (*GetSubCategoriesURL) StringFull ¶
func (o *GetSubCategoriesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSubCategoriesURL) WithBasePath ¶
func (o *GetSubCategoriesURL) WithBasePath(bp string) *GetSubCategoriesURL
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 GetSubCategory ¶
type GetSubCategory struct { Context *middleware.Context Handler GetSubCategoryHandler }
GetSubCategory swagger:route GET /subcategories/{id} Subcategories getSubCategory
Get a specific SubCategory
func NewGetSubCategory ¶
func NewGetSubCategory(ctx *middleware.Context, handler GetSubCategoryHandler) *GetSubCategory
NewGetSubCategory creates a new http.Handler for the get sub category operation
func (*GetSubCategory) ServeHTTP ¶
func (o *GetSubCategory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSubCategoryBadRequest ¶
type GetSubCategoryBadRequest struct { }
GetSubCategoryBadRequest Invalid input
swagger:response getSubCategoryBadRequest
func NewGetSubCategoryBadRequest ¶
func NewGetSubCategoryBadRequest() *GetSubCategoryBadRequest
NewGetSubCategoryBadRequest creates GetSubCategoryBadRequest with default headers values
func (*GetSubCategoryBadRequest) WriteResponse ¶
func (o *GetSubCategoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubCategoryHandler ¶
type GetSubCategoryHandler interface {
Handle(GetSubCategoryParams) middleware.Responder
}
GetSubCategoryHandler interface for that can handle valid get sub category params
type GetSubCategoryHandlerFunc ¶
type GetSubCategoryHandlerFunc func(GetSubCategoryParams) middleware.Responder
GetSubCategoryHandlerFunc turns a function with the right signature into a get sub category handler
func (GetSubCategoryHandlerFunc) Handle ¶
func (fn GetSubCategoryHandlerFunc) Handle(params GetSubCategoryParams) middleware.Responder
Handle executing the request and returning a response
type GetSubCategoryNotFound ¶
type GetSubCategoryNotFound struct { }
GetSubCategoryNotFound No items found
swagger:response getSubCategoryNotFound
func NewGetSubCategoryNotFound ¶
func NewGetSubCategoryNotFound() *GetSubCategoryNotFound
NewGetSubCategoryNotFound creates GetSubCategoryNotFound with default headers values
func (*GetSubCategoryNotFound) WriteResponse ¶
func (o *GetSubCategoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubCategoryOK ¶
type GetSubCategoryOK struct { /* In: Body */ Payload *models.SubCategory `json:"body,omitempty"` }
GetSubCategoryOK Status Ok
swagger:response getSubCategoryOK
func NewGetSubCategoryOK ¶
func NewGetSubCategoryOK() *GetSubCategoryOK
NewGetSubCategoryOK creates GetSubCategoryOK with default headers values
func (*GetSubCategoryOK) SetPayload ¶
func (o *GetSubCategoryOK) SetPayload(payload *models.SubCategory)
SetPayload sets the payload to the get sub category o k response
func (*GetSubCategoryOK) WithPayload ¶
func (o *GetSubCategoryOK) WithPayload(payload *models.SubCategory) *GetSubCategoryOK
WithPayload adds the payload to the get sub category o k response
func (*GetSubCategoryOK) WriteResponse ¶
func (o *GetSubCategoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubCategoryParams ¶
type GetSubCategoryParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: path */ ID int64 }
GetSubCategoryParams contains all the bound params for the get sub category operation typically these are obtained from a http.Request
swagger:parameters getSubCategory
func NewGetSubCategoryParams ¶
func NewGetSubCategoryParams() GetSubCategoryParams
NewGetSubCategoryParams creates a new GetSubCategoryParams object with the default values initialized.
func (*GetSubCategoryParams) BindRequest ¶
func (o *GetSubCategoryParams) 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
type GetSubCategoryURL ¶
type GetSubCategoryURL struct { ID int64 // contains filtered or unexported fields }
GetSubCategoryURL generates an URL for the get sub category operation
func (*GetSubCategoryURL) Build ¶
func (o *GetSubCategoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSubCategoryURL) BuildFull ¶
func (o *GetSubCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSubCategoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSubCategoryURL) SetBasePath ¶
func (o *GetSubCategoryURL) 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 (*GetSubCategoryURL) String ¶
func (o *GetSubCategoryURL) String() string
String returns the string representation of the path with query string
func (*GetSubCategoryURL) StringFull ¶
func (o *GetSubCategoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSubCategoryURL) WithBasePath ¶
func (o *GetSubCategoryURL) WithBasePath(bp string) *GetSubCategoryURL
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 UpdateSubCategory ¶
type UpdateSubCategory struct { Context *middleware.Context Handler UpdateSubCategoryHandler }
UpdateSubCategory swagger:route PUT /subcategories/{id} Subcategories updateSubCategory
Update a specific SubCategory
func NewUpdateSubCategory ¶
func NewUpdateSubCategory(ctx *middleware.Context, handler UpdateSubCategoryHandler) *UpdateSubCategory
NewUpdateSubCategory creates a new http.Handler for the update sub category operation
func (*UpdateSubCategory) ServeHTTP ¶
func (o *UpdateSubCategory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateSubCategoryBadRequest ¶
type UpdateSubCategoryBadRequest struct { }
UpdateSubCategoryBadRequest Invalid input
swagger:response updateSubCategoryBadRequest
func NewUpdateSubCategoryBadRequest ¶
func NewUpdateSubCategoryBadRequest() *UpdateSubCategoryBadRequest
NewUpdateSubCategoryBadRequest creates UpdateSubCategoryBadRequest with default headers values
func (*UpdateSubCategoryBadRequest) WriteResponse ¶
func (o *UpdateSubCategoryBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubCategoryCreated ¶
type UpdateSubCategoryCreated struct { /* In: Body */ Payload *models.SubCategory `json:"body,omitempty"` }
UpdateSubCategoryCreated SubCategory Updated
swagger:response updateSubCategoryCreated
func NewUpdateSubCategoryCreated ¶
func NewUpdateSubCategoryCreated() *UpdateSubCategoryCreated
NewUpdateSubCategoryCreated creates UpdateSubCategoryCreated with default headers values
func (*UpdateSubCategoryCreated) SetPayload ¶
func (o *UpdateSubCategoryCreated) SetPayload(payload *models.SubCategory)
SetPayload sets the payload to the update sub category created response
func (*UpdateSubCategoryCreated) WithPayload ¶
func (o *UpdateSubCategoryCreated) WithPayload(payload *models.SubCategory) *UpdateSubCategoryCreated
WithPayload adds the payload to the update sub category created response
func (*UpdateSubCategoryCreated) WriteResponse ¶
func (o *UpdateSubCategoryCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubCategoryHandler ¶
type UpdateSubCategoryHandler interface {
Handle(UpdateSubCategoryParams) middleware.Responder
}
UpdateSubCategoryHandler interface for that can handle valid update sub category params
type UpdateSubCategoryHandlerFunc ¶
type UpdateSubCategoryHandlerFunc func(UpdateSubCategoryParams) middleware.Responder
UpdateSubCategoryHandlerFunc turns a function with the right signature into a update sub category handler
func (UpdateSubCategoryHandlerFunc) Handle ¶
func (fn UpdateSubCategoryHandlerFunc) Handle(params UpdateSubCategoryParams) middleware.Responder
Handle executing the request and returning a response
type UpdateSubCategoryNotFound ¶
type UpdateSubCategoryNotFound struct { }
UpdateSubCategoryNotFound No items found
swagger:response updateSubCategoryNotFound
func NewUpdateSubCategoryNotFound ¶
func NewUpdateSubCategoryNotFound() *UpdateSubCategoryNotFound
NewUpdateSubCategoryNotFound creates UpdateSubCategoryNotFound with default headers values
func (*UpdateSubCategoryNotFound) WriteResponse ¶
func (o *UpdateSubCategoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubCategoryParams ¶
type UpdateSubCategoryParams struct { // HTTP Request Object HTTPRequest *http.Request /*a subcategory that will be updated Required: true In: body */ Body *models.SubCategory /* Required: true In: path */ ID int64 }
UpdateSubCategoryParams contains all the bound params for the update sub category operation typically these are obtained from a http.Request
swagger:parameters updateSubCategory
func NewUpdateSubCategoryParams ¶
func NewUpdateSubCategoryParams() UpdateSubCategoryParams
NewUpdateSubCategoryParams creates a new UpdateSubCategoryParams object with the default values initialized.
func (*UpdateSubCategoryParams) BindRequest ¶
func (o *UpdateSubCategoryParams) 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
type UpdateSubCategoryURL ¶
type UpdateSubCategoryURL struct { ID int64 // contains filtered or unexported fields }
UpdateSubCategoryURL generates an URL for the update sub category operation
func (*UpdateSubCategoryURL) Build ¶
func (o *UpdateSubCategoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateSubCategoryURL) BuildFull ¶
func (o *UpdateSubCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateSubCategoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateSubCategoryURL) SetBasePath ¶
func (o *UpdateSubCategoryURL) 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 (*UpdateSubCategoryURL) String ¶
func (o *UpdateSubCategoryURL) String() string
String returns the string representation of the path with query string
func (*UpdateSubCategoryURL) StringFull ¶
func (o *UpdateSubCategoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateSubCategoryURL) WithBasePath ¶
func (o *UpdateSubCategoryURL) WithBasePath(bp string) *UpdateSubCategoryURL
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_sub_category.go
- create_sub_category_by_category.go
- create_sub_category_by_category_parameters.go
- create_sub_category_by_category_responses.go
- create_sub_category_by_category_urlbuilder.go
- create_sub_category_parameters.go
- create_sub_category_responses.go
- create_sub_category_urlbuilder.go
- delete_sub_categories.go
- delete_sub_categories_by_category.go
- delete_sub_categories_by_category_parameters.go
- delete_sub_categories_by_category_responses.go
- delete_sub_categories_by_category_urlbuilder.go
- delete_sub_categories_parameters.go
- delete_sub_categories_responses.go
- delete_sub_categories_urlbuilder.go
- delete_sub_category.go
- delete_sub_category_parameters.go
- delete_sub_category_responses.go
- delete_sub_category_urlbuilder.go
- get_sub_categories.go
- get_sub_categories_by_category.go
- get_sub_categories_by_category_parameters.go
- get_sub_categories_by_category_responses.go
- get_sub_categories_by_category_urlbuilder.go
- get_sub_categories_parameters.go
- get_sub_categories_responses.go
- get_sub_categories_urlbuilder.go
- get_sub_category.go
- get_sub_category_parameters.go
- get_sub_category_responses.go
- get_sub_category_urlbuilder.go
- update_sub_category.go
- update_sub_category_parameters.go
- update_sub_category_responses.go
- update_sub_category_urlbuilder.go