Documentation ¶
Index ¶
- func CreateCategory(c *gin.Context)
- func CreateCreditCard(c *gin.Context)
- func CreateCustomer(c *gin.Context)
- func CreateLogin(c *gin.Context)
- func CreateOrder(c *gin.Context)
- func CreateOrderProduct(c *gin.Context)
- func CreatePayment(c *gin.Context)
- func CreateProduct(c *gin.Context)
- func CreateShipper(c *gin.Context)
- func CreateSubcategory(c *gin.Context)
- func CreateSupplier(c *gin.Context)
- func DeleteCategoty(c *gin.Context)
- func DeleteCreditCard(c *gin.Context)
- func DeleteCustomer(c *gin.Context)
- func DeleteProduct(c *gin.Context)
- func DeleteShipper(c *gin.Context)
- func DeleteSubcategoty(c *gin.Context)
- func DeleteSupplier(c *gin.Context)
- func SearchActiveCategory(c *gin.Context)
- func SearchActiveProducts(c *gin.Context)
- func SearchActiveSubcategory(c *gin.Context)
- func SearchCategories(c *gin.Context)
- func SearchCreditCard(c *gin.Context)
- func SearchCreditCards(c *gin.Context)
- func SearchCustomer(c *gin.Context)
- func SearchCustomers(c *gin.Context)
- func SearchLogin(c *gin.Context)
- func SearchLoginDate(c *gin.Context)
- func SearchOrderProduct(c *gin.Context)
- func SearchOrderProducts(c *gin.Context)
- func SearchOrders(c *gin.Context)
- func SearchPayment(c *gin.Context)
- func SearchPaymentDate(c *gin.Context)
- func SearchProducts(c *gin.Context)
- func SearchShippers(c *gin.Context)
- func SearchSubcategories(c *gin.Context)
- func SearchSuppliers(c *gin.Context)
- func UpdateCategory(c *gin.Context)
- func UpdateCreditCard(c *gin.Context)
- func UpdateCustomer(c *gin.Context)
- func UpdateProduct(c *gin.Context)
- func UpdateShipper(c *gin.Context)
- func UpdateSubcategory(c *gin.Context)
- func UpdateSupplier(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCategory ¶
CreateCategory godoc @Summary Create Category @Description Create a Category @Accept json @Produce json @Tags Categories @Param category body schemas.Category true "Category type" @Success 200 {object} schemas.CategoryResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /categories [post]
func CreateCreditCard ¶
CreateCreditCard godoc @Summary Create creditcard @Description Create a CreditCard @Accept json @Produce json @Tags CreditCards @Param creditcard body schemas.CreditCard true "CreditCard a subcategory" @Success 200 {object} schemas.CreditCardResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /creditcard [post]
func CreateCustomer ¶
CreateCustomer godoc @Summary Create Customer @Description Create a Customer @Accept json @Produce json @Tags Customers @Param customer body schemas.Customer true "Customer type" @Success 200 {object} schemas.CustomerResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /customers [post]
func CreateLogin ¶
CreateLogin godoc @Summary Create Login @Description Create a Login @Accept json @Produce json @Tags Login @Param login body schemas.Login true "Login type" @Success 200 {object} schemas.LoginResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /login [post]
func CreateOrder ¶
CreateOrder godoc @Summary Create Order @Description Create a Order @Accept json @Produce json @Tags Orders @Param order body schemas.Order true "Order type" @Success 200 {object} schemas.OrderResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /orders [post]
func CreateOrderProduct ¶
CreateOrderProduct godoc @Summary Create OrderProduct @Description Create a OrderProduct @Accept json @Produce json @Tags OrderProducts @Param orderproduct body schemas.OrderProduct true "OrderProduct type" @Success 200 {object} schemas.OrderProductResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /orderproducts [post]
func CreatePayment ¶
CreatePayment godoc @Summary Create Payment @Description Create a Payment @Accept json @Produce json @Tags Payments @Param payment body schemas.Payment true "Payment type" @Success 200 {object} schemas.PaymentResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /payments [post]
func CreateProduct ¶
CreateProduct godoc @Summary Create Product @Description Create a Product @Accept json @Produce json @Tags Products @Param product body schemas.Product true "Product type" @Success 200 {object} schemas.ProductResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /products [post]
func CreateShipper ¶
CreateShipper godoc @Summary Create Shipper @Description Create a Shipper @Accept json @Produce json @Tags Shippers @Param shipper body schemas.Shipper true "Shipper type" @Success 200 {object} schemas.ShipperResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /shippers [post]
func CreateSubcategory ¶
CreateSubcategory godoc @Summary Create Subcategory @Description Create a Subcategory @Accept json @Produce json @Tags Subcategories @Param subcategory body schemas.Subcategory true "Create a subcategory" @Success 200 {object} schemas.SubcategoryResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /subcategories [post]
func CreateSupplier ¶
CreateSupplier godoc @Summary Create Supplier @Description Create a Supplier @Accept json @Produce json @Tags Suppliers @Param supplier body schemas.Supplier true "Supplier type" @Success 200 {object} schemas.SupplierResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /suppliers [post]
func DeleteCategoty ¶
DeleteCategory godoc @Summary Delete Category by id @Description Delete a category by id @Accept json @Produce json @Tags Categories @Param id path string true "Category ID" example(5dd1f36f-1627-4c88-98fb-601feb9634be) @Success 204 @Failure 404 {object} models.APIError "Can not find objects" @Router /categories/{id} [delete]
func DeleteCreditCard ¶
DeleteCreditCard godoc @Summary Delete CreditCard by id @Description Delete a credit card by id @Accept json @Produce json @Tags CreditCards @Param id path string true "CreditCard ID" example(5cc1f36f-1287-4c88-63fb-601feb9634be) @Success 204 @Failure 404 {object} models.APIError "Can not find objects" @Router /creditcard/{id} [delete]
func DeleteCustomer ¶
DeleteCustomer godoc @Summary Delete Customer by id @Description Delete a customer by id @Accept json @Produce json @Tags Customers @Param id path string true "Customer ID" example(5dd1f36f-1627-4c88-98fb-601feb9634be) @Success 204 @Failure 404 {object} models.APIError "Can not find objects" @Router /customers/{id} [delete]
func DeleteProduct ¶
DeleteProduct godoc @Summary Delete a Product by id @Description Delete a product by id @Accept json @Produce json @Tags Products @Param id path string true "Product ID" example(2ld1f12f-2227-8s08-18cc-222fdb9634x) @Success 204 @Failure 404 {object} models.APIError "Can not find objects" @Router /products/{id} [delete]
func DeleteShipper ¶
DeleteShipper godoc @Summary Delete Shipper by id @Description Delete a shipper by id @Accept json @Produce json @Tags Shippers @Param id path string true "Shipper ID" example(5dd1f36f-1627-4c88-98fb-601feb9634be) @Success 204 @Failure 404 {object} models.APIError "Can not find objects" @Router /shippers/{id} [delete]
func DeleteSubcategoty ¶
DeleteSubcategory godoc @Summary Delete a Subcategory by id @Description Delete a subcategory by id @Accept json @Produce json @Tags Subcategories @Param id path string true "Subcategory ID" example(2ld1f12f-2227-8s08-18cc-222fdb9634xx) @Success 204 @Failure 404 {object} models.APIError "Can not find objects" @Router /subcategories/{id} [delete]
func DeleteSupplier ¶
DeleteSupplier godoc @Summary Delete Supplier by id @Description Delete a supplier by id @Accept json @Produce json @Tags Suppliers @Param id path string true "Supplier ID" example(2ld1f12f-2227-8s08-18cc-222fdb9634x) @Success 204 @Failure 404 {object} models.APIError "Can not find objects" @Router /suppliers/{id} [delete]
func SearchActiveCategory ¶
SearchCategory godoc @Summary Search all active Categories @Description Search active categories in the DataBase @Accept json @Produce json @Tags Categories @Success 200 {object} []schemas.CategoryResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /categories/active [get]
func SearchActiveProducts ¶
SearchActiveProducts godoc @Summary Search all active Products @Description Search all active products in the DataBase @Accept json @Produce json @Tags Products @Success 200 {object} []schemas.ProductResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /products/active [get]
func SearchActiveSubcategory ¶
SearchActiveSubcategory godoc @Summary Search all active Subcategories @Description Search all active categories in the DataBase @Accept json @Produce json @Tags Subcategories @Success 200 {object} []schemas.SubcategoryResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /subcategories/active [get]
func SearchCategories ¶
SearchCategories godoc @Summary Search all Categories @Description Search all catagories in the DataBase @Accept json @Produce json @Tags Categories @Success 200 {object} []schemas.CategoryResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /categories [get]
func SearchCreditCard ¶
SearchCreditCard godoc @Summary Search CreditCard by id @Description Search CreditCard by id in the DataBase @Accept json @Produce json @Tags CreditCards @Param id path string true "CreditCard ID" example(5cc1f36f-1287-4c88-63fb-601feb9634be) @Success 200 {object} []schemas.CreditCardResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /creditcard/{id} [get]
func SearchCreditCards ¶
SearchCreditCards godoc @Summary Search all SearchCreditCards @Description Search all credit cards in the DataBase @Accept json @Produce json @Tags CreditCards @Success 200 {object} []schemas.CreditCardResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /creditcard [get]
func SearchCustomer ¶
SearchCustomer godoc @Summary Search Customer by id @Description Search Customer by id in the DataBase @Accept json @Produce json @Tags Customers @Param id path string true "Customer ID" example(5dd1f36f-1627-4c88-98fb-601feb9634be) @Success 200 {object} []schemas.CustomerResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /customers/{id} [get]
func SearchCustomers ¶
SearchAllCustomers godoc @Summary Search all Customers @Description Search all customers in the DataBase @Accept json @Produce json @Tags Customers @Success 200 {object} []schemas.CustomerResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /customers [get]
func SearchLogin ¶
SearchLogin godoc @Summary Search Login by Customer id @Description Search Login by customer id in the DataBase @Accept json @Produce json @Tags Login @Param id path string true "Login ID" example(5dd1f36f-1627-4c88-98fb-601feb9634be) @Success 200 {object} []schemas.LoginResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /login/{id} [get]
func SearchLoginDate ¶
SearchLoginDate godoc @Summary Search Login by Date @Description Search Login by date in the DataBase @Accept json @Produce json @Tags Login @Param date path string true "Login date" example(2006-01-02) @Success 200 {object} []schemas.LoginResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /login/date/{date} [get]
func SearchOrderProduct ¶
SearchOrderProduct godoc @Summary Search OrderProduct by id @Description Search OrderProduct by id in the DataBase @Accept json @Produce json @Tags OrderProducts @Param id path string true "OrderProduct ID" example(5dd1f36f-1627-4c88-98fb-601feb9634be) @Success 200 {object} []schemas.OrderProductResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /orderproducts/{id} [get]
func SearchOrderProducts ¶
SearchOrderProducts godoc @Summary Search all OrderProducts @Description Search all orderproducts in the DataBase @Accept json @Produce json @Tags OrderProducts @Success 200 {object} []schemas.OrderProductResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /orderproducts [get]
func SearchOrders ¶
SearchOrders godoc @Summary Search all Orders @Description Search all orders in the DataBase @Accept json @Produce json @Tags Orders @Success 200 {object} []schemas.OrderResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /orders [get]
func SearchPayment ¶
SearchPayment godoc @Summary Search Payment by Customer id @Description Search Payment by id in the DataBase @Accept json @Produce json @Tags Payments @Param id path string true "Payment ID" example(2ld1f12f-2227-8s08-18cc-222fdb9634xx) @Success 200 {object} []schemas.PaymentResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /payments/{id} [get]
func SearchPaymentDate ¶
SearchPaymentDate godoc @Summary Search Payments by Date @Description Search Payments by date in the DataBase @Accept json @Produce json @Tags Payments @Param date path string true "Payment date" example(2006-01-02) @Success 200 {object} []schemas.PaymentResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /payments/date/{date} [get]
func SearchProducts ¶
SearchAllProducts godoc @Summary Search all Products @Description Search all products in the DataBase @Accept json @Produce json @Tags Products @Success 200 {object} []schemas.ProductResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /products [get]
func SearchShippers ¶
SearchShippers godoc @Summary Search all Shippers @Description Search all shippers in the DataBase @Accept json @Produce json @Tags Shippers @Success 200 {object} []schemas.ShipperResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /shippers [get]
func SearchSubcategories ¶
SearchAllSubcategories godoc @Summary Search all Subcategories @Description Search all subcatagories in the DataBase @Accept json @Produce json @Tags Subcategories @Success 200 {object} []schemas.SubcategoryResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /subcategories [get]
func SearchSuppliers ¶
SearchAllSuppliers godoc @Summary Search all Suppliers @Description Search all suppliers in the DataBase @Accept json @Produce json @Tags Suppliers @Success 200 {object} []schemas.SupplierResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /suppliers [get]
func UpdateCategory ¶
UpdateCategory godoc @Summary Update Category by id @Description Update a category by id @Accept json @Produce json @Tags Categories @Param id path string true "Category ID" example(5dd1f36f-1627-4c88-98fb-601feb9634be) @Param Category body schemas.Category true "Update category" @Success 204 {object} schemas.CategoryResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /categories/{id} [patch]
func UpdateCreditCard ¶
UpdateCreditCard godoc @Summary Update CreditCard by id @Description Update a credit card by id @Accept json @Produce json @Tags CreditCards @Param id path string true "CreditCard ID" example(5cc1f36f-1287-4c88-63fb-601feb9634be) @Param CreditCard body schemas.CreditCard true "Update CreditCard" @Success 204 {object} schemas.CreditCardResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /creditcard/{id} [patch]
func UpdateCustomer ¶
UpdateCustomer godoc @Summary Update Customer by id @Description Update a customer by id @Accept json @Produce json @Tags Customers @Param id path string true "Customer ID" example(5dd1f36f-1627-4c88-98fb-601feb9634be) @Param Customer body schemas.Customer true "Update Customer" @Success 204 {object} schemas.CustomerResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /customers/{id} [patch]
func UpdateProduct ¶
UpdateProduct godoc @Summary Update Product by id @Description Update a product by id @Accept json @Produce json @Tags Products @Param id path string true "Product ID" example(2ld1f12f-2227-8s08-18cc-222fdb9634x) @Param Product body schemas.Product true "Update Product" @Success 204 {object} schemas.ProductResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /products/{id} [patch]
func UpdateShipper ¶
UpdateShipper godoc @Summary Update Shipper by id @Description Update a shipper by id @Accept json @Produce json @Tags Shippers @Param id path string true "Shipper ID" example(5dd1f36f-1627-4c88-98fb-601feb9634be) @Param Shipper body schemas.Shipper true "Update Shipper" @Success 204 {object} schemas.ShipperResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /shippers/{id} [patch]
func UpdateSubcategory ¶
UpdateSubcategory godoc @Summary Update Subcategory by id @Description Update a subcategory by id @Accept json @Produce json @Tags Subcategories @Param id path string true "Subcategory ID" example(2ld1f12f-2227-8s08-18cc-222fdb9634xx) @Param Subcategory body schemas.Subcategory true "Update Subcategory" @Success 204 {object} schemas.SubcategoryResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /subcategories/{id} [patch]
func UpdateSupplier ¶
UpdateSupplier godoc @Summary Update Supplier by id @Description Update a supplier by id @Accept json @Produce json @Tags Suppliers @Param id path string true "Supplier ID" example(2ld1f12f-2227-8s08-18cc-222fdb9634x) @Param Supplier body schemas.Supplier true "Update Supplier" @Success 204 {object} schemas.SupplierResponse @Failure 404 {object} models.APIError "Can not find objects" @Router /suppliers/{id} [patch]
Types ¶
This section is empty.