REST/MVC Path for Product definition | |||
---|---|---|---|
HTTP Method | Path | Description | Controller Method |
/rest/ |
products/{productKey} | Retrieves product by product key | getProduct(productKey: String) |
Parameters:
| ||
/rest/ |
products/ | Adds a new product | addProduct(product: ProductDTO) |
Parameters:
| ||
/rest/products/ |
{productKey} | Updates an existent product | updateProduct(product: ProductDTO, productKey: String) |
Parameters:
| ||
/rest/ |
products/{productKey} | Removes an existent product | removeProduct(productKey: String) |
Parameters:
| ||
/rest/ |
products/{productKey}/changeVisibility | Changes product visibility | changeVisibility(productKey: String, visible: boolean) | |
Parameters:
| |||
/rest/products/ | Search for products by criteria | findProductsByCriteria(criteria: ProductCriteria) | |
Parameters:
|