controllers

package
v0.0.0-...-794322a Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SwaggerJSON

func SwaggerJSON(ctx *iris.Context)

Types

type AppAPI

type AppAPI struct {
	*iris.Context
}

func (*AppAPI) Create

func (c *AppAPI) 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 (*AppAPI) Delete

func (c *AppAPI) 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 (*AppAPI) Get

func (c *AppAPI) 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 (*AppAPI) GetByID

func (c *AppAPI) 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 (*AppAPI) Update

func (c *AppAPI) 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 ClassAPI

type ClassAPI struct {
	*iris.Context
}

func (ClassAPI) Create

func (c ClassAPI) Create(ctx *iris.Context)

func (ClassAPI) Delete

func (c ClassAPI) Delete(ctx *iris.Context)

func (ClassAPI) Get

func (c ClassAPI) Get(ctx *iris.Context)

func (ClassAPI) GetAll

func (c ClassAPI) GetAll(ctx *iris.Context)

func (ClassAPI) Update

func (c ClassAPI) Update(ctx *iris.Context)

type ConfigAPI

type ConfigAPI struct {
	*iris.Context
}

func (*ConfigAPI) Get

func (c *ConfigAPI) 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 (*ConfigAPI) Update

func (c *ConfigAPI) 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 EventAPI

type EventAPI struct {
	*iris.Context
}

func (*EventAPI) AppOpened

func (c *EventAPI) AppOpened(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 (*EventAPI) CustomEvent

func (c *EventAPI) CustomEvent(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 (*EventAPI) GetAllEvents

func (c *EventAPI) GetAllEvents(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 FileAPI

type FileAPI struct {
	*iris.Context
	// contains filtered or unexported fields
}

func (*FileAPI) Delete

func (f *FileAPI) Delete(ctx *iris.Context)

func (*FileAPI) Upload

func (f *FileAPI) Upload(ctx *iris.Context)

type FunctionAPI

type FunctionAPI struct {
	*iris.Context
}

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

type HFuncsAPI struct {
	*iris.Context
}

func (*HFuncsAPI) Create

func (c *HFuncsAPI) 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 (*HFuncsAPI) Delete

func (c *HFuncsAPI) 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 (*HFuncsAPI) GetByID

func (c *HFuncsAPI) 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 (*HFuncsAPI) Update

func (c *HFuncsAPI) 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 HTriggerAPI

type HTriggerAPI struct {
	*iris.Context
}

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

type InstallAPI struct {
	*iris.Context
}

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

type PushAPI struct {
	*iris.Context
}

func (*PushAPI) Create

func (c *PushAPI) 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]

type RoleAPI

type RoleAPI struct {
	*iris.Context
}

func (*RoleAPI) Create

func (r *RoleAPI) 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 (*RoleAPI) Delete

func (r *RoleAPI) 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 (*RoleAPI) Get

func (r *RoleAPI) 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 (*RoleAPI) Update

func (r *RoleAPI) 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 SchemaAPI

type SchemaAPI struct {
	*iris.Context
}

func (*SchemaAPI) Create

func (s *SchemaAPI) 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 (*SchemaAPI) Delete

func (s *SchemaAPI) 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 (*SchemaAPI) Get

func (s *SchemaAPI) 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 (*SchemaAPI) GetAll

func (s *SchemaAPI) 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 (*SchemaAPI) GetByID

func (s *SchemaAPI) 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 (*SchemaAPI) Update

func (s *SchemaAPI) 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 SessionAPI

type SessionAPI struct {
	*iris.Context
}

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

type UserAPI struct {
	*iris.Context
}

func (*UserAPI) Delete

func (u *UserAPI) 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 (UserAPI) Get

func (u UserAPI) 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 (*UserAPI) GetAll

func (u *UserAPI) 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 (UserAPI) Login

func (u UserAPI) Login(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 (UserAPI) Logout

func (u UserAPI) Logout(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 (UserAPI) Me

func (u UserAPI) 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 (*UserAPI) ResetPassword

func (u *UserAPI) ResetPassword(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 (UserAPI) Signup

func (u UserAPI) Signup(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 (UserAPI) Update

func (u UserAPI) 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]

Jump to

Keyboard shortcuts

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