Documentation ¶
Index ¶
- func SwaggerJSON(ctx *iris.Context)
- type AppAPI
- type ClassAPI
- type ConfigAPI
- type EventAPI
- type FileAPI
- type FunctionAPI
- type HFuncsAPI
- type HTriggerAPI
- type InstallAPI
- type PushAPI
- type RoleAPI
- type SchemaAPI
- type SessionAPI
- type UserAPI
- func (u *UserAPI) Delete(ctx *iris.Context)
- func (u UserAPI) Get(ctx *iris.Context)
- func (u *UserAPI) GetAll(ctx *iris.Context)
- func (u UserAPI) Login(ctx *iris.Context)
- func (u UserAPI) Logout(ctx *iris.Context)
- func (u UserAPI) Me(ctx *iris.Context)
- func (u *UserAPI) ResetPassword(ctx *iris.Context)
- func (u UserAPI) Signup(ctx *iris.Context)
- func (u UserAPI) Update(ctx *iris.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SwaggerJSON ¶
Types ¶
type AppAPI ¶
func (*AppAPI) Create ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*AppAPI) Delete ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*AppAPI) Get ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*AppAPI) GetByID ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*AppAPI) Update ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type ConfigAPI ¶
func (*ConfigAPI) Get ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*ConfigAPI) Update ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type EventAPI ¶
func (*EventAPI) AppOpened ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*EventAPI) CustomEvent ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*EventAPI) GetAllEvents ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type FunctionAPI ¶
func (*FunctionAPI) ExecuteFunc ¶
func (c *FunctionAPI) ExecuteFunc(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*FunctionAPI) TriggerJob ¶
func (c *FunctionAPI) TriggerJob(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type HFuncsAPI ¶
func (*HFuncsAPI) Create ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*HFuncsAPI) Delete ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*HFuncsAPI) GetByID ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*HFuncsAPI) Update ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type HTriggerAPI ¶
func (*HTriggerAPI) Create ¶
func (c *HTriggerAPI) Create(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*HTriggerAPI) Delete ¶
func (c *HTriggerAPI) Delete(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*HTriggerAPI) GetByID ¶
func (c *HTriggerAPI) GetByID(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*HTriggerAPI) Update ¶
func (c *HTriggerAPI) Update(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type InstallAPI ¶
func (*InstallAPI) Create ¶
func (c *InstallAPI) Create(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*InstallAPI) Delete ¶
func (c *InstallAPI) Delete(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*InstallAPI) Get ¶
func (c *InstallAPI) Get(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*InstallAPI) GetAll ¶
func (c *InstallAPI) GetAll(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*InstallAPI) GetByID ¶
func (c *InstallAPI) GetByID(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*InstallAPI) Update ¶
func (c *InstallAPI) Update(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type PushAPI ¶
func (*PushAPI) Create ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type RoleAPI ¶
func (*RoleAPI) Create ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*RoleAPI) Delete ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*RoleAPI) Get ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*RoleAPI) Update ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type SchemaAPI ¶
func (*SchemaAPI) Create ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*SchemaAPI) Delete ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*SchemaAPI) Get ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*SchemaAPI) GetAll ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*SchemaAPI) GetByID ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*SchemaAPI) Update ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type SessionAPI ¶
func (SessionAPI) Create ¶
func (u SessionAPI) Create(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*SessionAPI) Delete ¶
func (u *SessionAPI) Delete(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (SessionAPI) Get ¶
func (u SessionAPI) Get(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*SessionAPI) GetAll ¶
func (u *SessionAPI) GetAll(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (SessionAPI) Me ¶
func (u SessionAPI) Me(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (SessionAPI) Update ¶
func (u SessionAPI) Update(ctx *iris.Context)
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
type UserAPI ¶
func (*UserAPI) Delete ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (UserAPI) Get ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*UserAPI) GetAll ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (UserAPI) Login ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (UserAPI) Logout ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (UserAPI) Me ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (*UserAPI) ResetPassword ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (UserAPI) Signup ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]
func (UserAPI) Update ¶
@Title getOrdersByCustomer @Description retrieves orders for given customer defined by customer ID @Accept json @Param customer_id path int true "Customer ID" @Param order_id query int false "Retrieve order with given ID only" @Param order_nr query string false "Retrieve order with given number only" @Param created_from query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created starting from created_from" @Param created_to query string false "Date-time string, MySQL format. If specified, API will retrieve orders that were created before created_to" @Success 200 {array} my_api.model.OrderRow @Failure 400 {object} my_api.ErrorResponse "Customer ID must be specified" @Resource /order @Router /orders/by-customer/{customer_id} [get]