Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.


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

Image Modified

/rest/product/Adds a new product

addProduct(product: ProductDTO)

Parameters:
  • product: Product json (Body)
Image Modified
/rest/productUpdates an existent productupdateProduct(product: ProductDTO)
Parameters:
  • product: Product json (Body)
Image Modified
/rest/product/{productKey}Removes an existent productremoveProduct(productKey : String)
Parameters:
  • productKey: Product primary key  (Path parameter)
Image Modified
/rest/product/{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)
Image Modified
/rest/products/Search for products by criteria

findProductsByCriteria(criteria : ProductCriteria)

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