Produktmanagement hinzugefügt und kleinere Bug behoben

This commit is contained in:
2026-08-19 17:34:36 +02:00
parent 2774a64edc
commit 468c87b550
14 changed files with 683 additions and 4 deletions
+1
View File
@@ -85,6 +85,7 @@ func InitHttpServer(config *viper.Viper, dbHandler *sql.DB) HttpServer {
router.DELETE("/deleteProduct/:id", productController.DeleteProduct) // delete Product
router.GET("/getProduct/:id", productController.GetProduct) // get Product by id
router.GET("/getProductsByGroupId/:groupId", productController.GetProductsByGroupId) // get all Products by group ID
router.GET("/getPropertiesFromProductId/:productId", productController.GetPropertiesFromProductId) // get Properties from ProductGroup by ID
router.POST("/addPropertyToProductId/:productId", productController.AddPropertyToProductId) // add Property to Product by ID
router.DELETE("/deletePropertyFromProductId/:productId", productController.DeletePropertyFromProductId) // delete Property from Product by ID