routes

package
v0.0.0-...-02fbc85 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCategory

func CreateCategory(c *gin.Context)

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

func CreateCreditCard(c *gin.Context)

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

func CreateCustomer(c *gin.Context)

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

func CreateLogin(c *gin.Context)

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

func CreateOrder(c *gin.Context)

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

func CreateOrderProduct(c *gin.Context)

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

func CreatePayment(c *gin.Context)

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

func CreateProduct(c *gin.Context)

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

func CreateShipper(c *gin.Context)

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

func CreateSubcategory(c *gin.Context)

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

func CreateSupplier(c *gin.Context)

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

func DeleteCategoty(c *gin.Context)

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

func DeleteCreditCard(c *gin.Context)

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

func DeleteCustomer(c *gin.Context)

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

func DeleteProduct(c *gin.Context)

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

func DeleteShipper(c *gin.Context)

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

func DeleteSubcategoty(c *gin.Context)

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

func DeleteSupplier(c *gin.Context)

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

func SearchActiveCategory(c *gin.Context)

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

func SearchActiveProducts(c *gin.Context)

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

func SearchActiveSubcategory(c *gin.Context)

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

func SearchCategories(c *gin.Context)

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

func SearchCreditCard(c *gin.Context)

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

func SearchCreditCards(c *gin.Context)

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

func SearchCustomer(c *gin.Context)

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

func SearchCustomers(c *gin.Context)

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

func SearchLogin(c *gin.Context)

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

func SearchLoginDate(c *gin.Context)

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

func SearchOrderProduct(c *gin.Context)

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

func SearchOrderProducts(c *gin.Context)

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

func SearchOrders(c *gin.Context)

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

func SearchPayment(c *gin.Context)

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

func SearchPaymentDate(c *gin.Context)

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

func SearchProducts(c *gin.Context)

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

func SearchShippers(c *gin.Context)

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

func SearchSubcategories(c *gin.Context)

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

func SearchSuppliers(c *gin.Context)

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

func UpdateCategory(c *gin.Context)

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

func UpdateCreditCard(c *gin.Context)

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

func UpdateCustomer(c *gin.Context)

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

func UpdateProduct(c *gin.Context)

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

func UpdateShipper(c *gin.Context)

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

func UpdateSubcategory(c *gin.Context)

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

func UpdateSupplier(c *gin.Context)

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.

Jump to

Keyboard shortcuts

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