/
REST/MVC Products Controller

REST/MVC Products Controller


REST/MVC Path for Product definition
HTTP MethodPathDescriptionController Method
/rest/products/{productKey}Retrieves product by product keygetProduct(productKey: String)
Parameters:
  • productKey: Product primary key  (Path parameter)

/rest/products/Adds a new product

addProduct(product: ProductDTO)

Parameters:
  • product: Product json (Body)
/rest/products/{productKey}Updates an existent productupdateProduct(product: ProductDTO, productKey: String)
Parameters:
  • product: Product json (Body)
  • productKey: Product primary key  (Path parameter)
/rest/products/{productKey}Removes an existent productremoveProduct(productKey: String)
Parameters:
  • productKey: Product primary key  (Path parameter)
/rest/products/{productKey}/changeVisibilityChanges product visibilitychangeVisibility(productKey: String, visible: boolean)
Parameters:
  • productKey: Productprimary key (Path parameter)
  • visible: Indicates if product must be visible or not (Body param)
/rest/products/Search for products by criteria

findProductsByCriteria(criteria: ProductCriteria)

Parameters:
  • criteria: Criteria filter json (Body parameter)



Avvale 2024