Documentation
¶
Index ¶
- Constants
- type DeleteCategoryID
- type DeleteCategoryIDDefault
- func (o *DeleteCategoryIDDefault) SetPayload(payload *models.Error)
- func (o *DeleteCategoryIDDefault) SetStatusCode(code int)
- func (o *DeleteCategoryIDDefault) WithPayload(payload *models.Error) *DeleteCategoryIDDefault
- func (o *DeleteCategoryIDDefault) WithStatusCode(code int) *DeleteCategoryIDDefault
- func (o *DeleteCategoryIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteCategoryIDHandler
- type DeleteCategoryIDHandlerFunc
- type DeleteCategoryIDNoContent
- type DeleteCategoryIDParams
- type DeleteCategoryIDURL
- func (o *DeleteCategoryIDURL) Build() (*url.URL, error)
- func (o *DeleteCategoryIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteCategoryIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteCategoryIDURL) SetBasePath(bp string)
- func (o *DeleteCategoryIDURL) String() string
- func (o *DeleteCategoryIDURL) StringFull(scheme, host string) string
- func (o *DeleteCategoryIDURL) WithBasePath(bp string) *DeleteCategoryIDURL
- type DeleteMultiChoiceID
- type DeleteMultiChoiceIDDefault
- func (o *DeleteMultiChoiceIDDefault) SetPayload(payload *models.Error)
- func (o *DeleteMultiChoiceIDDefault) SetStatusCode(code int)
- func (o *DeleteMultiChoiceIDDefault) WithPayload(payload *models.Error) *DeleteMultiChoiceIDDefault
- func (o *DeleteMultiChoiceIDDefault) WithStatusCode(code int) *DeleteMultiChoiceIDDefault
- func (o *DeleteMultiChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteMultiChoiceIDHandler
- type DeleteMultiChoiceIDHandlerFunc
- type DeleteMultiChoiceIDNoContent
- type DeleteMultiChoiceIDParams
- type DeleteMultiChoiceIDURL
- func (o *DeleteMultiChoiceIDURL) Build() (*url.URL, error)
- func (o *DeleteMultiChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteMultiChoiceIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteMultiChoiceIDURL) SetBasePath(bp string)
- func (o *DeleteMultiChoiceIDURL) String() string
- func (o *DeleteMultiChoiceIDURL) StringFull(scheme, host string) string
- func (o *DeleteMultiChoiceIDURL) WithBasePath(bp string) *DeleteMultiChoiceIDURL
- type DeleteSingleChoiceGroupID
- type DeleteSingleChoiceGroupIDDefault
- func (o *DeleteSingleChoiceGroupIDDefault) SetPayload(payload *models.Error)
- func (o *DeleteSingleChoiceGroupIDDefault) SetStatusCode(code int)
- func (o *DeleteSingleChoiceGroupIDDefault) WithPayload(payload *models.Error) *DeleteSingleChoiceGroupIDDefault
- func (o *DeleteSingleChoiceGroupIDDefault) WithStatusCode(code int) *DeleteSingleChoiceGroupIDDefault
- func (o *DeleteSingleChoiceGroupIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteSingleChoiceGroupIDHandler
- type DeleteSingleChoiceGroupIDHandlerFunc
- type DeleteSingleChoiceGroupIDNoContent
- type DeleteSingleChoiceGroupIDParams
- type DeleteSingleChoiceGroupIDURL
- func (o *DeleteSingleChoiceGroupIDURL) Build() (*url.URL, error)
- func (o *DeleteSingleChoiceGroupIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSingleChoiceGroupIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSingleChoiceGroupIDURL) SetBasePath(bp string)
- func (o *DeleteSingleChoiceGroupIDURL) String() string
- func (o *DeleteSingleChoiceGroupIDURL) StringFull(scheme, host string) string
- func (o *DeleteSingleChoiceGroupIDURL) WithBasePath(bp string) *DeleteSingleChoiceGroupIDURL
- type DeleteSingleChoiceID
- type DeleteSingleChoiceIDDefault
- func (o *DeleteSingleChoiceIDDefault) SetPayload(payload *models.Error)
- func (o *DeleteSingleChoiceIDDefault) SetStatusCode(code int)
- func (o *DeleteSingleChoiceIDDefault) WithPayload(payload *models.Error) *DeleteSingleChoiceIDDefault
- func (o *DeleteSingleChoiceIDDefault) WithStatusCode(code int) *DeleteSingleChoiceIDDefault
- func (o *DeleteSingleChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteSingleChoiceIDHandler
- type DeleteSingleChoiceIDHandlerFunc
- type DeleteSingleChoiceIDNoContent
- type DeleteSingleChoiceIDParams
- type DeleteSingleChoiceIDURL
- func (o *DeleteSingleChoiceIDURL) Build() (*url.URL, error)
- func (o *DeleteSingleChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSingleChoiceIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSingleChoiceIDURL) SetBasePath(bp string)
- func (o *DeleteSingleChoiceIDURL) String() string
- func (o *DeleteSingleChoiceIDURL) StringFull(scheme, host string) string
- func (o *DeleteSingleChoiceIDURL) WithBasePath(bp string) *DeleteSingleChoiceIDURL
- type GetCategory
- type GetCategoryCategoryIDMultiChoice
- type GetCategoryCategoryIDMultiChoiceDefault
- func (o *GetCategoryCategoryIDMultiChoiceDefault) SetPayload(payload *models.Error)
- func (o *GetCategoryCategoryIDMultiChoiceDefault) SetStatusCode(code int)
- func (o *GetCategoryCategoryIDMultiChoiceDefault) WithPayload(payload *models.Error) *GetCategoryCategoryIDMultiChoiceDefault
- func (o *GetCategoryCategoryIDMultiChoiceDefault) WithStatusCode(code int) *GetCategoryCategoryIDMultiChoiceDefault
- func (o *GetCategoryCategoryIDMultiChoiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCategoryCategoryIDMultiChoiceHandler
- type GetCategoryCategoryIDMultiChoiceHandlerFunc
- type GetCategoryCategoryIDMultiChoiceOK
- func (o *GetCategoryCategoryIDMultiChoiceOK) SetPayload(payload []*models.CategoryMultiChoice)
- func (o *GetCategoryCategoryIDMultiChoiceOK) WithPayload(payload []*models.CategoryMultiChoice) *GetCategoryCategoryIDMultiChoiceOK
- func (o *GetCategoryCategoryIDMultiChoiceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCategoryCategoryIDMultiChoiceParams
- type GetCategoryCategoryIDMultiChoiceURL
- func (o *GetCategoryCategoryIDMultiChoiceURL) Build() (*url.URL, error)
- func (o *GetCategoryCategoryIDMultiChoiceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCategoryCategoryIDMultiChoiceURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCategoryCategoryIDMultiChoiceURL) SetBasePath(bp string)
- func (o *GetCategoryCategoryIDMultiChoiceURL) String() string
- func (o *GetCategoryCategoryIDMultiChoiceURL) StringFull(scheme, host string) string
- func (o *GetCategoryCategoryIDMultiChoiceURL) WithBasePath(bp string) *GetCategoryCategoryIDMultiChoiceURL
- type GetCategoryCategoryIDSingleChoiceGroup
- type GetCategoryCategoryIDSingleChoiceGroupDefault
- func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) SetPayload(payload *models.Error)
- func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) SetStatusCode(code int)
- func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) WithPayload(payload *models.Error) *GetCategoryCategoryIDSingleChoiceGroupDefault
- func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) WithStatusCode(code int) *GetCategoryCategoryIDSingleChoiceGroupDefault
- func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCategoryCategoryIDSingleChoiceGroupHandler
- type GetCategoryCategoryIDSingleChoiceGroupHandlerFunc
- type GetCategoryCategoryIDSingleChoiceGroupOK
- func (o *GetCategoryCategoryIDSingleChoiceGroupOK) SetPayload(payload []*models.CategorySingleChoiceGroup)
- func (o *GetCategoryCategoryIDSingleChoiceGroupOK) WithPayload(payload []*models.CategorySingleChoiceGroup) *GetCategoryCategoryIDSingleChoiceGroupOK
- func (o *GetCategoryCategoryIDSingleChoiceGroupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCategoryCategoryIDSingleChoiceGroupParams
- type GetCategoryCategoryIDSingleChoiceGroupURL
- func (o *GetCategoryCategoryIDSingleChoiceGroupURL) Build() (*url.URL, error)
- func (o *GetCategoryCategoryIDSingleChoiceGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCategoryCategoryIDSingleChoiceGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCategoryCategoryIDSingleChoiceGroupURL) SetBasePath(bp string)
- func (o *GetCategoryCategoryIDSingleChoiceGroupURL) String() string
- func (o *GetCategoryCategoryIDSingleChoiceGroupURL) StringFull(scheme, host string) string
- func (o *GetCategoryCategoryIDSingleChoiceGroupURL) WithBasePath(bp string) *GetCategoryCategoryIDSingleChoiceGroupURL
- type GetCategoryDefault
- func (o *GetCategoryDefault) SetPayload(payload *models.Error)
- func (o *GetCategoryDefault) SetStatusCode(code int)
- func (o *GetCategoryDefault) WithPayload(payload *models.Error) *GetCategoryDefault
- func (o *GetCategoryDefault) WithStatusCode(code int) *GetCategoryDefault
- func (o *GetCategoryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCategoryHandler
- type GetCategoryHandlerFunc
- type GetCategoryID
- type GetCategoryIDDefault
- func (o *GetCategoryIDDefault) SetPayload(payload *models.Error)
- func (o *GetCategoryIDDefault) SetStatusCode(code int)
- func (o *GetCategoryIDDefault) WithPayload(payload *models.Error) *GetCategoryIDDefault
- func (o *GetCategoryIDDefault) WithStatusCode(code int) *GetCategoryIDDefault
- func (o *GetCategoryIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCategoryIDHandler
- type GetCategoryIDHandlerFunc
- type GetCategoryIDOK
- type GetCategoryIDParams
- type GetCategoryIDURL
- func (o *GetCategoryIDURL) Build() (*url.URL, error)
- func (o *GetCategoryIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCategoryIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCategoryIDURL) SetBasePath(bp string)
- func (o *GetCategoryIDURL) String() string
- func (o *GetCategoryIDURL) StringFull(scheme, host string) string
- func (o *GetCategoryIDURL) WithBasePath(bp string) *GetCategoryIDURL
- type GetCategoryOK
- type GetCategoryParams
- type GetCategoryURL
- func (o *GetCategoryURL) Build() (*url.URL, error)
- func (o *GetCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCategoryURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCategoryURL) SetBasePath(bp string)
- func (o *GetCategoryURL) String() string
- func (o *GetCategoryURL) StringFull(scheme, host string) string
- func (o *GetCategoryURL) WithBasePath(bp string) *GetCategoryURL
- type GetMultiChoiceID
- type GetMultiChoiceIDDefault
- func (o *GetMultiChoiceIDDefault) SetPayload(payload *models.Error)
- func (o *GetMultiChoiceIDDefault) SetStatusCode(code int)
- func (o *GetMultiChoiceIDDefault) WithPayload(payload *models.Error) *GetMultiChoiceIDDefault
- func (o *GetMultiChoiceIDDefault) WithStatusCode(code int) *GetMultiChoiceIDDefault
- func (o *GetMultiChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetMultiChoiceIDHandler
- type GetMultiChoiceIDHandlerFunc
- type GetMultiChoiceIDOK
- type GetMultiChoiceIDParams
- type GetMultiChoiceIDURL
- func (o *GetMultiChoiceIDURL) Build() (*url.URL, error)
- func (o *GetMultiChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetMultiChoiceIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetMultiChoiceIDURL) SetBasePath(bp string)
- func (o *GetMultiChoiceIDURL) String() string
- func (o *GetMultiChoiceIDURL) StringFull(scheme, host string) string
- func (o *GetMultiChoiceIDURL) WithBasePath(bp string) *GetMultiChoiceIDURL
- type GetSingleChoiceGroupGroupIDSingleChoice
- type GetSingleChoiceGroupGroupIDSingleChoiceDefault
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) SetPayload(payload *models.Error)
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) SetStatusCode(code int)
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) WithPayload(payload *models.Error) *GetSingleChoiceGroupGroupIDSingleChoiceDefault
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) WithStatusCode(code int) *GetSingleChoiceGroupGroupIDSingleChoiceDefault
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSingleChoiceGroupGroupIDSingleChoiceHandler
- type GetSingleChoiceGroupGroupIDSingleChoiceHandlerFunc
- type GetSingleChoiceGroupGroupIDSingleChoiceOK
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceOK) SetPayload(payload []*models.CategorySingleChoice)
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceOK) WithPayload(payload []*models.CategorySingleChoice) *GetSingleChoiceGroupGroupIDSingleChoiceOK
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSingleChoiceGroupGroupIDSingleChoiceParams
- type GetSingleChoiceGroupGroupIDSingleChoiceURL
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) Build() (*url.URL, error)
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) SetBasePath(bp string)
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) String() string
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) StringFull(scheme, host string) string
- func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) WithBasePath(bp string) *GetSingleChoiceGroupGroupIDSingleChoiceURL
- type GetSingleChoiceGroupID
- type GetSingleChoiceGroupIDDefault
- func (o *GetSingleChoiceGroupIDDefault) SetPayload(payload *models.Error)
- func (o *GetSingleChoiceGroupIDDefault) SetStatusCode(code int)
- func (o *GetSingleChoiceGroupIDDefault) WithPayload(payload *models.Error) *GetSingleChoiceGroupIDDefault
- func (o *GetSingleChoiceGroupIDDefault) WithStatusCode(code int) *GetSingleChoiceGroupIDDefault
- func (o *GetSingleChoiceGroupIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSingleChoiceGroupIDHandler
- type GetSingleChoiceGroupIDHandlerFunc
- type GetSingleChoiceGroupIDOK
- func (o *GetSingleChoiceGroupIDOK) SetPayload(payload *models.CategorySingleChoiceGroup)
- func (o *GetSingleChoiceGroupIDOK) WithPayload(payload *models.CategorySingleChoiceGroup) *GetSingleChoiceGroupIDOK
- func (o *GetSingleChoiceGroupIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSingleChoiceGroupIDParams
- type GetSingleChoiceGroupIDURL
- func (o *GetSingleChoiceGroupIDURL) Build() (*url.URL, error)
- func (o *GetSingleChoiceGroupIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSingleChoiceGroupIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSingleChoiceGroupIDURL) SetBasePath(bp string)
- func (o *GetSingleChoiceGroupIDURL) String() string
- func (o *GetSingleChoiceGroupIDURL) StringFull(scheme, host string) string
- func (o *GetSingleChoiceGroupIDURL) WithBasePath(bp string) *GetSingleChoiceGroupIDURL
- type GetSingleChoiceID
- type GetSingleChoiceIDDefault
- func (o *GetSingleChoiceIDDefault) SetPayload(payload *models.Error)
- func (o *GetSingleChoiceIDDefault) SetStatusCode(code int)
- func (o *GetSingleChoiceIDDefault) WithPayload(payload *models.Error) *GetSingleChoiceIDDefault
- func (o *GetSingleChoiceIDDefault) WithStatusCode(code int) *GetSingleChoiceIDDefault
- func (o *GetSingleChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSingleChoiceIDHandler
- type GetSingleChoiceIDHandlerFunc
- type GetSingleChoiceIDOK
- type GetSingleChoiceIDParams
- type GetSingleChoiceIDURL
- func (o *GetSingleChoiceIDURL) Build() (*url.URL, error)
- func (o *GetSingleChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSingleChoiceIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSingleChoiceIDURL) SetBasePath(bp string)
- func (o *GetSingleChoiceIDURL) String() string
- func (o *GetSingleChoiceIDURL) StringFull(scheme, host string) string
- func (o *GetSingleChoiceIDURL) WithBasePath(bp string) *GetSingleChoiceIDURL
- type PostCategory
- type PostCategoryCategoryIDMultiChoice
- type PostCategoryCategoryIDMultiChoiceCreated
- func (o *PostCategoryCategoryIDMultiChoiceCreated) SetPayload(payload *models.CategoryMultiChoice)
- func (o *PostCategoryCategoryIDMultiChoiceCreated) WithPayload(payload *models.CategoryMultiChoice) *PostCategoryCategoryIDMultiChoiceCreated
- func (o *PostCategoryCategoryIDMultiChoiceCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostCategoryCategoryIDMultiChoiceDefault
- func (o *PostCategoryCategoryIDMultiChoiceDefault) SetPayload(payload *models.Error)
- func (o *PostCategoryCategoryIDMultiChoiceDefault) SetStatusCode(code int)
- func (o *PostCategoryCategoryIDMultiChoiceDefault) WithPayload(payload *models.Error) *PostCategoryCategoryIDMultiChoiceDefault
- func (o *PostCategoryCategoryIDMultiChoiceDefault) WithStatusCode(code int) *PostCategoryCategoryIDMultiChoiceDefault
- func (o *PostCategoryCategoryIDMultiChoiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostCategoryCategoryIDMultiChoiceHandler
- type PostCategoryCategoryIDMultiChoiceHandlerFunc
- type PostCategoryCategoryIDMultiChoiceParams
- type PostCategoryCategoryIDMultiChoiceURL
- func (o *PostCategoryCategoryIDMultiChoiceURL) Build() (*url.URL, error)
- func (o *PostCategoryCategoryIDMultiChoiceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostCategoryCategoryIDMultiChoiceURL) Must(u *url.URL, err error) *url.URL
- func (o *PostCategoryCategoryIDMultiChoiceURL) SetBasePath(bp string)
- func (o *PostCategoryCategoryIDMultiChoiceURL) String() string
- func (o *PostCategoryCategoryIDMultiChoiceURL) StringFull(scheme, host string) string
- func (o *PostCategoryCategoryIDMultiChoiceURL) WithBasePath(bp string) *PostCategoryCategoryIDMultiChoiceURL
- type PostCategoryCategoryIDSingleChoiceGroup
- type PostCategoryCategoryIDSingleChoiceGroupCreated
- func (o *PostCategoryCategoryIDSingleChoiceGroupCreated) SetPayload(payload *models.CategorySingleChoiceGroup)
- func (o *PostCategoryCategoryIDSingleChoiceGroupCreated) WithPayload(payload *models.CategorySingleChoiceGroup) *PostCategoryCategoryIDSingleChoiceGroupCreated
- func (o *PostCategoryCategoryIDSingleChoiceGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostCategoryCategoryIDSingleChoiceGroupDefault
- func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) SetPayload(payload *models.Error)
- func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) SetStatusCode(code int)
- func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) WithPayload(payload *models.Error) *PostCategoryCategoryIDSingleChoiceGroupDefault
- func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) WithStatusCode(code int) *PostCategoryCategoryIDSingleChoiceGroupDefault
- func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostCategoryCategoryIDSingleChoiceGroupHandler
- type PostCategoryCategoryIDSingleChoiceGroupHandlerFunc
- type PostCategoryCategoryIDSingleChoiceGroupParams
- type PostCategoryCategoryIDSingleChoiceGroupURL
- func (o *PostCategoryCategoryIDSingleChoiceGroupURL) Build() (*url.URL, error)
- func (o *PostCategoryCategoryIDSingleChoiceGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostCategoryCategoryIDSingleChoiceGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *PostCategoryCategoryIDSingleChoiceGroupURL) SetBasePath(bp string)
- func (o *PostCategoryCategoryIDSingleChoiceGroupURL) String() string
- func (o *PostCategoryCategoryIDSingleChoiceGroupURL) StringFull(scheme, host string) string
- func (o *PostCategoryCategoryIDSingleChoiceGroupURL) WithBasePath(bp string) *PostCategoryCategoryIDSingleChoiceGroupURL
- type PostCategoryCreated
- type PostCategoryDefault
- func (o *PostCategoryDefault) SetPayload(payload *models.Error)
- func (o *PostCategoryDefault) SetStatusCode(code int)
- func (o *PostCategoryDefault) WithPayload(payload *models.Error) *PostCategoryDefault
- func (o *PostCategoryDefault) WithStatusCode(code int) *PostCategoryDefault
- func (o *PostCategoryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostCategoryHandler
- type PostCategoryHandlerFunc
- type PostCategoryParams
- type PostCategoryURL
- func (o *PostCategoryURL) Build() (*url.URL, error)
- func (o *PostCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostCategoryURL) Must(u *url.URL, err error) *url.URL
- func (o *PostCategoryURL) SetBasePath(bp string)
- func (o *PostCategoryURL) String() string
- func (o *PostCategoryURL) StringFull(scheme, host string) string
- func (o *PostCategoryURL) WithBasePath(bp string) *PostCategoryURL
- type PostSingleChoiceGroupGroupIDSingleChoice
- type PostSingleChoiceGroupGroupIDSingleChoiceCreated
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceCreated) SetPayload(payload *models.CategorySingleChoice)
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceCreated) WithPayload(payload *models.CategorySingleChoice) *PostSingleChoiceGroupGroupIDSingleChoiceCreated
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostSingleChoiceGroupGroupIDSingleChoiceDefault
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) SetPayload(payload *models.Error)
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) SetStatusCode(code int)
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) WithPayload(payload *models.Error) *PostSingleChoiceGroupGroupIDSingleChoiceDefault
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) WithStatusCode(code int) *PostSingleChoiceGroupGroupIDSingleChoiceDefault
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostSingleChoiceGroupGroupIDSingleChoiceHandler
- type PostSingleChoiceGroupGroupIDSingleChoiceHandlerFunc
- type PostSingleChoiceGroupGroupIDSingleChoiceParams
- type PostSingleChoiceGroupGroupIDSingleChoiceURL
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) Build() (*url.URL, error)
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) Must(u *url.URL, err error) *url.URL
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) SetBasePath(bp string)
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) String() string
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) StringFull(scheme, host string) string
- func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) WithBasePath(bp string) *PostSingleChoiceGroupGroupIDSingleChoiceURL
- type PutCategoryID
- type PutCategoryIDDefault
- func (o *PutCategoryIDDefault) SetPayload(payload *models.Error)
- func (o *PutCategoryIDDefault) SetStatusCode(code int)
- func (o *PutCategoryIDDefault) WithPayload(payload *models.Error) *PutCategoryIDDefault
- func (o *PutCategoryIDDefault) WithStatusCode(code int) *PutCategoryIDDefault
- func (o *PutCategoryIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutCategoryIDHandler
- type PutCategoryIDHandlerFunc
- type PutCategoryIDOK
- type PutCategoryIDParams
- type PutCategoryIDURL
- func (o *PutCategoryIDURL) Build() (*url.URL, error)
- func (o *PutCategoryIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutCategoryIDURL) Must(u *url.URL, err error) *url.URL
- func (o *PutCategoryIDURL) SetBasePath(bp string)
- func (o *PutCategoryIDURL) String() string
- func (o *PutCategoryIDURL) StringFull(scheme, host string) string
- func (o *PutCategoryIDURL) WithBasePath(bp string) *PutCategoryIDURL
- type PutMultiChoiceID
- type PutMultiChoiceIDDefault
- func (o *PutMultiChoiceIDDefault) SetPayload(payload *models.Error)
- func (o *PutMultiChoiceIDDefault) SetStatusCode(code int)
- func (o *PutMultiChoiceIDDefault) WithPayload(payload *models.Error) *PutMultiChoiceIDDefault
- func (o *PutMultiChoiceIDDefault) WithStatusCode(code int) *PutMultiChoiceIDDefault
- func (o *PutMultiChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutMultiChoiceIDHandler
- type PutMultiChoiceIDHandlerFunc
- type PutMultiChoiceIDOK
- type PutMultiChoiceIDParams
- type PutMultiChoiceIDURL
- func (o *PutMultiChoiceIDURL) Build() (*url.URL, error)
- func (o *PutMultiChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutMultiChoiceIDURL) Must(u *url.URL, err error) *url.URL
- func (o *PutMultiChoiceIDURL) SetBasePath(bp string)
- func (o *PutMultiChoiceIDURL) String() string
- func (o *PutMultiChoiceIDURL) StringFull(scheme, host string) string
- func (o *PutMultiChoiceIDURL) WithBasePath(bp string) *PutMultiChoiceIDURL
- type PutSingleChoiceGroupID
- type PutSingleChoiceGroupIDDefault
- func (o *PutSingleChoiceGroupIDDefault) SetPayload(payload *models.Error)
- func (o *PutSingleChoiceGroupIDDefault) SetStatusCode(code int)
- func (o *PutSingleChoiceGroupIDDefault) WithPayload(payload *models.Error) *PutSingleChoiceGroupIDDefault
- func (o *PutSingleChoiceGroupIDDefault) WithStatusCode(code int) *PutSingleChoiceGroupIDDefault
- func (o *PutSingleChoiceGroupIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutSingleChoiceGroupIDHandler
- type PutSingleChoiceGroupIDHandlerFunc
- type PutSingleChoiceGroupIDOK
- func (o *PutSingleChoiceGroupIDOK) SetPayload(payload *models.CategorySingleChoiceGroup)
- func (o *PutSingleChoiceGroupIDOK) WithPayload(payload *models.CategorySingleChoiceGroup) *PutSingleChoiceGroupIDOK
- func (o *PutSingleChoiceGroupIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutSingleChoiceGroupIDParams
- type PutSingleChoiceGroupIDURL
- func (o *PutSingleChoiceGroupIDURL) Build() (*url.URL, error)
- func (o *PutSingleChoiceGroupIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutSingleChoiceGroupIDURL) Must(u *url.URL, err error) *url.URL
- func (o *PutSingleChoiceGroupIDURL) SetBasePath(bp string)
- func (o *PutSingleChoiceGroupIDURL) String() string
- func (o *PutSingleChoiceGroupIDURL) StringFull(scheme, host string) string
- func (o *PutSingleChoiceGroupIDURL) WithBasePath(bp string) *PutSingleChoiceGroupIDURL
- type PutSingleChoiceID
- type PutSingleChoiceIDDefault
- func (o *PutSingleChoiceIDDefault) SetPayload(payload *models.Error)
- func (o *PutSingleChoiceIDDefault) SetStatusCode(code int)
- func (o *PutSingleChoiceIDDefault) WithPayload(payload *models.Error) *PutSingleChoiceIDDefault
- func (o *PutSingleChoiceIDDefault) WithStatusCode(code int) *PutSingleChoiceIDDefault
- func (o *PutSingleChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutSingleChoiceIDHandler
- type PutSingleChoiceIDHandlerFunc
- type PutSingleChoiceIDOK
- type PutSingleChoiceIDParams
- type PutSingleChoiceIDURL
- func (o *PutSingleChoiceIDURL) Build() (*url.URL, error)
- func (o *PutSingleChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutSingleChoiceIDURL) Must(u *url.URL, err error) *url.URL
- func (o *PutSingleChoiceIDURL) SetBasePath(bp string)
- func (o *PutSingleChoiceIDURL) String() string
- func (o *PutSingleChoiceIDURL) StringFull(scheme, host string) string
- func (o *PutSingleChoiceIDURL) WithBasePath(bp string) *PutSingleChoiceIDURL
Constants ¶
const DeleteCategoryIDNoContentCode int = 204
DeleteCategoryIDNoContentCode is the HTTP code returned for type DeleteCategoryIDNoContent
const DeleteMultiChoiceIDNoContentCode int = 204
DeleteMultiChoiceIDNoContentCode is the HTTP code returned for type DeleteMultiChoiceIDNoContent
const DeleteSingleChoiceGroupIDNoContentCode int = 204
DeleteSingleChoiceGroupIDNoContentCode is the HTTP code returned for type DeleteSingleChoiceGroupIDNoContent
const DeleteSingleChoiceIDNoContentCode int = 204
DeleteSingleChoiceIDNoContentCode is the HTTP code returned for type DeleteSingleChoiceIDNoContent
const GetCategoryCategoryIDMultiChoiceOKCode int = 200
GetCategoryCategoryIDMultiChoiceOKCode is the HTTP code returned for type GetCategoryCategoryIDMultiChoiceOK
const GetCategoryCategoryIDSingleChoiceGroupOKCode int = 200
GetCategoryCategoryIDSingleChoiceGroupOKCode is the HTTP code returned for type GetCategoryCategoryIDSingleChoiceGroupOK
const GetCategoryIDOKCode int = 200
GetCategoryIDOKCode is the HTTP code returned for type GetCategoryIDOK
const GetCategoryOKCode int = 200
GetCategoryOKCode is the HTTP code returned for type GetCategoryOK
const GetMultiChoiceIDOKCode int = 200
GetMultiChoiceIDOKCode is the HTTP code returned for type GetMultiChoiceIDOK
const GetSingleChoiceGroupGroupIDSingleChoiceOKCode int = 200
GetSingleChoiceGroupGroupIDSingleChoiceOKCode is the HTTP code returned for type GetSingleChoiceGroupGroupIDSingleChoiceOK
const GetSingleChoiceGroupIDOKCode int = 200
GetSingleChoiceGroupIDOKCode is the HTTP code returned for type GetSingleChoiceGroupIDOK
const GetSingleChoiceIDOKCode int = 200
GetSingleChoiceIDOKCode is the HTTP code returned for type GetSingleChoiceIDOK
const PostCategoryCategoryIDMultiChoiceCreatedCode int = 201
PostCategoryCategoryIDMultiChoiceCreatedCode is the HTTP code returned for type PostCategoryCategoryIDMultiChoiceCreated
const PostCategoryCategoryIDSingleChoiceGroupCreatedCode int = 201
PostCategoryCategoryIDSingleChoiceGroupCreatedCode is the HTTP code returned for type PostCategoryCategoryIDSingleChoiceGroupCreated
const PostCategoryCreatedCode int = 201
PostCategoryCreatedCode is the HTTP code returned for type PostCategoryCreated
const PostSingleChoiceGroupGroupIDSingleChoiceCreatedCode int = 201
PostSingleChoiceGroupGroupIDSingleChoiceCreatedCode is the HTTP code returned for type PostSingleChoiceGroupGroupIDSingleChoiceCreated
const PutCategoryIDOKCode int = 200
PutCategoryIDOKCode is the HTTP code returned for type PutCategoryIDOK
const PutMultiChoiceIDOKCode int = 200
PutMultiChoiceIDOKCode is the HTTP code returned for type PutMultiChoiceIDOK
const PutSingleChoiceGroupIDOKCode int = 200
PutSingleChoiceGroupIDOKCode is the HTTP code returned for type PutSingleChoiceGroupIDOK
const PutSingleChoiceIDOKCode int = 200
PutSingleChoiceIDOKCode is the HTTP code returned for type PutSingleChoiceIDOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteCategoryID ¶
type DeleteCategoryID struct {
Context *middleware.Context
Handler DeleteCategoryIDHandler
}
DeleteCategoryID swagger:route DELETE /category/{id} category deleteCategoryId
DeleteCategoryID delete category ID API
func NewDeleteCategoryID ¶
func NewDeleteCategoryID(ctx *middleware.Context, handler DeleteCategoryIDHandler) *DeleteCategoryID
NewDeleteCategoryID creates a new http.Handler for the delete category ID operation
func (*DeleteCategoryID) ServeHTTP ¶
func (o *DeleteCategoryID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteCategoryIDDefault ¶
type DeleteCategoryIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
DeleteCategoryIDDefault Error
swagger:response deleteCategoryIdDefault
func NewDeleteCategoryIDDefault ¶
func NewDeleteCategoryIDDefault(code int) *DeleteCategoryIDDefault
NewDeleteCategoryIDDefault creates DeleteCategoryIDDefault with default headers values
func (*DeleteCategoryIDDefault) SetPayload ¶
func (o *DeleteCategoryIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete category ID default response
func (*DeleteCategoryIDDefault) SetStatusCode ¶
func (o *DeleteCategoryIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete category ID default response
func (*DeleteCategoryIDDefault) WithPayload ¶
func (o *DeleteCategoryIDDefault) WithPayload(payload *models.Error) *DeleteCategoryIDDefault
WithPayload adds the payload to the delete category ID default response
func (*DeleteCategoryIDDefault) WithStatusCode ¶
func (o *DeleteCategoryIDDefault) WithStatusCode(code int) *DeleteCategoryIDDefault
WithStatusCode adds the status to the delete category ID default response
func (*DeleteCategoryIDDefault) WriteResponse ¶
func (o *DeleteCategoryIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCategoryIDHandler ¶
type DeleteCategoryIDHandler interface {
Handle(DeleteCategoryIDParams, *schemas.User) middleware.Responder
}
DeleteCategoryIDHandler interface for that can handle valid delete category ID params
type DeleteCategoryIDHandlerFunc ¶
type DeleteCategoryIDHandlerFunc func(DeleteCategoryIDParams, *schemas.User) middleware.Responder
DeleteCategoryIDHandlerFunc turns a function with the right signature into a delete category ID handler
func (DeleteCategoryIDHandlerFunc) Handle ¶
func (fn DeleteCategoryIDHandlerFunc) Handle(params DeleteCategoryIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type DeleteCategoryIDNoContent ¶
type DeleteCategoryIDNoContent struct {
}
DeleteCategoryIDNoContent Deleted
swagger:response deleteCategoryIdNoContent
func NewDeleteCategoryIDNoContent ¶
func NewDeleteCategoryIDNoContent() *DeleteCategoryIDNoContent
NewDeleteCategoryIDNoContent creates DeleteCategoryIDNoContent with default headers values
func (*DeleteCategoryIDNoContent) WriteResponse ¶
func (o *DeleteCategoryIDNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCategoryIDParams ¶
type DeleteCategoryIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID int64
}
DeleteCategoryIDParams contains all the bound params for the delete category ID operation typically these are obtained from a http.Request
swagger:parameters DeleteCategoryID
func NewDeleteCategoryIDParams ¶
func NewDeleteCategoryIDParams() DeleteCategoryIDParams
NewDeleteCategoryIDParams creates a new DeleteCategoryIDParams object
There are no default values defined in the spec.
func (*DeleteCategoryIDParams) BindRequest ¶
func (o *DeleteCategoryIDParams) 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 NewDeleteCategoryIDParams() beforehand.
type DeleteCategoryIDURL ¶
type DeleteCategoryIDURL struct {
ID int64
// contains filtered or unexported fields
}
DeleteCategoryIDURL generates an URL for the delete category ID operation
func (*DeleteCategoryIDURL) Build ¶
func (o *DeleteCategoryIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteCategoryIDURL) BuildFull ¶
func (o *DeleteCategoryIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteCategoryIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteCategoryIDURL) SetBasePath ¶
func (o *DeleteCategoryIDURL) 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 (*DeleteCategoryIDURL) String ¶
func (o *DeleteCategoryIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteCategoryIDURL) StringFull ¶
func (o *DeleteCategoryIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteCategoryIDURL) WithBasePath ¶
func (o *DeleteCategoryIDURL) WithBasePath(bp string) *DeleteCategoryIDURL
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 DeleteMultiChoiceID ¶
type DeleteMultiChoiceID struct {
Context *middleware.Context
Handler DeleteMultiChoiceIDHandler
}
DeleteMultiChoiceID swagger:route DELETE /multi_choice/{id} category deleteMultiChoiceId
DeleteMultiChoiceID delete multi choice ID API
func NewDeleteMultiChoiceID ¶
func NewDeleteMultiChoiceID(ctx *middleware.Context, handler DeleteMultiChoiceIDHandler) *DeleteMultiChoiceID
NewDeleteMultiChoiceID creates a new http.Handler for the delete multi choice ID operation
func (*DeleteMultiChoiceID) ServeHTTP ¶
func (o *DeleteMultiChoiceID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteMultiChoiceIDDefault ¶
type DeleteMultiChoiceIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
DeleteMultiChoiceIDDefault Error
swagger:response deleteMultiChoiceIdDefault
func NewDeleteMultiChoiceIDDefault ¶
func NewDeleteMultiChoiceIDDefault(code int) *DeleteMultiChoiceIDDefault
NewDeleteMultiChoiceIDDefault creates DeleteMultiChoiceIDDefault with default headers values
func (*DeleteMultiChoiceIDDefault) SetPayload ¶
func (o *DeleteMultiChoiceIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete multi choice ID default response
func (*DeleteMultiChoiceIDDefault) SetStatusCode ¶
func (o *DeleteMultiChoiceIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete multi choice ID default response
func (*DeleteMultiChoiceIDDefault) WithPayload ¶
func (o *DeleteMultiChoiceIDDefault) WithPayload(payload *models.Error) *DeleteMultiChoiceIDDefault
WithPayload adds the payload to the delete multi choice ID default response
func (*DeleteMultiChoiceIDDefault) WithStatusCode ¶
func (o *DeleteMultiChoiceIDDefault) WithStatusCode(code int) *DeleteMultiChoiceIDDefault
WithStatusCode adds the status to the delete multi choice ID default response
func (*DeleteMultiChoiceIDDefault) WriteResponse ¶
func (o *DeleteMultiChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteMultiChoiceIDHandler ¶
type DeleteMultiChoiceIDHandler interface {
Handle(DeleteMultiChoiceIDParams, *schemas.User) middleware.Responder
}
DeleteMultiChoiceIDHandler interface for that can handle valid delete multi choice ID params
type DeleteMultiChoiceIDHandlerFunc ¶
type DeleteMultiChoiceIDHandlerFunc func(DeleteMultiChoiceIDParams, *schemas.User) middleware.Responder
DeleteMultiChoiceIDHandlerFunc turns a function with the right signature into a delete multi choice ID handler
func (DeleteMultiChoiceIDHandlerFunc) Handle ¶
func (fn DeleteMultiChoiceIDHandlerFunc) Handle(params DeleteMultiChoiceIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type DeleteMultiChoiceIDNoContent ¶
type DeleteMultiChoiceIDNoContent struct {
}
DeleteMultiChoiceIDNoContent Deleted
swagger:response deleteMultiChoiceIdNoContent
func NewDeleteMultiChoiceIDNoContent ¶
func NewDeleteMultiChoiceIDNoContent() *DeleteMultiChoiceIDNoContent
NewDeleteMultiChoiceIDNoContent creates DeleteMultiChoiceIDNoContent with default headers values
func (*DeleteMultiChoiceIDNoContent) WriteResponse ¶
func (o *DeleteMultiChoiceIDNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteMultiChoiceIDParams ¶
type DeleteMultiChoiceIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID int64
}
DeleteMultiChoiceIDParams contains all the bound params for the delete multi choice ID operation typically these are obtained from a http.Request
swagger:parameters DeleteMultiChoiceID
func NewDeleteMultiChoiceIDParams ¶
func NewDeleteMultiChoiceIDParams() DeleteMultiChoiceIDParams
NewDeleteMultiChoiceIDParams creates a new DeleteMultiChoiceIDParams object
There are no default values defined in the spec.
func (*DeleteMultiChoiceIDParams) BindRequest ¶
func (o *DeleteMultiChoiceIDParams) 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 NewDeleteMultiChoiceIDParams() beforehand.
type DeleteMultiChoiceIDURL ¶
type DeleteMultiChoiceIDURL struct {
ID int64
// contains filtered or unexported fields
}
DeleteMultiChoiceIDURL generates an URL for the delete multi choice ID operation
func (*DeleteMultiChoiceIDURL) Build ¶
func (o *DeleteMultiChoiceIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteMultiChoiceIDURL) BuildFull ¶
func (o *DeleteMultiChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteMultiChoiceIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteMultiChoiceIDURL) SetBasePath ¶
func (o *DeleteMultiChoiceIDURL) 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 (*DeleteMultiChoiceIDURL) String ¶
func (o *DeleteMultiChoiceIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteMultiChoiceIDURL) StringFull ¶
func (o *DeleteMultiChoiceIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteMultiChoiceIDURL) WithBasePath ¶
func (o *DeleteMultiChoiceIDURL) WithBasePath(bp string) *DeleteMultiChoiceIDURL
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 DeleteSingleChoiceGroupID ¶
type DeleteSingleChoiceGroupID struct {
Context *middleware.Context
Handler DeleteSingleChoiceGroupIDHandler
}
DeleteSingleChoiceGroupID swagger:route DELETE /single_choice_group/{id} category deleteSingleChoiceGroupId
DeleteSingleChoiceGroupID delete single choice group ID API
func NewDeleteSingleChoiceGroupID ¶
func NewDeleteSingleChoiceGroupID(ctx *middleware.Context, handler DeleteSingleChoiceGroupIDHandler) *DeleteSingleChoiceGroupID
NewDeleteSingleChoiceGroupID creates a new http.Handler for the delete single choice group ID operation
func (*DeleteSingleChoiceGroupID) ServeHTTP ¶
func (o *DeleteSingleChoiceGroupID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteSingleChoiceGroupIDDefault ¶
type DeleteSingleChoiceGroupIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
DeleteSingleChoiceGroupIDDefault Error
swagger:response deleteSingleChoiceGroupIdDefault
func NewDeleteSingleChoiceGroupIDDefault ¶
func NewDeleteSingleChoiceGroupIDDefault(code int) *DeleteSingleChoiceGroupIDDefault
NewDeleteSingleChoiceGroupIDDefault creates DeleteSingleChoiceGroupIDDefault with default headers values
func (*DeleteSingleChoiceGroupIDDefault) SetPayload ¶
func (o *DeleteSingleChoiceGroupIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete single choice group ID default response
func (*DeleteSingleChoiceGroupIDDefault) SetStatusCode ¶
func (o *DeleteSingleChoiceGroupIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete single choice group ID default response
func (*DeleteSingleChoiceGroupIDDefault) WithPayload ¶
func (o *DeleteSingleChoiceGroupIDDefault) WithPayload(payload *models.Error) *DeleteSingleChoiceGroupIDDefault
WithPayload adds the payload to the delete single choice group ID default response
func (*DeleteSingleChoiceGroupIDDefault) WithStatusCode ¶
func (o *DeleteSingleChoiceGroupIDDefault) WithStatusCode(code int) *DeleteSingleChoiceGroupIDDefault
WithStatusCode adds the status to the delete single choice group ID default response
func (*DeleteSingleChoiceGroupIDDefault) WriteResponse ¶
func (o *DeleteSingleChoiceGroupIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSingleChoiceGroupIDHandler ¶
type DeleteSingleChoiceGroupIDHandler interface {
Handle(DeleteSingleChoiceGroupIDParams, *schemas.User) middleware.Responder
}
DeleteSingleChoiceGroupIDHandler interface for that can handle valid delete single choice group ID params
type DeleteSingleChoiceGroupIDHandlerFunc ¶
type DeleteSingleChoiceGroupIDHandlerFunc func(DeleteSingleChoiceGroupIDParams, *schemas.User) middleware.Responder
DeleteSingleChoiceGroupIDHandlerFunc turns a function with the right signature into a delete single choice group ID handler
func (DeleteSingleChoiceGroupIDHandlerFunc) Handle ¶
func (fn DeleteSingleChoiceGroupIDHandlerFunc) Handle(params DeleteSingleChoiceGroupIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type DeleteSingleChoiceGroupIDNoContent ¶
type DeleteSingleChoiceGroupIDNoContent struct {
}
DeleteSingleChoiceGroupIDNoContent Deleted
swagger:response deleteSingleChoiceGroupIdNoContent
func NewDeleteSingleChoiceGroupIDNoContent ¶
func NewDeleteSingleChoiceGroupIDNoContent() *DeleteSingleChoiceGroupIDNoContent
NewDeleteSingleChoiceGroupIDNoContent creates DeleteSingleChoiceGroupIDNoContent with default headers values
func (*DeleteSingleChoiceGroupIDNoContent) WriteResponse ¶
func (o *DeleteSingleChoiceGroupIDNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSingleChoiceGroupIDParams ¶
type DeleteSingleChoiceGroupIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID int64
}
DeleteSingleChoiceGroupIDParams contains all the bound params for the delete single choice group ID operation typically these are obtained from a http.Request
swagger:parameters DeleteSingleChoiceGroupID
func NewDeleteSingleChoiceGroupIDParams ¶
func NewDeleteSingleChoiceGroupIDParams() DeleteSingleChoiceGroupIDParams
NewDeleteSingleChoiceGroupIDParams creates a new DeleteSingleChoiceGroupIDParams object
There are no default values defined in the spec.
func (*DeleteSingleChoiceGroupIDParams) BindRequest ¶
func (o *DeleteSingleChoiceGroupIDParams) 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 NewDeleteSingleChoiceGroupIDParams() beforehand.
type DeleteSingleChoiceGroupIDURL ¶
type DeleteSingleChoiceGroupIDURL struct {
ID int64
// contains filtered or unexported fields
}
DeleteSingleChoiceGroupIDURL generates an URL for the delete single choice group ID operation
func (*DeleteSingleChoiceGroupIDURL) Build ¶
func (o *DeleteSingleChoiceGroupIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteSingleChoiceGroupIDURL) BuildFull ¶
func (o *DeleteSingleChoiceGroupIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteSingleChoiceGroupIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteSingleChoiceGroupIDURL) SetBasePath ¶
func (o *DeleteSingleChoiceGroupIDURL) 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 (*DeleteSingleChoiceGroupIDURL) String ¶
func (o *DeleteSingleChoiceGroupIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteSingleChoiceGroupIDURL) StringFull ¶
func (o *DeleteSingleChoiceGroupIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteSingleChoiceGroupIDURL) WithBasePath ¶
func (o *DeleteSingleChoiceGroupIDURL) WithBasePath(bp string) *DeleteSingleChoiceGroupIDURL
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 DeleteSingleChoiceID ¶
type DeleteSingleChoiceID struct {
Context *middleware.Context
Handler DeleteSingleChoiceIDHandler
}
DeleteSingleChoiceID swagger:route DELETE /single_choice/{id} category deleteSingleChoiceId
DeleteSingleChoiceID delete single choice ID API
func NewDeleteSingleChoiceID ¶
func NewDeleteSingleChoiceID(ctx *middleware.Context, handler DeleteSingleChoiceIDHandler) *DeleteSingleChoiceID
NewDeleteSingleChoiceID creates a new http.Handler for the delete single choice ID operation
func (*DeleteSingleChoiceID) ServeHTTP ¶
func (o *DeleteSingleChoiceID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteSingleChoiceIDDefault ¶
type DeleteSingleChoiceIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
DeleteSingleChoiceIDDefault Error
swagger:response deleteSingleChoiceIdDefault
func NewDeleteSingleChoiceIDDefault ¶
func NewDeleteSingleChoiceIDDefault(code int) *DeleteSingleChoiceIDDefault
NewDeleteSingleChoiceIDDefault creates DeleteSingleChoiceIDDefault with default headers values
func (*DeleteSingleChoiceIDDefault) SetPayload ¶
func (o *DeleteSingleChoiceIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete single choice ID default response
func (*DeleteSingleChoiceIDDefault) SetStatusCode ¶
func (o *DeleteSingleChoiceIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete single choice ID default response
func (*DeleteSingleChoiceIDDefault) WithPayload ¶
func (o *DeleteSingleChoiceIDDefault) WithPayload(payload *models.Error) *DeleteSingleChoiceIDDefault
WithPayload adds the payload to the delete single choice ID default response
func (*DeleteSingleChoiceIDDefault) WithStatusCode ¶
func (o *DeleteSingleChoiceIDDefault) WithStatusCode(code int) *DeleteSingleChoiceIDDefault
WithStatusCode adds the status to the delete single choice ID default response
func (*DeleteSingleChoiceIDDefault) WriteResponse ¶
func (o *DeleteSingleChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSingleChoiceIDHandler ¶
type DeleteSingleChoiceIDHandler interface {
Handle(DeleteSingleChoiceIDParams, *schemas.User) middleware.Responder
}
DeleteSingleChoiceIDHandler interface for that can handle valid delete single choice ID params
type DeleteSingleChoiceIDHandlerFunc ¶
type DeleteSingleChoiceIDHandlerFunc func(DeleteSingleChoiceIDParams, *schemas.User) middleware.Responder
DeleteSingleChoiceIDHandlerFunc turns a function with the right signature into a delete single choice ID handler
func (DeleteSingleChoiceIDHandlerFunc) Handle ¶
func (fn DeleteSingleChoiceIDHandlerFunc) Handle(params DeleteSingleChoiceIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type DeleteSingleChoiceIDNoContent ¶
type DeleteSingleChoiceIDNoContent struct {
}
DeleteSingleChoiceIDNoContent Deleted
swagger:response deleteSingleChoiceIdNoContent
func NewDeleteSingleChoiceIDNoContent ¶
func NewDeleteSingleChoiceIDNoContent() *DeleteSingleChoiceIDNoContent
NewDeleteSingleChoiceIDNoContent creates DeleteSingleChoiceIDNoContent with default headers values
func (*DeleteSingleChoiceIDNoContent) WriteResponse ¶
func (o *DeleteSingleChoiceIDNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSingleChoiceIDParams ¶
type DeleteSingleChoiceIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID int64
}
DeleteSingleChoiceIDParams contains all the bound params for the delete single choice ID operation typically these are obtained from a http.Request
swagger:parameters DeleteSingleChoiceID
func NewDeleteSingleChoiceIDParams ¶
func NewDeleteSingleChoiceIDParams() DeleteSingleChoiceIDParams
NewDeleteSingleChoiceIDParams creates a new DeleteSingleChoiceIDParams object
There are no default values defined in the spec.
func (*DeleteSingleChoiceIDParams) BindRequest ¶
func (o *DeleteSingleChoiceIDParams) 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 NewDeleteSingleChoiceIDParams() beforehand.
type DeleteSingleChoiceIDURL ¶
type DeleteSingleChoiceIDURL struct {
ID int64
// contains filtered or unexported fields
}
DeleteSingleChoiceIDURL generates an URL for the delete single choice ID operation
func (*DeleteSingleChoiceIDURL) Build ¶
func (o *DeleteSingleChoiceIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteSingleChoiceIDURL) BuildFull ¶
func (o *DeleteSingleChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteSingleChoiceIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteSingleChoiceIDURL) SetBasePath ¶
func (o *DeleteSingleChoiceIDURL) 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 (*DeleteSingleChoiceIDURL) String ¶
func (o *DeleteSingleChoiceIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteSingleChoiceIDURL) StringFull ¶
func (o *DeleteSingleChoiceIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteSingleChoiceIDURL) WithBasePath ¶
func (o *DeleteSingleChoiceIDURL) WithBasePath(bp string) *DeleteSingleChoiceIDURL
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 GetCategory ¶
type GetCategory struct {
Context *middleware.Context
Handler GetCategoryHandler
}
GetCategory swagger:route GET /category/ category getCategory
GetCategory get category API
func NewGetCategory ¶
func NewGetCategory(ctx *middleware.Context, handler GetCategoryHandler) *GetCategory
NewGetCategory creates a new http.Handler for the get category operation
func (*GetCategory) ServeHTTP ¶
func (o *GetCategory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCategoryCategoryIDMultiChoice ¶
type GetCategoryCategoryIDMultiChoice struct {
Context *middleware.Context
Handler GetCategoryCategoryIDMultiChoiceHandler
}
GetCategoryCategoryIDMultiChoice swagger:route GET /category/{category_id}/multi_choice/ category getCategoryCategoryIdMultiChoice
GetCategoryCategoryIDMultiChoice get category category ID multi choice API
func NewGetCategoryCategoryIDMultiChoice ¶
func NewGetCategoryCategoryIDMultiChoice(ctx *middleware.Context, handler GetCategoryCategoryIDMultiChoiceHandler) *GetCategoryCategoryIDMultiChoice
NewGetCategoryCategoryIDMultiChoice creates a new http.Handler for the get category category ID multi choice operation
func (*GetCategoryCategoryIDMultiChoice) ServeHTTP ¶
func (o *GetCategoryCategoryIDMultiChoice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCategoryCategoryIDMultiChoiceDefault ¶
type GetCategoryCategoryIDMultiChoiceDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
GetCategoryCategoryIDMultiChoiceDefault Error
swagger:response getCategoryCategoryIdMultiChoiceDefault
func NewGetCategoryCategoryIDMultiChoiceDefault ¶
func NewGetCategoryCategoryIDMultiChoiceDefault(code int) *GetCategoryCategoryIDMultiChoiceDefault
NewGetCategoryCategoryIDMultiChoiceDefault creates GetCategoryCategoryIDMultiChoiceDefault with default headers values
func (*GetCategoryCategoryIDMultiChoiceDefault) SetPayload ¶
func (o *GetCategoryCategoryIDMultiChoiceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get category category ID multi choice default response
func (*GetCategoryCategoryIDMultiChoiceDefault) SetStatusCode ¶
func (o *GetCategoryCategoryIDMultiChoiceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get category category ID multi choice default response
func (*GetCategoryCategoryIDMultiChoiceDefault) WithPayload ¶
func (o *GetCategoryCategoryIDMultiChoiceDefault) WithPayload(payload *models.Error) *GetCategoryCategoryIDMultiChoiceDefault
WithPayload adds the payload to the get category category ID multi choice default response
func (*GetCategoryCategoryIDMultiChoiceDefault) WithStatusCode ¶
func (o *GetCategoryCategoryIDMultiChoiceDefault) WithStatusCode(code int) *GetCategoryCategoryIDMultiChoiceDefault
WithStatusCode adds the status to the get category category ID multi choice default response
func (*GetCategoryCategoryIDMultiChoiceDefault) WriteResponse ¶
func (o *GetCategoryCategoryIDMultiChoiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCategoryCategoryIDMultiChoiceHandler ¶
type GetCategoryCategoryIDMultiChoiceHandler interface {
Handle(GetCategoryCategoryIDMultiChoiceParams, *schemas.User) middleware.Responder
}
GetCategoryCategoryIDMultiChoiceHandler interface for that can handle valid get category category ID multi choice params
type GetCategoryCategoryIDMultiChoiceHandlerFunc ¶
type GetCategoryCategoryIDMultiChoiceHandlerFunc func(GetCategoryCategoryIDMultiChoiceParams, *schemas.User) middleware.Responder
GetCategoryCategoryIDMultiChoiceHandlerFunc turns a function with the right signature into a get category category ID multi choice handler
func (GetCategoryCategoryIDMultiChoiceHandlerFunc) Handle ¶
func (fn GetCategoryCategoryIDMultiChoiceHandlerFunc) Handle(params GetCategoryCategoryIDMultiChoiceParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetCategoryCategoryIDMultiChoiceOK ¶
type GetCategoryCategoryIDMultiChoiceOK struct {
/*
In: Body
*/
Payload []*models.CategoryMultiChoice `json:"body,omitempty"`
}
GetCategoryCategoryIDMultiChoiceOK List of multi choices
swagger:response getCategoryCategoryIdMultiChoiceOK
func NewGetCategoryCategoryIDMultiChoiceOK ¶
func NewGetCategoryCategoryIDMultiChoiceOK() *GetCategoryCategoryIDMultiChoiceOK
NewGetCategoryCategoryIDMultiChoiceOK creates GetCategoryCategoryIDMultiChoiceOK with default headers values
func (*GetCategoryCategoryIDMultiChoiceOK) SetPayload ¶
func (o *GetCategoryCategoryIDMultiChoiceOK) SetPayload(payload []*models.CategoryMultiChoice)
SetPayload sets the payload to the get category category Id multi choice o k response
func (*GetCategoryCategoryIDMultiChoiceOK) WithPayload ¶
func (o *GetCategoryCategoryIDMultiChoiceOK) WithPayload(payload []*models.CategoryMultiChoice) *GetCategoryCategoryIDMultiChoiceOK
WithPayload adds the payload to the get category category Id multi choice o k response
func (*GetCategoryCategoryIDMultiChoiceOK) WriteResponse ¶
func (o *GetCategoryCategoryIDMultiChoiceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCategoryCategoryIDMultiChoiceParams ¶
type GetCategoryCategoryIDMultiChoiceParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
CategoryID int64
/*
In: query
Default: 0
*/
First *int32
/*
In: query
*/
Limit *int32
}
GetCategoryCategoryIDMultiChoiceParams contains all the bound params for the get category category ID multi choice operation typically these are obtained from a http.Request
swagger:parameters GetCategoryCategoryIDMultiChoice
func NewGetCategoryCategoryIDMultiChoiceParams ¶
func NewGetCategoryCategoryIDMultiChoiceParams() GetCategoryCategoryIDMultiChoiceParams
NewGetCategoryCategoryIDMultiChoiceParams creates a new GetCategoryCategoryIDMultiChoiceParams object with the default values initialized.
func (*GetCategoryCategoryIDMultiChoiceParams) BindRequest ¶
func (o *GetCategoryCategoryIDMultiChoiceParams) 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 NewGetCategoryCategoryIDMultiChoiceParams() beforehand.
type GetCategoryCategoryIDMultiChoiceURL ¶
type GetCategoryCategoryIDMultiChoiceURL struct {
CategoryID int64
First *int32
Limit *int32
// contains filtered or unexported fields
}
GetCategoryCategoryIDMultiChoiceURL generates an URL for the get category category ID multi choice operation
func (*GetCategoryCategoryIDMultiChoiceURL) Build ¶
func (o *GetCategoryCategoryIDMultiChoiceURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCategoryCategoryIDMultiChoiceURL) BuildFull ¶
func (o *GetCategoryCategoryIDMultiChoiceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCategoryCategoryIDMultiChoiceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetCategoryCategoryIDMultiChoiceURL) SetBasePath ¶
func (o *GetCategoryCategoryIDMultiChoiceURL) 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 (*GetCategoryCategoryIDMultiChoiceURL) String ¶
func (o *GetCategoryCategoryIDMultiChoiceURL) String() string
String returns the string representation of the path with query string
func (*GetCategoryCategoryIDMultiChoiceURL) StringFull ¶
func (o *GetCategoryCategoryIDMultiChoiceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCategoryCategoryIDMultiChoiceURL) WithBasePath ¶
func (o *GetCategoryCategoryIDMultiChoiceURL) WithBasePath(bp string) *GetCategoryCategoryIDMultiChoiceURL
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 GetCategoryCategoryIDSingleChoiceGroup ¶
type GetCategoryCategoryIDSingleChoiceGroup struct {
Context *middleware.Context
Handler GetCategoryCategoryIDSingleChoiceGroupHandler
}
GetCategoryCategoryIDSingleChoiceGroup swagger:route GET /category/{category_id}/single_choice_group/ category getCategoryCategoryIdSingleChoiceGroup
GetCategoryCategoryIDSingleChoiceGroup get category category ID single choice group API
func NewGetCategoryCategoryIDSingleChoiceGroup ¶
func NewGetCategoryCategoryIDSingleChoiceGroup(ctx *middleware.Context, handler GetCategoryCategoryIDSingleChoiceGroupHandler) *GetCategoryCategoryIDSingleChoiceGroup
NewGetCategoryCategoryIDSingleChoiceGroup creates a new http.Handler for the get category category ID single choice group operation
func (*GetCategoryCategoryIDSingleChoiceGroup) ServeHTTP ¶
func (o *GetCategoryCategoryIDSingleChoiceGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCategoryCategoryIDSingleChoiceGroupDefault ¶
type GetCategoryCategoryIDSingleChoiceGroupDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
GetCategoryCategoryIDSingleChoiceGroupDefault Error
swagger:response getCategoryCategoryIdSingleChoiceGroupDefault
func NewGetCategoryCategoryIDSingleChoiceGroupDefault ¶
func NewGetCategoryCategoryIDSingleChoiceGroupDefault(code int) *GetCategoryCategoryIDSingleChoiceGroupDefault
NewGetCategoryCategoryIDSingleChoiceGroupDefault creates GetCategoryCategoryIDSingleChoiceGroupDefault with default headers values
func (*GetCategoryCategoryIDSingleChoiceGroupDefault) SetPayload ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get category category ID single choice group default response
func (*GetCategoryCategoryIDSingleChoiceGroupDefault) SetStatusCode ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get category category ID single choice group default response
func (*GetCategoryCategoryIDSingleChoiceGroupDefault) WithPayload ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) WithPayload(payload *models.Error) *GetCategoryCategoryIDSingleChoiceGroupDefault
WithPayload adds the payload to the get category category ID single choice group default response
func (*GetCategoryCategoryIDSingleChoiceGroupDefault) WithStatusCode ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) WithStatusCode(code int) *GetCategoryCategoryIDSingleChoiceGroupDefault
WithStatusCode adds the status to the get category category ID single choice group default response
func (*GetCategoryCategoryIDSingleChoiceGroupDefault) WriteResponse ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCategoryCategoryIDSingleChoiceGroupHandler ¶
type GetCategoryCategoryIDSingleChoiceGroupHandler interface {
Handle(GetCategoryCategoryIDSingleChoiceGroupParams, *schemas.User) middleware.Responder
}
GetCategoryCategoryIDSingleChoiceGroupHandler interface for that can handle valid get category category ID single choice group params
type GetCategoryCategoryIDSingleChoiceGroupHandlerFunc ¶
type GetCategoryCategoryIDSingleChoiceGroupHandlerFunc func(GetCategoryCategoryIDSingleChoiceGroupParams, *schemas.User) middleware.Responder
GetCategoryCategoryIDSingleChoiceGroupHandlerFunc turns a function with the right signature into a get category category ID single choice group handler
func (GetCategoryCategoryIDSingleChoiceGroupHandlerFunc) Handle ¶
func (fn GetCategoryCategoryIDSingleChoiceGroupHandlerFunc) Handle(params GetCategoryCategoryIDSingleChoiceGroupParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetCategoryCategoryIDSingleChoiceGroupOK ¶
type GetCategoryCategoryIDSingleChoiceGroupOK struct {
/*
In: Body
*/
Payload []*models.CategorySingleChoiceGroup `json:"body,omitempty"`
}
GetCategoryCategoryIDSingleChoiceGroupOK List of single choice groups
swagger:response getCategoryCategoryIdSingleChoiceGroupOK
func NewGetCategoryCategoryIDSingleChoiceGroupOK ¶
func NewGetCategoryCategoryIDSingleChoiceGroupOK() *GetCategoryCategoryIDSingleChoiceGroupOK
NewGetCategoryCategoryIDSingleChoiceGroupOK creates GetCategoryCategoryIDSingleChoiceGroupOK with default headers values
func (*GetCategoryCategoryIDSingleChoiceGroupOK) SetPayload ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupOK) SetPayload(payload []*models.CategorySingleChoiceGroup)
SetPayload sets the payload to the get category category Id single choice group o k response
func (*GetCategoryCategoryIDSingleChoiceGroupOK) WithPayload ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupOK) WithPayload(payload []*models.CategorySingleChoiceGroup) *GetCategoryCategoryIDSingleChoiceGroupOK
WithPayload adds the payload to the get category category Id single choice group o k response
func (*GetCategoryCategoryIDSingleChoiceGroupOK) WriteResponse ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCategoryCategoryIDSingleChoiceGroupParams ¶
type GetCategoryCategoryIDSingleChoiceGroupParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
CategoryID int64
/*
In: query
Default: 0
*/
First *int32
/*
In: query
*/
Limit *int32
}
GetCategoryCategoryIDSingleChoiceGroupParams contains all the bound params for the get category category ID single choice group operation typically these are obtained from a http.Request
swagger:parameters GetCategoryCategoryIDSingleChoiceGroup
func NewGetCategoryCategoryIDSingleChoiceGroupParams ¶
func NewGetCategoryCategoryIDSingleChoiceGroupParams() GetCategoryCategoryIDSingleChoiceGroupParams
NewGetCategoryCategoryIDSingleChoiceGroupParams creates a new GetCategoryCategoryIDSingleChoiceGroupParams object with the default values initialized.
func (*GetCategoryCategoryIDSingleChoiceGroupParams) BindRequest ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupParams) 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 NewGetCategoryCategoryIDSingleChoiceGroupParams() beforehand.
type GetCategoryCategoryIDSingleChoiceGroupURL ¶
type GetCategoryCategoryIDSingleChoiceGroupURL struct {
CategoryID int64
First *int32
Limit *int32
// contains filtered or unexported fields
}
GetCategoryCategoryIDSingleChoiceGroupURL generates an URL for the get category category ID single choice group operation
func (*GetCategoryCategoryIDSingleChoiceGroupURL) Build ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCategoryCategoryIDSingleChoiceGroupURL) BuildFull ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCategoryCategoryIDSingleChoiceGroupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetCategoryCategoryIDSingleChoiceGroupURL) SetBasePath ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupURL) 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 (*GetCategoryCategoryIDSingleChoiceGroupURL) String ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupURL) String() string
String returns the string representation of the path with query string
func (*GetCategoryCategoryIDSingleChoiceGroupURL) StringFull ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCategoryCategoryIDSingleChoiceGroupURL) WithBasePath ¶
func (o *GetCategoryCategoryIDSingleChoiceGroupURL) WithBasePath(bp string) *GetCategoryCategoryIDSingleChoiceGroupURL
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 GetCategoryDefault ¶
type GetCategoryDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
GetCategoryDefault Error
swagger:response getCategoryDefault
func NewGetCategoryDefault ¶
func NewGetCategoryDefault(code int) *GetCategoryDefault
NewGetCategoryDefault creates GetCategoryDefault with default headers values
func (*GetCategoryDefault) SetPayload ¶
func (o *GetCategoryDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get category default response
func (*GetCategoryDefault) SetStatusCode ¶
func (o *GetCategoryDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get category default response
func (*GetCategoryDefault) WithPayload ¶
func (o *GetCategoryDefault) WithPayload(payload *models.Error) *GetCategoryDefault
WithPayload adds the payload to the get category default response
func (*GetCategoryDefault) WithStatusCode ¶
func (o *GetCategoryDefault) WithStatusCode(code int) *GetCategoryDefault
WithStatusCode adds the status to the get category default response
func (*GetCategoryDefault) WriteResponse ¶
func (o *GetCategoryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCategoryHandler ¶
type GetCategoryHandler interface {
Handle(GetCategoryParams, *schemas.User) middleware.Responder
}
GetCategoryHandler interface for that can handle valid get category params
type GetCategoryHandlerFunc ¶
type GetCategoryHandlerFunc func(GetCategoryParams, *schemas.User) middleware.Responder
GetCategoryHandlerFunc turns a function with the right signature into a get category handler
func (GetCategoryHandlerFunc) Handle ¶
func (fn GetCategoryHandlerFunc) Handle(params GetCategoryParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetCategoryID ¶
type GetCategoryID struct {
Context *middleware.Context
Handler GetCategoryIDHandler
}
GetCategoryID swagger:route GET /category/{id} category getCategoryId
GetCategoryID get category ID API
func NewGetCategoryID ¶
func NewGetCategoryID(ctx *middleware.Context, handler GetCategoryIDHandler) *GetCategoryID
NewGetCategoryID creates a new http.Handler for the get category ID operation
func (*GetCategoryID) ServeHTTP ¶
func (o *GetCategoryID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCategoryIDDefault ¶
type GetCategoryIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
GetCategoryIDDefault Error
swagger:response getCategoryIdDefault
func NewGetCategoryIDDefault ¶
func NewGetCategoryIDDefault(code int) *GetCategoryIDDefault
NewGetCategoryIDDefault creates GetCategoryIDDefault with default headers values
func (*GetCategoryIDDefault) SetPayload ¶
func (o *GetCategoryIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get category ID default response
func (*GetCategoryIDDefault) SetStatusCode ¶
func (o *GetCategoryIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get category ID default response
func (*GetCategoryIDDefault) WithPayload ¶
func (o *GetCategoryIDDefault) WithPayload(payload *models.Error) *GetCategoryIDDefault
WithPayload adds the payload to the get category ID default response
func (*GetCategoryIDDefault) WithStatusCode ¶
func (o *GetCategoryIDDefault) WithStatusCode(code int) *GetCategoryIDDefault
WithStatusCode adds the status to the get category ID default response
func (*GetCategoryIDDefault) WriteResponse ¶
func (o *GetCategoryIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCategoryIDHandler ¶
type GetCategoryIDHandler interface {
Handle(GetCategoryIDParams, *schemas.User) middleware.Responder
}
GetCategoryIDHandler interface for that can handle valid get category ID params
type GetCategoryIDHandlerFunc ¶
type GetCategoryIDHandlerFunc func(GetCategoryIDParams, *schemas.User) middleware.Responder
GetCategoryIDHandlerFunc turns a function with the right signature into a get category ID handler
func (GetCategoryIDHandlerFunc) Handle ¶
func (fn GetCategoryIDHandlerFunc) Handle(params GetCategoryIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetCategoryIDOK ¶
GetCategoryIDOK OK
swagger:response getCategoryIdOK
func NewGetCategoryIDOK ¶
func NewGetCategoryIDOK() *GetCategoryIDOK
NewGetCategoryIDOK creates GetCategoryIDOK with default headers values
func (*GetCategoryIDOK) SetPayload ¶
func (o *GetCategoryIDOK) SetPayload(payload *models.Category)
SetPayload sets the payload to the get category Id o k response
func (*GetCategoryIDOK) WithPayload ¶
func (o *GetCategoryIDOK) WithPayload(payload *models.Category) *GetCategoryIDOK
WithPayload adds the payload to the get category Id o k response
func (*GetCategoryIDOK) WriteResponse ¶
func (o *GetCategoryIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCategoryIDParams ¶
type GetCategoryIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID int64
}
GetCategoryIDParams contains all the bound params for the get category ID operation typically these are obtained from a http.Request
swagger:parameters GetCategoryID
func NewGetCategoryIDParams ¶
func NewGetCategoryIDParams() GetCategoryIDParams
NewGetCategoryIDParams creates a new GetCategoryIDParams object
There are no default values defined in the spec.
func (*GetCategoryIDParams) BindRequest ¶
func (o *GetCategoryIDParams) 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 NewGetCategoryIDParams() beforehand.
type GetCategoryIDURL ¶
type GetCategoryIDURL struct {
ID int64
// contains filtered or unexported fields
}
GetCategoryIDURL generates an URL for the get category ID operation
func (*GetCategoryIDURL) Build ¶
func (o *GetCategoryIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCategoryIDURL) BuildFull ¶
func (o *GetCategoryIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCategoryIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetCategoryIDURL) SetBasePath ¶
func (o *GetCategoryIDURL) 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 (*GetCategoryIDURL) String ¶
func (o *GetCategoryIDURL) String() string
String returns the string representation of the path with query string
func (*GetCategoryIDURL) StringFull ¶
func (o *GetCategoryIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCategoryIDURL) WithBasePath ¶
func (o *GetCategoryIDURL) WithBasePath(bp string) *GetCategoryIDURL
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 GetCategoryOK ¶
GetCategoryOK List of categories
swagger:response getCategoryOK
func NewGetCategoryOK ¶
func NewGetCategoryOK() *GetCategoryOK
NewGetCategoryOK creates GetCategoryOK with default headers values
func (*GetCategoryOK) SetPayload ¶
func (o *GetCategoryOK) SetPayload(payload []*models.Category)
SetPayload sets the payload to the get category o k response
func (*GetCategoryOK) WithPayload ¶
func (o *GetCategoryOK) WithPayload(payload []*models.Category) *GetCategoryOK
WithPayload adds the payload to the get category o k response
func (*GetCategoryOK) WriteResponse ¶
func (o *GetCategoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCategoryParams ¶
type GetCategoryParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: query
Default: 0
*/
First *int32
/*
In: query
*/
Limit *int32
}
GetCategoryParams contains all the bound params for the get category operation typically these are obtained from a http.Request
swagger:parameters GetCategory
func NewGetCategoryParams ¶
func NewGetCategoryParams() GetCategoryParams
NewGetCategoryParams creates a new GetCategoryParams object with the default values initialized.
func (*GetCategoryParams) BindRequest ¶
func (o *GetCategoryParams) 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 NewGetCategoryParams() beforehand.
type GetCategoryURL ¶
GetCategoryURL generates an URL for the get category operation
func (*GetCategoryURL) Build ¶
func (o *GetCategoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCategoryURL) BuildFull ¶
func (o *GetCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCategoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetCategoryURL) SetBasePath ¶
func (o *GetCategoryURL) 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 (*GetCategoryURL) String ¶
func (o *GetCategoryURL) String() string
String returns the string representation of the path with query string
func (*GetCategoryURL) StringFull ¶
func (o *GetCategoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCategoryURL) WithBasePath ¶
func (o *GetCategoryURL) WithBasePath(bp string) *GetCategoryURL
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 GetMultiChoiceID ¶
type GetMultiChoiceID struct {
Context *middleware.Context
Handler GetMultiChoiceIDHandler
}
GetMultiChoiceID swagger:route GET /multi_choice/{id} category getMultiChoiceId
GetMultiChoiceID get multi choice ID API
func NewGetMultiChoiceID ¶
func NewGetMultiChoiceID(ctx *middleware.Context, handler GetMultiChoiceIDHandler) *GetMultiChoiceID
NewGetMultiChoiceID creates a new http.Handler for the get multi choice ID operation
func (*GetMultiChoiceID) ServeHTTP ¶
func (o *GetMultiChoiceID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetMultiChoiceIDDefault ¶
type GetMultiChoiceIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
GetMultiChoiceIDDefault Error
swagger:response getMultiChoiceIdDefault
func NewGetMultiChoiceIDDefault ¶
func NewGetMultiChoiceIDDefault(code int) *GetMultiChoiceIDDefault
NewGetMultiChoiceIDDefault creates GetMultiChoiceIDDefault with default headers values
func (*GetMultiChoiceIDDefault) SetPayload ¶
func (o *GetMultiChoiceIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get multi choice ID default response
func (*GetMultiChoiceIDDefault) SetStatusCode ¶
func (o *GetMultiChoiceIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get multi choice ID default response
func (*GetMultiChoiceIDDefault) WithPayload ¶
func (o *GetMultiChoiceIDDefault) WithPayload(payload *models.Error) *GetMultiChoiceIDDefault
WithPayload adds the payload to the get multi choice ID default response
func (*GetMultiChoiceIDDefault) WithStatusCode ¶
func (o *GetMultiChoiceIDDefault) WithStatusCode(code int) *GetMultiChoiceIDDefault
WithStatusCode adds the status to the get multi choice ID default response
func (*GetMultiChoiceIDDefault) WriteResponse ¶
func (o *GetMultiChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetMultiChoiceIDHandler ¶
type GetMultiChoiceIDHandler interface {
Handle(GetMultiChoiceIDParams, *schemas.User) middleware.Responder
}
GetMultiChoiceIDHandler interface for that can handle valid get multi choice ID params
type GetMultiChoiceIDHandlerFunc ¶
type GetMultiChoiceIDHandlerFunc func(GetMultiChoiceIDParams, *schemas.User) middleware.Responder
GetMultiChoiceIDHandlerFunc turns a function with the right signature into a get multi choice ID handler
func (GetMultiChoiceIDHandlerFunc) Handle ¶
func (fn GetMultiChoiceIDHandlerFunc) Handle(params GetMultiChoiceIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetMultiChoiceIDOK ¶
type GetMultiChoiceIDOK struct {
/*
In: Body
*/
Payload *models.CategoryMultiChoice `json:"body,omitempty"`
}
GetMultiChoiceIDOK OK
swagger:response getMultiChoiceIdOK
func NewGetMultiChoiceIDOK ¶
func NewGetMultiChoiceIDOK() *GetMultiChoiceIDOK
NewGetMultiChoiceIDOK creates GetMultiChoiceIDOK with default headers values
func (*GetMultiChoiceIDOK) SetPayload ¶
func (o *GetMultiChoiceIDOK) SetPayload(payload *models.CategoryMultiChoice)
SetPayload sets the payload to the get multi choice Id o k response
func (*GetMultiChoiceIDOK) WithPayload ¶
func (o *GetMultiChoiceIDOK) WithPayload(payload *models.CategoryMultiChoice) *GetMultiChoiceIDOK
WithPayload adds the payload to the get multi choice Id o k response
func (*GetMultiChoiceIDOK) WriteResponse ¶
func (o *GetMultiChoiceIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetMultiChoiceIDParams ¶
type GetMultiChoiceIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID int64
}
GetMultiChoiceIDParams contains all the bound params for the get multi choice ID operation typically these are obtained from a http.Request
swagger:parameters GetMultiChoiceID
func NewGetMultiChoiceIDParams ¶
func NewGetMultiChoiceIDParams() GetMultiChoiceIDParams
NewGetMultiChoiceIDParams creates a new GetMultiChoiceIDParams object
There are no default values defined in the spec.
func (*GetMultiChoiceIDParams) BindRequest ¶
func (o *GetMultiChoiceIDParams) 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 NewGetMultiChoiceIDParams() beforehand.
type GetMultiChoiceIDURL ¶
type GetMultiChoiceIDURL struct {
ID int64
// contains filtered or unexported fields
}
GetMultiChoiceIDURL generates an URL for the get multi choice ID operation
func (*GetMultiChoiceIDURL) Build ¶
func (o *GetMultiChoiceIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetMultiChoiceIDURL) BuildFull ¶
func (o *GetMultiChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetMultiChoiceIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetMultiChoiceIDURL) SetBasePath ¶
func (o *GetMultiChoiceIDURL) 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 (*GetMultiChoiceIDURL) String ¶
func (o *GetMultiChoiceIDURL) String() string
String returns the string representation of the path with query string
func (*GetMultiChoiceIDURL) StringFull ¶
func (o *GetMultiChoiceIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetMultiChoiceIDURL) WithBasePath ¶
func (o *GetMultiChoiceIDURL) WithBasePath(bp string) *GetMultiChoiceIDURL
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 GetSingleChoiceGroupGroupIDSingleChoice ¶
type GetSingleChoiceGroupGroupIDSingleChoice struct {
Context *middleware.Context
Handler GetSingleChoiceGroupGroupIDSingleChoiceHandler
}
GetSingleChoiceGroupGroupIDSingleChoice swagger:route GET /single_choice_group/{group_id}/single_choice/ category getSingleChoiceGroupGroupIdSingleChoice
GetSingleChoiceGroupGroupIDSingleChoice get single choice group group ID single choice API
func NewGetSingleChoiceGroupGroupIDSingleChoice ¶
func NewGetSingleChoiceGroupGroupIDSingleChoice(ctx *middleware.Context, handler GetSingleChoiceGroupGroupIDSingleChoiceHandler) *GetSingleChoiceGroupGroupIDSingleChoice
NewGetSingleChoiceGroupGroupIDSingleChoice creates a new http.Handler for the get single choice group group ID single choice operation
func (*GetSingleChoiceGroupGroupIDSingleChoice) ServeHTTP ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSingleChoiceGroupGroupIDSingleChoiceDefault ¶
type GetSingleChoiceGroupGroupIDSingleChoiceDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
GetSingleChoiceGroupGroupIDSingleChoiceDefault Error
swagger:response getSingleChoiceGroupGroupIdSingleChoiceDefault
func NewGetSingleChoiceGroupGroupIDSingleChoiceDefault ¶
func NewGetSingleChoiceGroupGroupIDSingleChoiceDefault(code int) *GetSingleChoiceGroupGroupIDSingleChoiceDefault
NewGetSingleChoiceGroupGroupIDSingleChoiceDefault creates GetSingleChoiceGroupGroupIDSingleChoiceDefault with default headers values
func (*GetSingleChoiceGroupGroupIDSingleChoiceDefault) SetPayload ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get single choice group group ID single choice default response
func (*GetSingleChoiceGroupGroupIDSingleChoiceDefault) SetStatusCode ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get single choice group group ID single choice default response
func (*GetSingleChoiceGroupGroupIDSingleChoiceDefault) WithPayload ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) WithPayload(payload *models.Error) *GetSingleChoiceGroupGroupIDSingleChoiceDefault
WithPayload adds the payload to the get single choice group group ID single choice default response
func (*GetSingleChoiceGroupGroupIDSingleChoiceDefault) WithStatusCode ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) WithStatusCode(code int) *GetSingleChoiceGroupGroupIDSingleChoiceDefault
WithStatusCode adds the status to the get single choice group group ID single choice default response
func (*GetSingleChoiceGroupGroupIDSingleChoiceDefault) WriteResponse ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSingleChoiceGroupGroupIDSingleChoiceHandler ¶
type GetSingleChoiceGroupGroupIDSingleChoiceHandler interface {
Handle(GetSingleChoiceGroupGroupIDSingleChoiceParams, *schemas.User) middleware.Responder
}
GetSingleChoiceGroupGroupIDSingleChoiceHandler interface for that can handle valid get single choice group group ID single choice params
type GetSingleChoiceGroupGroupIDSingleChoiceHandlerFunc ¶
type GetSingleChoiceGroupGroupIDSingleChoiceHandlerFunc func(GetSingleChoiceGroupGroupIDSingleChoiceParams, *schemas.User) middleware.Responder
GetSingleChoiceGroupGroupIDSingleChoiceHandlerFunc turns a function with the right signature into a get single choice group group ID single choice handler
func (GetSingleChoiceGroupGroupIDSingleChoiceHandlerFunc) Handle ¶
func (fn GetSingleChoiceGroupGroupIDSingleChoiceHandlerFunc) Handle(params GetSingleChoiceGroupGroupIDSingleChoiceParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetSingleChoiceGroupGroupIDSingleChoiceOK ¶
type GetSingleChoiceGroupGroupIDSingleChoiceOK struct {
/*
In: Body
*/
Payload []*models.CategorySingleChoice `json:"body,omitempty"`
}
GetSingleChoiceGroupGroupIDSingleChoiceOK List of single choices
swagger:response getSingleChoiceGroupGroupIdSingleChoiceOK
func NewGetSingleChoiceGroupGroupIDSingleChoiceOK ¶
func NewGetSingleChoiceGroupGroupIDSingleChoiceOK() *GetSingleChoiceGroupGroupIDSingleChoiceOK
NewGetSingleChoiceGroupGroupIDSingleChoiceOK creates GetSingleChoiceGroupGroupIDSingleChoiceOK with default headers values
func (*GetSingleChoiceGroupGroupIDSingleChoiceOK) SetPayload ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceOK) SetPayload(payload []*models.CategorySingleChoice)
SetPayload sets the payload to the get single choice group group Id single choice o k response
func (*GetSingleChoiceGroupGroupIDSingleChoiceOK) WithPayload ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceOK) WithPayload(payload []*models.CategorySingleChoice) *GetSingleChoiceGroupGroupIDSingleChoiceOK
WithPayload adds the payload to the get single choice group group Id single choice o k response
func (*GetSingleChoiceGroupGroupIDSingleChoiceOK) WriteResponse ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSingleChoiceGroupGroupIDSingleChoiceParams ¶
type GetSingleChoiceGroupGroupIDSingleChoiceParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: query
Default: 0
*/
First *int32
/*
Required: true
In: path
*/
GroupID int64
/*
In: query
*/
Limit *int32
}
GetSingleChoiceGroupGroupIDSingleChoiceParams contains all the bound params for the get single choice group group ID single choice operation typically these are obtained from a http.Request
swagger:parameters GetSingleChoiceGroupGroupIDSingleChoice
func NewGetSingleChoiceGroupGroupIDSingleChoiceParams ¶
func NewGetSingleChoiceGroupGroupIDSingleChoiceParams() GetSingleChoiceGroupGroupIDSingleChoiceParams
NewGetSingleChoiceGroupGroupIDSingleChoiceParams creates a new GetSingleChoiceGroupGroupIDSingleChoiceParams object with the default values initialized.
func (*GetSingleChoiceGroupGroupIDSingleChoiceParams) BindRequest ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceParams) 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 NewGetSingleChoiceGroupGroupIDSingleChoiceParams() beforehand.
type GetSingleChoiceGroupGroupIDSingleChoiceURL ¶
type GetSingleChoiceGroupGroupIDSingleChoiceURL struct {
GroupID int64
First *int32
Limit *int32
// contains filtered or unexported fields
}
GetSingleChoiceGroupGroupIDSingleChoiceURL generates an URL for the get single choice group group ID single choice operation
func (*GetSingleChoiceGroupGroupIDSingleChoiceURL) Build ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSingleChoiceGroupGroupIDSingleChoiceURL) BuildFull ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSingleChoiceGroupGroupIDSingleChoiceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSingleChoiceGroupGroupIDSingleChoiceURL) SetBasePath ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) 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 (*GetSingleChoiceGroupGroupIDSingleChoiceURL) String ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) String() string
String returns the string representation of the path with query string
func (*GetSingleChoiceGroupGroupIDSingleChoiceURL) StringFull ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSingleChoiceGroupGroupIDSingleChoiceURL) WithBasePath ¶
func (o *GetSingleChoiceGroupGroupIDSingleChoiceURL) WithBasePath(bp string) *GetSingleChoiceGroupGroupIDSingleChoiceURL
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 GetSingleChoiceGroupID ¶
type GetSingleChoiceGroupID struct {
Context *middleware.Context
Handler GetSingleChoiceGroupIDHandler
}
GetSingleChoiceGroupID swagger:route GET /single_choice_group/{id} category getSingleChoiceGroupId
GetSingleChoiceGroupID get single choice group ID API
func NewGetSingleChoiceGroupID ¶
func NewGetSingleChoiceGroupID(ctx *middleware.Context, handler GetSingleChoiceGroupIDHandler) *GetSingleChoiceGroupID
NewGetSingleChoiceGroupID creates a new http.Handler for the get single choice group ID operation
func (*GetSingleChoiceGroupID) ServeHTTP ¶
func (o *GetSingleChoiceGroupID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSingleChoiceGroupIDDefault ¶
type GetSingleChoiceGroupIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
GetSingleChoiceGroupIDDefault Error
swagger:response getSingleChoiceGroupIdDefault
func NewGetSingleChoiceGroupIDDefault ¶
func NewGetSingleChoiceGroupIDDefault(code int) *GetSingleChoiceGroupIDDefault
NewGetSingleChoiceGroupIDDefault creates GetSingleChoiceGroupIDDefault with default headers values
func (*GetSingleChoiceGroupIDDefault) SetPayload ¶
func (o *GetSingleChoiceGroupIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get single choice group ID default response
func (*GetSingleChoiceGroupIDDefault) SetStatusCode ¶
func (o *GetSingleChoiceGroupIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get single choice group ID default response
func (*GetSingleChoiceGroupIDDefault) WithPayload ¶
func (o *GetSingleChoiceGroupIDDefault) WithPayload(payload *models.Error) *GetSingleChoiceGroupIDDefault
WithPayload adds the payload to the get single choice group ID default response
func (*GetSingleChoiceGroupIDDefault) WithStatusCode ¶
func (o *GetSingleChoiceGroupIDDefault) WithStatusCode(code int) *GetSingleChoiceGroupIDDefault
WithStatusCode adds the status to the get single choice group ID default response
func (*GetSingleChoiceGroupIDDefault) WriteResponse ¶
func (o *GetSingleChoiceGroupIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSingleChoiceGroupIDHandler ¶
type GetSingleChoiceGroupIDHandler interface {
Handle(GetSingleChoiceGroupIDParams, *schemas.User) middleware.Responder
}
GetSingleChoiceGroupIDHandler interface for that can handle valid get single choice group ID params
type GetSingleChoiceGroupIDHandlerFunc ¶
type GetSingleChoiceGroupIDHandlerFunc func(GetSingleChoiceGroupIDParams, *schemas.User) middleware.Responder
GetSingleChoiceGroupIDHandlerFunc turns a function with the right signature into a get single choice group ID handler
func (GetSingleChoiceGroupIDHandlerFunc) Handle ¶
func (fn GetSingleChoiceGroupIDHandlerFunc) Handle(params GetSingleChoiceGroupIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetSingleChoiceGroupIDOK ¶
type GetSingleChoiceGroupIDOK struct {
/*
In: Body
*/
Payload *models.CategorySingleChoiceGroup `json:"body,omitempty"`
}
GetSingleChoiceGroupIDOK OK
swagger:response getSingleChoiceGroupIdOK
func NewGetSingleChoiceGroupIDOK ¶
func NewGetSingleChoiceGroupIDOK() *GetSingleChoiceGroupIDOK
NewGetSingleChoiceGroupIDOK creates GetSingleChoiceGroupIDOK with default headers values
func (*GetSingleChoiceGroupIDOK) SetPayload ¶
func (o *GetSingleChoiceGroupIDOK) SetPayload(payload *models.CategorySingleChoiceGroup)
SetPayload sets the payload to the get single choice group Id o k response
func (*GetSingleChoiceGroupIDOK) WithPayload ¶
func (o *GetSingleChoiceGroupIDOK) WithPayload(payload *models.CategorySingleChoiceGroup) *GetSingleChoiceGroupIDOK
WithPayload adds the payload to the get single choice group Id o k response
func (*GetSingleChoiceGroupIDOK) WriteResponse ¶
func (o *GetSingleChoiceGroupIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSingleChoiceGroupIDParams ¶
type GetSingleChoiceGroupIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID int64
}
GetSingleChoiceGroupIDParams contains all the bound params for the get single choice group ID operation typically these are obtained from a http.Request
swagger:parameters GetSingleChoiceGroupID
func NewGetSingleChoiceGroupIDParams ¶
func NewGetSingleChoiceGroupIDParams() GetSingleChoiceGroupIDParams
NewGetSingleChoiceGroupIDParams creates a new GetSingleChoiceGroupIDParams object
There are no default values defined in the spec.
func (*GetSingleChoiceGroupIDParams) BindRequest ¶
func (o *GetSingleChoiceGroupIDParams) 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 NewGetSingleChoiceGroupIDParams() beforehand.
type GetSingleChoiceGroupIDURL ¶
type GetSingleChoiceGroupIDURL struct {
ID int64
// contains filtered or unexported fields
}
GetSingleChoiceGroupIDURL generates an URL for the get single choice group ID operation
func (*GetSingleChoiceGroupIDURL) Build ¶
func (o *GetSingleChoiceGroupIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSingleChoiceGroupIDURL) BuildFull ¶
func (o *GetSingleChoiceGroupIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSingleChoiceGroupIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSingleChoiceGroupIDURL) SetBasePath ¶
func (o *GetSingleChoiceGroupIDURL) 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 (*GetSingleChoiceGroupIDURL) String ¶
func (o *GetSingleChoiceGroupIDURL) String() string
String returns the string representation of the path with query string
func (*GetSingleChoiceGroupIDURL) StringFull ¶
func (o *GetSingleChoiceGroupIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSingleChoiceGroupIDURL) WithBasePath ¶
func (o *GetSingleChoiceGroupIDURL) WithBasePath(bp string) *GetSingleChoiceGroupIDURL
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 GetSingleChoiceID ¶
type GetSingleChoiceID struct {
Context *middleware.Context
Handler GetSingleChoiceIDHandler
}
GetSingleChoiceID swagger:route GET /single_choice/{id} category getSingleChoiceId
GetSingleChoiceID get single choice ID API
func NewGetSingleChoiceID ¶
func NewGetSingleChoiceID(ctx *middleware.Context, handler GetSingleChoiceIDHandler) *GetSingleChoiceID
NewGetSingleChoiceID creates a new http.Handler for the get single choice ID operation
func (*GetSingleChoiceID) ServeHTTP ¶
func (o *GetSingleChoiceID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSingleChoiceIDDefault ¶
type GetSingleChoiceIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
GetSingleChoiceIDDefault Error
swagger:response getSingleChoiceIdDefault
func NewGetSingleChoiceIDDefault ¶
func NewGetSingleChoiceIDDefault(code int) *GetSingleChoiceIDDefault
NewGetSingleChoiceIDDefault creates GetSingleChoiceIDDefault with default headers values
func (*GetSingleChoiceIDDefault) SetPayload ¶
func (o *GetSingleChoiceIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get single choice ID default response
func (*GetSingleChoiceIDDefault) SetStatusCode ¶
func (o *GetSingleChoiceIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get single choice ID default response
func (*GetSingleChoiceIDDefault) WithPayload ¶
func (o *GetSingleChoiceIDDefault) WithPayload(payload *models.Error) *GetSingleChoiceIDDefault
WithPayload adds the payload to the get single choice ID default response
func (*GetSingleChoiceIDDefault) WithStatusCode ¶
func (o *GetSingleChoiceIDDefault) WithStatusCode(code int) *GetSingleChoiceIDDefault
WithStatusCode adds the status to the get single choice ID default response
func (*GetSingleChoiceIDDefault) WriteResponse ¶
func (o *GetSingleChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSingleChoiceIDHandler ¶
type GetSingleChoiceIDHandler interface {
Handle(GetSingleChoiceIDParams, *schemas.User) middleware.Responder
}
GetSingleChoiceIDHandler interface for that can handle valid get single choice ID params
type GetSingleChoiceIDHandlerFunc ¶
type GetSingleChoiceIDHandlerFunc func(GetSingleChoiceIDParams, *schemas.User) middleware.Responder
GetSingleChoiceIDHandlerFunc turns a function with the right signature into a get single choice ID handler
func (GetSingleChoiceIDHandlerFunc) Handle ¶
func (fn GetSingleChoiceIDHandlerFunc) Handle(params GetSingleChoiceIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetSingleChoiceIDOK ¶
type GetSingleChoiceIDOK struct {
/*
In: Body
*/
Payload *models.CategorySingleChoice `json:"body,omitempty"`
}
GetSingleChoiceIDOK OK
swagger:response getSingleChoiceIdOK
func NewGetSingleChoiceIDOK ¶
func NewGetSingleChoiceIDOK() *GetSingleChoiceIDOK
NewGetSingleChoiceIDOK creates GetSingleChoiceIDOK with default headers values
func (*GetSingleChoiceIDOK) SetPayload ¶
func (o *GetSingleChoiceIDOK) SetPayload(payload *models.CategorySingleChoice)
SetPayload sets the payload to the get single choice Id o k response
func (*GetSingleChoiceIDOK) WithPayload ¶
func (o *GetSingleChoiceIDOK) WithPayload(payload *models.CategorySingleChoice) *GetSingleChoiceIDOK
WithPayload adds the payload to the get single choice Id o k response
func (*GetSingleChoiceIDOK) WriteResponse ¶
func (o *GetSingleChoiceIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSingleChoiceIDParams ¶
type GetSingleChoiceIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID int64
}
GetSingleChoiceIDParams contains all the bound params for the get single choice ID operation typically these are obtained from a http.Request
swagger:parameters GetSingleChoiceID
func NewGetSingleChoiceIDParams ¶
func NewGetSingleChoiceIDParams() GetSingleChoiceIDParams
NewGetSingleChoiceIDParams creates a new GetSingleChoiceIDParams object
There are no default values defined in the spec.
func (*GetSingleChoiceIDParams) BindRequest ¶
func (o *GetSingleChoiceIDParams) 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 NewGetSingleChoiceIDParams() beforehand.
type GetSingleChoiceIDURL ¶
type GetSingleChoiceIDURL struct {
ID int64
// contains filtered or unexported fields
}
GetSingleChoiceIDURL generates an URL for the get single choice ID operation
func (*GetSingleChoiceIDURL) Build ¶
func (o *GetSingleChoiceIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSingleChoiceIDURL) BuildFull ¶
func (o *GetSingleChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSingleChoiceIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSingleChoiceIDURL) SetBasePath ¶
func (o *GetSingleChoiceIDURL) 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 (*GetSingleChoiceIDURL) String ¶
func (o *GetSingleChoiceIDURL) String() string
String returns the string representation of the path with query string
func (*GetSingleChoiceIDURL) StringFull ¶
func (o *GetSingleChoiceIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSingleChoiceIDURL) WithBasePath ¶
func (o *GetSingleChoiceIDURL) WithBasePath(bp string) *GetSingleChoiceIDURL
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 PostCategory ¶
type PostCategory struct {
Context *middleware.Context
Handler PostCategoryHandler
}
PostCategory swagger:route POST /category/ category postCategory
PostCategory post category API
func NewPostCategory ¶
func NewPostCategory(ctx *middleware.Context, handler PostCategoryHandler) *PostCategory
NewPostCategory creates a new http.Handler for the post category operation
func (*PostCategory) ServeHTTP ¶
func (o *PostCategory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostCategoryCategoryIDMultiChoice ¶
type PostCategoryCategoryIDMultiChoice struct {
Context *middleware.Context
Handler PostCategoryCategoryIDMultiChoiceHandler
}
PostCategoryCategoryIDMultiChoice swagger:route POST /category/{category_id}/multi_choice/ category postCategoryCategoryIdMultiChoice
PostCategoryCategoryIDMultiChoice post category category ID multi choice API
func NewPostCategoryCategoryIDMultiChoice ¶
func NewPostCategoryCategoryIDMultiChoice(ctx *middleware.Context, handler PostCategoryCategoryIDMultiChoiceHandler) *PostCategoryCategoryIDMultiChoice
NewPostCategoryCategoryIDMultiChoice creates a new http.Handler for the post category category ID multi choice operation
func (*PostCategoryCategoryIDMultiChoice) ServeHTTP ¶
func (o *PostCategoryCategoryIDMultiChoice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostCategoryCategoryIDMultiChoiceCreated ¶
type PostCategoryCategoryIDMultiChoiceCreated struct {
/*
In: Body
*/
Payload *models.CategoryMultiChoice `json:"body,omitempty"`
}
PostCategoryCategoryIDMultiChoiceCreated Created
swagger:response postCategoryCategoryIdMultiChoiceCreated
func NewPostCategoryCategoryIDMultiChoiceCreated ¶
func NewPostCategoryCategoryIDMultiChoiceCreated() *PostCategoryCategoryIDMultiChoiceCreated
NewPostCategoryCategoryIDMultiChoiceCreated creates PostCategoryCategoryIDMultiChoiceCreated with default headers values
func (*PostCategoryCategoryIDMultiChoiceCreated) SetPayload ¶
func (o *PostCategoryCategoryIDMultiChoiceCreated) SetPayload(payload *models.CategoryMultiChoice)
SetPayload sets the payload to the post category category Id multi choice created response
func (*PostCategoryCategoryIDMultiChoiceCreated) WithPayload ¶
func (o *PostCategoryCategoryIDMultiChoiceCreated) WithPayload(payload *models.CategoryMultiChoice) *PostCategoryCategoryIDMultiChoiceCreated
WithPayload adds the payload to the post category category Id multi choice created response
func (*PostCategoryCategoryIDMultiChoiceCreated) WriteResponse ¶
func (o *PostCategoryCategoryIDMultiChoiceCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostCategoryCategoryIDMultiChoiceDefault ¶
type PostCategoryCategoryIDMultiChoiceDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
PostCategoryCategoryIDMultiChoiceDefault Error
swagger:response postCategoryCategoryIdMultiChoiceDefault
func NewPostCategoryCategoryIDMultiChoiceDefault ¶
func NewPostCategoryCategoryIDMultiChoiceDefault(code int) *PostCategoryCategoryIDMultiChoiceDefault
NewPostCategoryCategoryIDMultiChoiceDefault creates PostCategoryCategoryIDMultiChoiceDefault with default headers values
func (*PostCategoryCategoryIDMultiChoiceDefault) SetPayload ¶
func (o *PostCategoryCategoryIDMultiChoiceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post category category ID multi choice default response
func (*PostCategoryCategoryIDMultiChoiceDefault) SetStatusCode ¶
func (o *PostCategoryCategoryIDMultiChoiceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post category category ID multi choice default response
func (*PostCategoryCategoryIDMultiChoiceDefault) WithPayload ¶
func (o *PostCategoryCategoryIDMultiChoiceDefault) WithPayload(payload *models.Error) *PostCategoryCategoryIDMultiChoiceDefault
WithPayload adds the payload to the post category category ID multi choice default response
func (*PostCategoryCategoryIDMultiChoiceDefault) WithStatusCode ¶
func (o *PostCategoryCategoryIDMultiChoiceDefault) WithStatusCode(code int) *PostCategoryCategoryIDMultiChoiceDefault
WithStatusCode adds the status to the post category category ID multi choice default response
func (*PostCategoryCategoryIDMultiChoiceDefault) WriteResponse ¶
func (o *PostCategoryCategoryIDMultiChoiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostCategoryCategoryIDMultiChoiceHandler ¶
type PostCategoryCategoryIDMultiChoiceHandler interface {
Handle(PostCategoryCategoryIDMultiChoiceParams, *schemas.User) middleware.Responder
}
PostCategoryCategoryIDMultiChoiceHandler interface for that can handle valid post category category ID multi choice params
type PostCategoryCategoryIDMultiChoiceHandlerFunc ¶
type PostCategoryCategoryIDMultiChoiceHandlerFunc func(PostCategoryCategoryIDMultiChoiceParams, *schemas.User) middleware.Responder
PostCategoryCategoryIDMultiChoiceHandlerFunc turns a function with the right signature into a post category category ID multi choice handler
func (PostCategoryCategoryIDMultiChoiceHandlerFunc) Handle ¶
func (fn PostCategoryCategoryIDMultiChoiceHandlerFunc) Handle(params PostCategoryCategoryIDMultiChoiceParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PostCategoryCategoryIDMultiChoiceParams ¶
type PostCategoryCategoryIDMultiChoiceParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: body
*/
Body *models.CategoryMultiChoice
/*
Required: true
In: path
*/
CategoryID int64
}
PostCategoryCategoryIDMultiChoiceParams contains all the bound params for the post category category ID multi choice operation typically these are obtained from a http.Request
swagger:parameters PostCategoryCategoryIDMultiChoice
func NewPostCategoryCategoryIDMultiChoiceParams ¶
func NewPostCategoryCategoryIDMultiChoiceParams() PostCategoryCategoryIDMultiChoiceParams
NewPostCategoryCategoryIDMultiChoiceParams creates a new PostCategoryCategoryIDMultiChoiceParams object
There are no default values defined in the spec.
func (*PostCategoryCategoryIDMultiChoiceParams) BindRequest ¶
func (o *PostCategoryCategoryIDMultiChoiceParams) 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 NewPostCategoryCategoryIDMultiChoiceParams() beforehand.
type PostCategoryCategoryIDMultiChoiceURL ¶
type PostCategoryCategoryIDMultiChoiceURL struct {
CategoryID int64
// contains filtered or unexported fields
}
PostCategoryCategoryIDMultiChoiceURL generates an URL for the post category category ID multi choice operation
func (*PostCategoryCategoryIDMultiChoiceURL) Build ¶
func (o *PostCategoryCategoryIDMultiChoiceURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostCategoryCategoryIDMultiChoiceURL) BuildFull ¶
func (o *PostCategoryCategoryIDMultiChoiceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostCategoryCategoryIDMultiChoiceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostCategoryCategoryIDMultiChoiceURL) SetBasePath ¶
func (o *PostCategoryCategoryIDMultiChoiceURL) 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 (*PostCategoryCategoryIDMultiChoiceURL) String ¶
func (o *PostCategoryCategoryIDMultiChoiceURL) String() string
String returns the string representation of the path with query string
func (*PostCategoryCategoryIDMultiChoiceURL) StringFull ¶
func (o *PostCategoryCategoryIDMultiChoiceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostCategoryCategoryIDMultiChoiceURL) WithBasePath ¶
func (o *PostCategoryCategoryIDMultiChoiceURL) WithBasePath(bp string) *PostCategoryCategoryIDMultiChoiceURL
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 PostCategoryCategoryIDSingleChoiceGroup ¶
type PostCategoryCategoryIDSingleChoiceGroup struct {
Context *middleware.Context
Handler PostCategoryCategoryIDSingleChoiceGroupHandler
}
PostCategoryCategoryIDSingleChoiceGroup swagger:route POST /category/{category_id}/single_choice_group/ category postCategoryCategoryIdSingleChoiceGroup
PostCategoryCategoryIDSingleChoiceGroup post category category ID single choice group API
func NewPostCategoryCategoryIDSingleChoiceGroup ¶
func NewPostCategoryCategoryIDSingleChoiceGroup(ctx *middleware.Context, handler PostCategoryCategoryIDSingleChoiceGroupHandler) *PostCategoryCategoryIDSingleChoiceGroup
NewPostCategoryCategoryIDSingleChoiceGroup creates a new http.Handler for the post category category ID single choice group operation
func (*PostCategoryCategoryIDSingleChoiceGroup) ServeHTTP ¶
func (o *PostCategoryCategoryIDSingleChoiceGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostCategoryCategoryIDSingleChoiceGroupCreated ¶
type PostCategoryCategoryIDSingleChoiceGroupCreated struct {
/*
In: Body
*/
Payload *models.CategorySingleChoiceGroup `json:"body,omitempty"`
}
PostCategoryCategoryIDSingleChoiceGroupCreated Created
swagger:response postCategoryCategoryIdSingleChoiceGroupCreated
func NewPostCategoryCategoryIDSingleChoiceGroupCreated ¶
func NewPostCategoryCategoryIDSingleChoiceGroupCreated() *PostCategoryCategoryIDSingleChoiceGroupCreated
NewPostCategoryCategoryIDSingleChoiceGroupCreated creates PostCategoryCategoryIDSingleChoiceGroupCreated with default headers values
func (*PostCategoryCategoryIDSingleChoiceGroupCreated) SetPayload ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupCreated) SetPayload(payload *models.CategorySingleChoiceGroup)
SetPayload sets the payload to the post category category Id single choice group created response
func (*PostCategoryCategoryIDSingleChoiceGroupCreated) WithPayload ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupCreated) WithPayload(payload *models.CategorySingleChoiceGroup) *PostCategoryCategoryIDSingleChoiceGroupCreated
WithPayload adds the payload to the post category category Id single choice group created response
func (*PostCategoryCategoryIDSingleChoiceGroupCreated) WriteResponse ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostCategoryCategoryIDSingleChoiceGroupDefault ¶
type PostCategoryCategoryIDSingleChoiceGroupDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
PostCategoryCategoryIDSingleChoiceGroupDefault Error
swagger:response postCategoryCategoryIdSingleChoiceGroupDefault
func NewPostCategoryCategoryIDSingleChoiceGroupDefault ¶
func NewPostCategoryCategoryIDSingleChoiceGroupDefault(code int) *PostCategoryCategoryIDSingleChoiceGroupDefault
NewPostCategoryCategoryIDSingleChoiceGroupDefault creates PostCategoryCategoryIDSingleChoiceGroupDefault with default headers values
func (*PostCategoryCategoryIDSingleChoiceGroupDefault) SetPayload ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post category category ID single choice group default response
func (*PostCategoryCategoryIDSingleChoiceGroupDefault) SetStatusCode ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post category category ID single choice group default response
func (*PostCategoryCategoryIDSingleChoiceGroupDefault) WithPayload ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) WithPayload(payload *models.Error) *PostCategoryCategoryIDSingleChoiceGroupDefault
WithPayload adds the payload to the post category category ID single choice group default response
func (*PostCategoryCategoryIDSingleChoiceGroupDefault) WithStatusCode ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) WithStatusCode(code int) *PostCategoryCategoryIDSingleChoiceGroupDefault
WithStatusCode adds the status to the post category category ID single choice group default response
func (*PostCategoryCategoryIDSingleChoiceGroupDefault) WriteResponse ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostCategoryCategoryIDSingleChoiceGroupHandler ¶
type PostCategoryCategoryIDSingleChoiceGroupHandler interface {
Handle(PostCategoryCategoryIDSingleChoiceGroupParams, *schemas.User) middleware.Responder
}
PostCategoryCategoryIDSingleChoiceGroupHandler interface for that can handle valid post category category ID single choice group params
type PostCategoryCategoryIDSingleChoiceGroupHandlerFunc ¶
type PostCategoryCategoryIDSingleChoiceGroupHandlerFunc func(PostCategoryCategoryIDSingleChoiceGroupParams, *schemas.User) middleware.Responder
PostCategoryCategoryIDSingleChoiceGroupHandlerFunc turns a function with the right signature into a post category category ID single choice group handler
func (PostCategoryCategoryIDSingleChoiceGroupHandlerFunc) Handle ¶
func (fn PostCategoryCategoryIDSingleChoiceGroupHandlerFunc) Handle(params PostCategoryCategoryIDSingleChoiceGroupParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PostCategoryCategoryIDSingleChoiceGroupParams ¶
type PostCategoryCategoryIDSingleChoiceGroupParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: body
*/
Body *models.CategorySingleChoiceGroup
/*
Required: true
In: path
*/
CategoryID int64
}
PostCategoryCategoryIDSingleChoiceGroupParams contains all the bound params for the post category category ID single choice group operation typically these are obtained from a http.Request
swagger:parameters PostCategoryCategoryIDSingleChoiceGroup
func NewPostCategoryCategoryIDSingleChoiceGroupParams ¶
func NewPostCategoryCategoryIDSingleChoiceGroupParams() PostCategoryCategoryIDSingleChoiceGroupParams
NewPostCategoryCategoryIDSingleChoiceGroupParams creates a new PostCategoryCategoryIDSingleChoiceGroupParams object
There are no default values defined in the spec.
func (*PostCategoryCategoryIDSingleChoiceGroupParams) BindRequest ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupParams) 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 NewPostCategoryCategoryIDSingleChoiceGroupParams() beforehand.
type PostCategoryCategoryIDSingleChoiceGroupURL ¶
type PostCategoryCategoryIDSingleChoiceGroupURL struct {
CategoryID int64
// contains filtered or unexported fields
}
PostCategoryCategoryIDSingleChoiceGroupURL generates an URL for the post category category ID single choice group operation
func (*PostCategoryCategoryIDSingleChoiceGroupURL) Build ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostCategoryCategoryIDSingleChoiceGroupURL) BuildFull ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostCategoryCategoryIDSingleChoiceGroupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostCategoryCategoryIDSingleChoiceGroupURL) SetBasePath ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupURL) 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 (*PostCategoryCategoryIDSingleChoiceGroupURL) String ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupURL) String() string
String returns the string representation of the path with query string
func (*PostCategoryCategoryIDSingleChoiceGroupURL) StringFull ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostCategoryCategoryIDSingleChoiceGroupURL) WithBasePath ¶
func (o *PostCategoryCategoryIDSingleChoiceGroupURL) WithBasePath(bp string) *PostCategoryCategoryIDSingleChoiceGroupURL
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 PostCategoryCreated ¶
PostCategoryCreated Created
swagger:response postCategoryCreated
func NewPostCategoryCreated ¶
func NewPostCategoryCreated() *PostCategoryCreated
NewPostCategoryCreated creates PostCategoryCreated with default headers values
func (*PostCategoryCreated) SetPayload ¶
func (o *PostCategoryCreated) SetPayload(payload *models.Category)
SetPayload sets the payload to the post category created response
func (*PostCategoryCreated) WithPayload ¶
func (o *PostCategoryCreated) WithPayload(payload *models.Category) *PostCategoryCreated
WithPayload adds the payload to the post category created response
func (*PostCategoryCreated) WriteResponse ¶
func (o *PostCategoryCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostCategoryDefault ¶
type PostCategoryDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
PostCategoryDefault Error
swagger:response postCategoryDefault
func NewPostCategoryDefault ¶
func NewPostCategoryDefault(code int) *PostCategoryDefault
NewPostCategoryDefault creates PostCategoryDefault with default headers values
func (*PostCategoryDefault) SetPayload ¶
func (o *PostCategoryDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post category default response
func (*PostCategoryDefault) SetStatusCode ¶
func (o *PostCategoryDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post category default response
func (*PostCategoryDefault) WithPayload ¶
func (o *PostCategoryDefault) WithPayload(payload *models.Error) *PostCategoryDefault
WithPayload adds the payload to the post category default response
func (*PostCategoryDefault) WithStatusCode ¶
func (o *PostCategoryDefault) WithStatusCode(code int) *PostCategoryDefault
WithStatusCode adds the status to the post category default response
func (*PostCategoryDefault) WriteResponse ¶
func (o *PostCategoryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostCategoryHandler ¶
type PostCategoryHandler interface {
Handle(PostCategoryParams, *schemas.User) middleware.Responder
}
PostCategoryHandler interface for that can handle valid post category params
type PostCategoryHandlerFunc ¶
type PostCategoryHandlerFunc func(PostCategoryParams, *schemas.User) middleware.Responder
PostCategoryHandlerFunc turns a function with the right signature into a post category handler
func (PostCategoryHandlerFunc) Handle ¶
func (fn PostCategoryHandlerFunc) Handle(params PostCategoryParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PostCategoryParams ¶
type PostCategoryParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: body
*/
Body *models.Category
}
PostCategoryParams contains all the bound params for the post category operation typically these are obtained from a http.Request
swagger:parameters PostCategory
func NewPostCategoryParams ¶
func NewPostCategoryParams() PostCategoryParams
NewPostCategoryParams creates a new PostCategoryParams object
There are no default values defined in the spec.
func (*PostCategoryParams) BindRequest ¶
func (o *PostCategoryParams) 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 NewPostCategoryParams() beforehand.
type PostCategoryURL ¶
type PostCategoryURL struct {
// contains filtered or unexported fields
}
PostCategoryURL generates an URL for the post category operation
func (*PostCategoryURL) Build ¶
func (o *PostCategoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostCategoryURL) BuildFull ¶
func (o *PostCategoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostCategoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostCategoryURL) SetBasePath ¶
func (o *PostCategoryURL) 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 (*PostCategoryURL) String ¶
func (o *PostCategoryURL) String() string
String returns the string representation of the path with query string
func (*PostCategoryURL) StringFull ¶
func (o *PostCategoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostCategoryURL) WithBasePath ¶
func (o *PostCategoryURL) WithBasePath(bp string) *PostCategoryURL
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 PostSingleChoiceGroupGroupIDSingleChoice ¶
type PostSingleChoiceGroupGroupIDSingleChoice struct {
Context *middleware.Context
Handler PostSingleChoiceGroupGroupIDSingleChoiceHandler
}
PostSingleChoiceGroupGroupIDSingleChoice swagger:route POST /single_choice_group/{group_id}/single_choice/ category postSingleChoiceGroupGroupIdSingleChoice
PostSingleChoiceGroupGroupIDSingleChoice post single choice group group ID single choice API
func NewPostSingleChoiceGroupGroupIDSingleChoice ¶
func NewPostSingleChoiceGroupGroupIDSingleChoice(ctx *middleware.Context, handler PostSingleChoiceGroupGroupIDSingleChoiceHandler) *PostSingleChoiceGroupGroupIDSingleChoice
NewPostSingleChoiceGroupGroupIDSingleChoice creates a new http.Handler for the post single choice group group ID single choice operation
func (*PostSingleChoiceGroupGroupIDSingleChoice) ServeHTTP ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostSingleChoiceGroupGroupIDSingleChoiceCreated ¶
type PostSingleChoiceGroupGroupIDSingleChoiceCreated struct {
/*
In: Body
*/
Payload *models.CategorySingleChoice `json:"body,omitempty"`
}
PostSingleChoiceGroupGroupIDSingleChoiceCreated Created
swagger:response postSingleChoiceGroupGroupIdSingleChoiceCreated
func NewPostSingleChoiceGroupGroupIDSingleChoiceCreated ¶
func NewPostSingleChoiceGroupGroupIDSingleChoiceCreated() *PostSingleChoiceGroupGroupIDSingleChoiceCreated
NewPostSingleChoiceGroupGroupIDSingleChoiceCreated creates PostSingleChoiceGroupGroupIDSingleChoiceCreated with default headers values
func (*PostSingleChoiceGroupGroupIDSingleChoiceCreated) SetPayload ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceCreated) SetPayload(payload *models.CategorySingleChoice)
SetPayload sets the payload to the post single choice group group Id single choice created response
func (*PostSingleChoiceGroupGroupIDSingleChoiceCreated) WithPayload ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceCreated) WithPayload(payload *models.CategorySingleChoice) *PostSingleChoiceGroupGroupIDSingleChoiceCreated
WithPayload adds the payload to the post single choice group group Id single choice created response
func (*PostSingleChoiceGroupGroupIDSingleChoiceCreated) WriteResponse ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostSingleChoiceGroupGroupIDSingleChoiceDefault ¶
type PostSingleChoiceGroupGroupIDSingleChoiceDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
PostSingleChoiceGroupGroupIDSingleChoiceDefault Error
swagger:response postSingleChoiceGroupGroupIdSingleChoiceDefault
func NewPostSingleChoiceGroupGroupIDSingleChoiceDefault ¶
func NewPostSingleChoiceGroupGroupIDSingleChoiceDefault(code int) *PostSingleChoiceGroupGroupIDSingleChoiceDefault
NewPostSingleChoiceGroupGroupIDSingleChoiceDefault creates PostSingleChoiceGroupGroupIDSingleChoiceDefault with default headers values
func (*PostSingleChoiceGroupGroupIDSingleChoiceDefault) SetPayload ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post single choice group group ID single choice default response
func (*PostSingleChoiceGroupGroupIDSingleChoiceDefault) SetStatusCode ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post single choice group group ID single choice default response
func (*PostSingleChoiceGroupGroupIDSingleChoiceDefault) WithPayload ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) WithPayload(payload *models.Error) *PostSingleChoiceGroupGroupIDSingleChoiceDefault
WithPayload adds the payload to the post single choice group group ID single choice default response
func (*PostSingleChoiceGroupGroupIDSingleChoiceDefault) WithStatusCode ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) WithStatusCode(code int) *PostSingleChoiceGroupGroupIDSingleChoiceDefault
WithStatusCode adds the status to the post single choice group group ID single choice default response
func (*PostSingleChoiceGroupGroupIDSingleChoiceDefault) WriteResponse ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostSingleChoiceGroupGroupIDSingleChoiceHandler ¶
type PostSingleChoiceGroupGroupIDSingleChoiceHandler interface {
Handle(PostSingleChoiceGroupGroupIDSingleChoiceParams, *schemas.User) middleware.Responder
}
PostSingleChoiceGroupGroupIDSingleChoiceHandler interface for that can handle valid post single choice group group ID single choice params
type PostSingleChoiceGroupGroupIDSingleChoiceHandlerFunc ¶
type PostSingleChoiceGroupGroupIDSingleChoiceHandlerFunc func(PostSingleChoiceGroupGroupIDSingleChoiceParams, *schemas.User) middleware.Responder
PostSingleChoiceGroupGroupIDSingleChoiceHandlerFunc turns a function with the right signature into a post single choice group group ID single choice handler
func (PostSingleChoiceGroupGroupIDSingleChoiceHandlerFunc) Handle ¶
func (fn PostSingleChoiceGroupGroupIDSingleChoiceHandlerFunc) Handle(params PostSingleChoiceGroupGroupIDSingleChoiceParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PostSingleChoiceGroupGroupIDSingleChoiceParams ¶
type PostSingleChoiceGroupGroupIDSingleChoiceParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: body
*/
Body *models.CategorySingleChoice
/*
Required: true
In: path
*/
GroupID int64
}
PostSingleChoiceGroupGroupIDSingleChoiceParams contains all the bound params for the post single choice group group ID single choice operation typically these are obtained from a http.Request
swagger:parameters PostSingleChoiceGroupGroupIDSingleChoice
func NewPostSingleChoiceGroupGroupIDSingleChoiceParams ¶
func NewPostSingleChoiceGroupGroupIDSingleChoiceParams() PostSingleChoiceGroupGroupIDSingleChoiceParams
NewPostSingleChoiceGroupGroupIDSingleChoiceParams creates a new PostSingleChoiceGroupGroupIDSingleChoiceParams object
There are no default values defined in the spec.
func (*PostSingleChoiceGroupGroupIDSingleChoiceParams) BindRequest ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceParams) 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 NewPostSingleChoiceGroupGroupIDSingleChoiceParams() beforehand.
type PostSingleChoiceGroupGroupIDSingleChoiceURL ¶
type PostSingleChoiceGroupGroupIDSingleChoiceURL struct {
GroupID int64
// contains filtered or unexported fields
}
PostSingleChoiceGroupGroupIDSingleChoiceURL generates an URL for the post single choice group group ID single choice operation
func (*PostSingleChoiceGroupGroupIDSingleChoiceURL) Build ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostSingleChoiceGroupGroupIDSingleChoiceURL) BuildFull ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostSingleChoiceGroupGroupIDSingleChoiceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostSingleChoiceGroupGroupIDSingleChoiceURL) SetBasePath ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) 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 (*PostSingleChoiceGroupGroupIDSingleChoiceURL) String ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) String() string
String returns the string representation of the path with query string
func (*PostSingleChoiceGroupGroupIDSingleChoiceURL) StringFull ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostSingleChoiceGroupGroupIDSingleChoiceURL) WithBasePath ¶
func (o *PostSingleChoiceGroupGroupIDSingleChoiceURL) WithBasePath(bp string) *PostSingleChoiceGroupGroupIDSingleChoiceURL
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 PutCategoryID ¶
type PutCategoryID struct {
Context *middleware.Context
Handler PutCategoryIDHandler
}
PutCategoryID swagger:route PUT /category/{id} category putCategoryId
PutCategoryID put category ID API
func NewPutCategoryID ¶
func NewPutCategoryID(ctx *middleware.Context, handler PutCategoryIDHandler) *PutCategoryID
NewPutCategoryID creates a new http.Handler for the put category ID operation
func (*PutCategoryID) ServeHTTP ¶
func (o *PutCategoryID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutCategoryIDDefault ¶
type PutCategoryIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
PutCategoryIDDefault Error
swagger:response putCategoryIdDefault
func NewPutCategoryIDDefault ¶
func NewPutCategoryIDDefault(code int) *PutCategoryIDDefault
NewPutCategoryIDDefault creates PutCategoryIDDefault with default headers values
func (*PutCategoryIDDefault) SetPayload ¶
func (o *PutCategoryIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put category ID default response
func (*PutCategoryIDDefault) SetStatusCode ¶
func (o *PutCategoryIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put category ID default response
func (*PutCategoryIDDefault) WithPayload ¶
func (o *PutCategoryIDDefault) WithPayload(payload *models.Error) *PutCategoryIDDefault
WithPayload adds the payload to the put category ID default response
func (*PutCategoryIDDefault) WithStatusCode ¶
func (o *PutCategoryIDDefault) WithStatusCode(code int) *PutCategoryIDDefault
WithStatusCode adds the status to the put category ID default response
func (*PutCategoryIDDefault) WriteResponse ¶
func (o *PutCategoryIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutCategoryIDHandler ¶
type PutCategoryIDHandler interface {
Handle(PutCategoryIDParams, *schemas.User) middleware.Responder
}
PutCategoryIDHandler interface for that can handle valid put category ID params
type PutCategoryIDHandlerFunc ¶
type PutCategoryIDHandlerFunc func(PutCategoryIDParams, *schemas.User) middleware.Responder
PutCategoryIDHandlerFunc turns a function with the right signature into a put category ID handler
func (PutCategoryIDHandlerFunc) Handle ¶
func (fn PutCategoryIDHandlerFunc) Handle(params PutCategoryIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PutCategoryIDOK ¶
PutCategoryIDOK OK
swagger:response putCategoryIdOK
func NewPutCategoryIDOK ¶
func NewPutCategoryIDOK() *PutCategoryIDOK
NewPutCategoryIDOK creates PutCategoryIDOK with default headers values
func (*PutCategoryIDOK) SetPayload ¶
func (o *PutCategoryIDOK) SetPayload(payload *models.Category)
SetPayload sets the payload to the put category Id o k response
func (*PutCategoryIDOK) WithPayload ¶
func (o *PutCategoryIDOK) WithPayload(payload *models.Category) *PutCategoryIDOK
WithPayload adds the payload to the put category Id o k response
func (*PutCategoryIDOK) WriteResponse ¶
func (o *PutCategoryIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutCategoryIDParams ¶
type PutCategoryIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: body
*/
Body *models.Category
/*
Required: true
In: path
*/
ID int64
}
PutCategoryIDParams contains all the bound params for the put category ID operation typically these are obtained from a http.Request
swagger:parameters PutCategoryID
func NewPutCategoryIDParams ¶
func NewPutCategoryIDParams() PutCategoryIDParams
NewPutCategoryIDParams creates a new PutCategoryIDParams object
There are no default values defined in the spec.
func (*PutCategoryIDParams) BindRequest ¶
func (o *PutCategoryIDParams) 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 NewPutCategoryIDParams() beforehand.
type PutCategoryIDURL ¶
type PutCategoryIDURL struct {
ID int64
// contains filtered or unexported fields
}
PutCategoryIDURL generates an URL for the put category ID operation
func (*PutCategoryIDURL) Build ¶
func (o *PutCategoryIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutCategoryIDURL) BuildFull ¶
func (o *PutCategoryIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutCategoryIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutCategoryIDURL) SetBasePath ¶
func (o *PutCategoryIDURL) 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 (*PutCategoryIDURL) String ¶
func (o *PutCategoryIDURL) String() string
String returns the string representation of the path with query string
func (*PutCategoryIDURL) StringFull ¶
func (o *PutCategoryIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutCategoryIDURL) WithBasePath ¶
func (o *PutCategoryIDURL) WithBasePath(bp string) *PutCategoryIDURL
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 PutMultiChoiceID ¶
type PutMultiChoiceID struct {
Context *middleware.Context
Handler PutMultiChoiceIDHandler
}
PutMultiChoiceID swagger:route PUT /multi_choice/{id} category putMultiChoiceId
PutMultiChoiceID put multi choice ID API
func NewPutMultiChoiceID ¶
func NewPutMultiChoiceID(ctx *middleware.Context, handler PutMultiChoiceIDHandler) *PutMultiChoiceID
NewPutMultiChoiceID creates a new http.Handler for the put multi choice ID operation
func (*PutMultiChoiceID) ServeHTTP ¶
func (o *PutMultiChoiceID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutMultiChoiceIDDefault ¶
type PutMultiChoiceIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
PutMultiChoiceIDDefault Error
swagger:response putMultiChoiceIdDefault
func NewPutMultiChoiceIDDefault ¶
func NewPutMultiChoiceIDDefault(code int) *PutMultiChoiceIDDefault
NewPutMultiChoiceIDDefault creates PutMultiChoiceIDDefault with default headers values
func (*PutMultiChoiceIDDefault) SetPayload ¶
func (o *PutMultiChoiceIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put multi choice ID default response
func (*PutMultiChoiceIDDefault) SetStatusCode ¶
func (o *PutMultiChoiceIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put multi choice ID default response
func (*PutMultiChoiceIDDefault) WithPayload ¶
func (o *PutMultiChoiceIDDefault) WithPayload(payload *models.Error) *PutMultiChoiceIDDefault
WithPayload adds the payload to the put multi choice ID default response
func (*PutMultiChoiceIDDefault) WithStatusCode ¶
func (o *PutMultiChoiceIDDefault) WithStatusCode(code int) *PutMultiChoiceIDDefault
WithStatusCode adds the status to the put multi choice ID default response
func (*PutMultiChoiceIDDefault) WriteResponse ¶
func (o *PutMultiChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutMultiChoiceIDHandler ¶
type PutMultiChoiceIDHandler interface {
Handle(PutMultiChoiceIDParams, *schemas.User) middleware.Responder
}
PutMultiChoiceIDHandler interface for that can handle valid put multi choice ID params
type PutMultiChoiceIDHandlerFunc ¶
type PutMultiChoiceIDHandlerFunc func(PutMultiChoiceIDParams, *schemas.User) middleware.Responder
PutMultiChoiceIDHandlerFunc turns a function with the right signature into a put multi choice ID handler
func (PutMultiChoiceIDHandlerFunc) Handle ¶
func (fn PutMultiChoiceIDHandlerFunc) Handle(params PutMultiChoiceIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PutMultiChoiceIDOK ¶
type PutMultiChoiceIDOK struct {
/*
In: Body
*/
Payload *models.CategoryMultiChoice `json:"body,omitempty"`
}
PutMultiChoiceIDOK OK
swagger:response putMultiChoiceIdOK
func NewPutMultiChoiceIDOK ¶
func NewPutMultiChoiceIDOK() *PutMultiChoiceIDOK
NewPutMultiChoiceIDOK creates PutMultiChoiceIDOK with default headers values
func (*PutMultiChoiceIDOK) SetPayload ¶
func (o *PutMultiChoiceIDOK) SetPayload(payload *models.CategoryMultiChoice)
SetPayload sets the payload to the put multi choice Id o k response
func (*PutMultiChoiceIDOK) WithPayload ¶
func (o *PutMultiChoiceIDOK) WithPayload(payload *models.CategoryMultiChoice) *PutMultiChoiceIDOK
WithPayload adds the payload to the put multi choice Id o k response
func (*PutMultiChoiceIDOK) WriteResponse ¶
func (o *PutMultiChoiceIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutMultiChoiceIDParams ¶
type PutMultiChoiceIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: body
*/
Body *models.CategoryMultiChoice
/*
Required: true
In: path
*/
ID int64
}
PutMultiChoiceIDParams contains all the bound params for the put multi choice ID operation typically these are obtained from a http.Request
swagger:parameters PutMultiChoiceID
func NewPutMultiChoiceIDParams ¶
func NewPutMultiChoiceIDParams() PutMultiChoiceIDParams
NewPutMultiChoiceIDParams creates a new PutMultiChoiceIDParams object
There are no default values defined in the spec.
func (*PutMultiChoiceIDParams) BindRequest ¶
func (o *PutMultiChoiceIDParams) 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 NewPutMultiChoiceIDParams() beforehand.
type PutMultiChoiceIDURL ¶
type PutMultiChoiceIDURL struct {
ID int64
// contains filtered or unexported fields
}
PutMultiChoiceIDURL generates an URL for the put multi choice ID operation
func (*PutMultiChoiceIDURL) Build ¶
func (o *PutMultiChoiceIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutMultiChoiceIDURL) BuildFull ¶
func (o *PutMultiChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutMultiChoiceIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutMultiChoiceIDURL) SetBasePath ¶
func (o *PutMultiChoiceIDURL) 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 (*PutMultiChoiceIDURL) String ¶
func (o *PutMultiChoiceIDURL) String() string
String returns the string representation of the path with query string
func (*PutMultiChoiceIDURL) StringFull ¶
func (o *PutMultiChoiceIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutMultiChoiceIDURL) WithBasePath ¶
func (o *PutMultiChoiceIDURL) WithBasePath(bp string) *PutMultiChoiceIDURL
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 PutSingleChoiceGroupID ¶
type PutSingleChoiceGroupID struct {
Context *middleware.Context
Handler PutSingleChoiceGroupIDHandler
}
PutSingleChoiceGroupID swagger:route PUT /single_choice_group/{id} category putSingleChoiceGroupId
PutSingleChoiceGroupID put single choice group ID API
func NewPutSingleChoiceGroupID ¶
func NewPutSingleChoiceGroupID(ctx *middleware.Context, handler PutSingleChoiceGroupIDHandler) *PutSingleChoiceGroupID
NewPutSingleChoiceGroupID creates a new http.Handler for the put single choice group ID operation
func (*PutSingleChoiceGroupID) ServeHTTP ¶
func (o *PutSingleChoiceGroupID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutSingleChoiceGroupIDDefault ¶
type PutSingleChoiceGroupIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
PutSingleChoiceGroupIDDefault Error
swagger:response putSingleChoiceGroupIdDefault
func NewPutSingleChoiceGroupIDDefault ¶
func NewPutSingleChoiceGroupIDDefault(code int) *PutSingleChoiceGroupIDDefault
NewPutSingleChoiceGroupIDDefault creates PutSingleChoiceGroupIDDefault with default headers values
func (*PutSingleChoiceGroupIDDefault) SetPayload ¶
func (o *PutSingleChoiceGroupIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put single choice group ID default response
func (*PutSingleChoiceGroupIDDefault) SetStatusCode ¶
func (o *PutSingleChoiceGroupIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put single choice group ID default response
func (*PutSingleChoiceGroupIDDefault) WithPayload ¶
func (o *PutSingleChoiceGroupIDDefault) WithPayload(payload *models.Error) *PutSingleChoiceGroupIDDefault
WithPayload adds the payload to the put single choice group ID default response
func (*PutSingleChoiceGroupIDDefault) WithStatusCode ¶
func (o *PutSingleChoiceGroupIDDefault) WithStatusCode(code int) *PutSingleChoiceGroupIDDefault
WithStatusCode adds the status to the put single choice group ID default response
func (*PutSingleChoiceGroupIDDefault) WriteResponse ¶
func (o *PutSingleChoiceGroupIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutSingleChoiceGroupIDHandler ¶
type PutSingleChoiceGroupIDHandler interface {
Handle(PutSingleChoiceGroupIDParams, *schemas.User) middleware.Responder
}
PutSingleChoiceGroupIDHandler interface for that can handle valid put single choice group ID params
type PutSingleChoiceGroupIDHandlerFunc ¶
type PutSingleChoiceGroupIDHandlerFunc func(PutSingleChoiceGroupIDParams, *schemas.User) middleware.Responder
PutSingleChoiceGroupIDHandlerFunc turns a function with the right signature into a put single choice group ID handler
func (PutSingleChoiceGroupIDHandlerFunc) Handle ¶
func (fn PutSingleChoiceGroupIDHandlerFunc) Handle(params PutSingleChoiceGroupIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PutSingleChoiceGroupIDOK ¶
type PutSingleChoiceGroupIDOK struct {
/*
In: Body
*/
Payload *models.CategorySingleChoiceGroup `json:"body,omitempty"`
}
PutSingleChoiceGroupIDOK OK
swagger:response putSingleChoiceGroupIdOK
func NewPutSingleChoiceGroupIDOK ¶
func NewPutSingleChoiceGroupIDOK() *PutSingleChoiceGroupIDOK
NewPutSingleChoiceGroupIDOK creates PutSingleChoiceGroupIDOK with default headers values
func (*PutSingleChoiceGroupIDOK) SetPayload ¶
func (o *PutSingleChoiceGroupIDOK) SetPayload(payload *models.CategorySingleChoiceGroup)
SetPayload sets the payload to the put single choice group Id o k response
func (*PutSingleChoiceGroupIDOK) WithPayload ¶
func (o *PutSingleChoiceGroupIDOK) WithPayload(payload *models.CategorySingleChoiceGroup) *PutSingleChoiceGroupIDOK
WithPayload adds the payload to the put single choice group Id o k response
func (*PutSingleChoiceGroupIDOK) WriteResponse ¶
func (o *PutSingleChoiceGroupIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutSingleChoiceGroupIDParams ¶
type PutSingleChoiceGroupIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: body
*/
Body *models.CategorySingleChoiceGroup
/*
Required: true
In: path
*/
ID int64
}
PutSingleChoiceGroupIDParams contains all the bound params for the put single choice group ID operation typically these are obtained from a http.Request
swagger:parameters PutSingleChoiceGroupID
func NewPutSingleChoiceGroupIDParams ¶
func NewPutSingleChoiceGroupIDParams() PutSingleChoiceGroupIDParams
NewPutSingleChoiceGroupIDParams creates a new PutSingleChoiceGroupIDParams object
There are no default values defined in the spec.
func (*PutSingleChoiceGroupIDParams) BindRequest ¶
func (o *PutSingleChoiceGroupIDParams) 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 NewPutSingleChoiceGroupIDParams() beforehand.
type PutSingleChoiceGroupIDURL ¶
type PutSingleChoiceGroupIDURL struct {
ID int64
// contains filtered or unexported fields
}
PutSingleChoiceGroupIDURL generates an URL for the put single choice group ID operation
func (*PutSingleChoiceGroupIDURL) Build ¶
func (o *PutSingleChoiceGroupIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutSingleChoiceGroupIDURL) BuildFull ¶
func (o *PutSingleChoiceGroupIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutSingleChoiceGroupIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutSingleChoiceGroupIDURL) SetBasePath ¶
func (o *PutSingleChoiceGroupIDURL) 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 (*PutSingleChoiceGroupIDURL) String ¶
func (o *PutSingleChoiceGroupIDURL) String() string
String returns the string representation of the path with query string
func (*PutSingleChoiceGroupIDURL) StringFull ¶
func (o *PutSingleChoiceGroupIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutSingleChoiceGroupIDURL) WithBasePath ¶
func (o *PutSingleChoiceGroupIDURL) WithBasePath(bp string) *PutSingleChoiceGroupIDURL
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 PutSingleChoiceID ¶
type PutSingleChoiceID struct {
Context *middleware.Context
Handler PutSingleChoiceIDHandler
}
PutSingleChoiceID swagger:route PUT /single_choice/{id} category putSingleChoiceId
PutSingleChoiceID put single choice ID API
func NewPutSingleChoiceID ¶
func NewPutSingleChoiceID(ctx *middleware.Context, handler PutSingleChoiceIDHandler) *PutSingleChoiceID
NewPutSingleChoiceID creates a new http.Handler for the put single choice ID operation
func (*PutSingleChoiceID) ServeHTTP ¶
func (o *PutSingleChoiceID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutSingleChoiceIDDefault ¶
type PutSingleChoiceIDDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
PutSingleChoiceIDDefault Error
swagger:response putSingleChoiceIdDefault
func NewPutSingleChoiceIDDefault ¶
func NewPutSingleChoiceIDDefault(code int) *PutSingleChoiceIDDefault
NewPutSingleChoiceIDDefault creates PutSingleChoiceIDDefault with default headers values
func (*PutSingleChoiceIDDefault) SetPayload ¶
func (o *PutSingleChoiceIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put single choice ID default response
func (*PutSingleChoiceIDDefault) SetStatusCode ¶
func (o *PutSingleChoiceIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put single choice ID default response
func (*PutSingleChoiceIDDefault) WithPayload ¶
func (o *PutSingleChoiceIDDefault) WithPayload(payload *models.Error) *PutSingleChoiceIDDefault
WithPayload adds the payload to the put single choice ID default response
func (*PutSingleChoiceIDDefault) WithStatusCode ¶
func (o *PutSingleChoiceIDDefault) WithStatusCode(code int) *PutSingleChoiceIDDefault
WithStatusCode adds the status to the put single choice ID default response
func (*PutSingleChoiceIDDefault) WriteResponse ¶
func (o *PutSingleChoiceIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutSingleChoiceIDHandler ¶
type PutSingleChoiceIDHandler interface {
Handle(PutSingleChoiceIDParams, *schemas.User) middleware.Responder
}
PutSingleChoiceIDHandler interface for that can handle valid put single choice ID params
type PutSingleChoiceIDHandlerFunc ¶
type PutSingleChoiceIDHandlerFunc func(PutSingleChoiceIDParams, *schemas.User) middleware.Responder
PutSingleChoiceIDHandlerFunc turns a function with the right signature into a put single choice ID handler
func (PutSingleChoiceIDHandlerFunc) Handle ¶
func (fn PutSingleChoiceIDHandlerFunc) Handle(params PutSingleChoiceIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PutSingleChoiceIDOK ¶
type PutSingleChoiceIDOK struct {
/*
In: Body
*/
Payload *models.CategorySingleChoice `json:"body,omitempty"`
}
PutSingleChoiceIDOK OK
swagger:response putSingleChoiceIdOK
func NewPutSingleChoiceIDOK ¶
func NewPutSingleChoiceIDOK() *PutSingleChoiceIDOK
NewPutSingleChoiceIDOK creates PutSingleChoiceIDOK with default headers values
func (*PutSingleChoiceIDOK) SetPayload ¶
func (o *PutSingleChoiceIDOK) SetPayload(payload *models.CategorySingleChoice)
SetPayload sets the payload to the put single choice Id o k response
func (*PutSingleChoiceIDOK) WithPayload ¶
func (o *PutSingleChoiceIDOK) WithPayload(payload *models.CategorySingleChoice) *PutSingleChoiceIDOK
WithPayload adds the payload to the put single choice Id o k response
func (*PutSingleChoiceIDOK) WriteResponse ¶
func (o *PutSingleChoiceIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutSingleChoiceIDParams ¶
type PutSingleChoiceIDParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: body
*/
Body *models.CategorySingleChoice
/*
Required: true
In: path
*/
ID int64
}
PutSingleChoiceIDParams contains all the bound params for the put single choice ID operation typically these are obtained from a http.Request
swagger:parameters PutSingleChoiceID
func NewPutSingleChoiceIDParams ¶
func NewPutSingleChoiceIDParams() PutSingleChoiceIDParams
NewPutSingleChoiceIDParams creates a new PutSingleChoiceIDParams object
There are no default values defined in the spec.
func (*PutSingleChoiceIDParams) BindRequest ¶
func (o *PutSingleChoiceIDParams) 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 NewPutSingleChoiceIDParams() beforehand.
type PutSingleChoiceIDURL ¶
type PutSingleChoiceIDURL struct {
ID int64
// contains filtered or unexported fields
}
PutSingleChoiceIDURL generates an URL for the put single choice ID operation
func (*PutSingleChoiceIDURL) Build ¶
func (o *PutSingleChoiceIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutSingleChoiceIDURL) BuildFull ¶
func (o *PutSingleChoiceIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutSingleChoiceIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutSingleChoiceIDURL) SetBasePath ¶
func (o *PutSingleChoiceIDURL) 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 (*PutSingleChoiceIDURL) String ¶
func (o *PutSingleChoiceIDURL) String() string
String returns the string representation of the path with query string
func (*PutSingleChoiceIDURL) StringFull ¶
func (o *PutSingleChoiceIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutSingleChoiceIDURL) WithBasePath ¶
func (o *PutSingleChoiceIDURL) WithBasePath(bp string) *PutSingleChoiceIDURL
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
¶
- delete_category_id.go
- delete_category_id_parameters.go
- delete_category_id_responses.go
- delete_category_id_urlbuilder.go
- delete_multi_choice_id.go
- delete_multi_choice_id_parameters.go
- delete_multi_choice_id_responses.go
- delete_multi_choice_id_urlbuilder.go
- delete_single_choice_group_id.go
- delete_single_choice_group_id_parameters.go
- delete_single_choice_group_id_responses.go
- delete_single_choice_group_id_urlbuilder.go
- delete_single_choice_id.go
- delete_single_choice_id_parameters.go
- delete_single_choice_id_responses.go
- delete_single_choice_id_urlbuilder.go
- get_category.go
- get_category_category_id_multi_choice.go
- get_category_category_id_multi_choice_parameters.go
- get_category_category_id_multi_choice_responses.go
- get_category_category_id_multi_choice_urlbuilder.go
- get_category_category_id_single_choice_group.go
- get_category_category_id_single_choice_group_parameters.go
- get_category_category_id_single_choice_group_responses.go
- get_category_category_id_single_choice_group_urlbuilder.go
- get_category_id.go
- get_category_id_parameters.go
- get_category_id_responses.go
- get_category_id_urlbuilder.go
- get_category_parameters.go
- get_category_responses.go
- get_category_urlbuilder.go
- get_multi_choice_id.go
- get_multi_choice_id_parameters.go
- get_multi_choice_id_responses.go
- get_multi_choice_id_urlbuilder.go
- get_single_choice_group_group_id_single_choice.go
- get_single_choice_group_group_id_single_choice_parameters.go
- get_single_choice_group_group_id_single_choice_responses.go
- get_single_choice_group_group_id_single_choice_urlbuilder.go
- get_single_choice_group_id.go
- get_single_choice_group_id_parameters.go
- get_single_choice_group_id_responses.go
- get_single_choice_group_id_urlbuilder.go
- get_single_choice_id.go
- get_single_choice_id_parameters.go
- get_single_choice_id_responses.go
- get_single_choice_id_urlbuilder.go
- post_category.go
- post_category_category_id_multi_choice.go
- post_category_category_id_multi_choice_parameters.go
- post_category_category_id_multi_choice_responses.go
- post_category_category_id_multi_choice_urlbuilder.go
- post_category_category_id_single_choice_group.go
- post_category_category_id_single_choice_group_parameters.go
- post_category_category_id_single_choice_group_responses.go
- post_category_category_id_single_choice_group_urlbuilder.go
- post_category_parameters.go
- post_category_responses.go
- post_category_urlbuilder.go
- post_single_choice_group_group_id_single_choice.go
- post_single_choice_group_group_id_single_choice_parameters.go
- post_single_choice_group_group_id_single_choice_responses.go
- post_single_choice_group_group_id_single_choice_urlbuilder.go
- put_category_id.go
- put_category_id_parameters.go
- put_category_id_responses.go
- put_category_id_urlbuilder.go
- put_multi_choice_id.go
- put_multi_choice_id_parameters.go
- put_multi_choice_id_responses.go
- put_multi_choice_id_urlbuilder.go
- put_single_choice_group_id.go
- put_single_choice_group_id_parameters.go
- put_single_choice_group_id_responses.go
- put_single_choice_group_id_urlbuilder.go
- put_single_choice_id.go
- put_single_choice_id_parameters.go
- put_single_choice_id_responses.go
- put_single_choice_id_urlbuilder.go