package
0.0.0-20230104205946-ae0a14b3ab99
Repository: https://github.com/alexandrehardyy/goproject.git
Documentation: pkg.go.dev
# Functions
CheckError godoc @Summary Check error @Description Check error @Tags products @Accept json @Produce json @Success 200 {object} Product @Router /products/{id} [put].
CreatePayment godoc @Summary Create a payment @Description Create a payment @Tags payments @Accept json @Produce json @Success 200 {object} Payment @Router /payments [post].
CreateProduct godoc @Summary Create a product @Description Create a product @Tags products @Accept json @Produce json @Success 200 {object} Product @Router /products [post].
DeletePayment godoc @Summary Delete a payment @Description Delete a payment @Tags payments @Accept json @Produce json @Success 200 {object} Payment @Router /payments/{id} [delete].
DeleteProduct godoc @Summary Delete a product @Description Delete a product @Tags products @Accept json @Produce json @Success 200 {object} Product @Router /products/{id} [delete].
GetAllPayment godoc @Summary Get all payments @Description Get all payments @Tags payments @Accept json @Produce json @Success 200 {object} Payment @Router /payments [get].
GetAllProduct godoc @Summary Get all products @Description Get all products @Tags products @Accept json @Produce json @Success 200 {object} Product @Router /products [get].
GetByIdPayment godoc @Summary Get a payment @Description Get a payment @Tags payments @Accept json @Produce json @Success 200 {object} Payment @Router /payments/{id} [get].
GetByIdProduct godoc @Summary Get products by id @Description Get products by id @Tags products @Accept json @Produce json @Success 200 {object} Product @Router /products/{id} [get].
Stream godoc @Summary Stream payments @Description Stream payments @Tags payments @Accept json @Produce json @Success 200 {object} Payment @Router /payments/stream [get].
UpdatePayment godoc @Summary Update a payment @Description Update a payment @Tags payments @Accept json @Produce json @Success 200 {object} Payment @Router /payments/{id} [put].
UpdateProduct godoc @Summary Update a product @Description Update a product @Tags products @Accept json @Produce json @Success 200 {object} Product @Router /products/{id} [put].