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 Category definition
HTTP MethodPathDescriptionController Method
Image Modified
/rest/
category
categories/{categoryKey}Retrieves category by category keygetCategory(categoryKey: String)
Parameters:
  • categoryKey: Category primary key  (Path parameter)

Image Modified

/rest/
category
categories/Adds a new category

addCategory(category: CategoryDTO)

Parameters:
  • category: Category json (Multipart Body)
Image Removed
  • image: Category image  (Multipart Body)
Image Added
/rest/categories/
category
{categoryKey}Updates an existent categoryupdateCategory(category: CategoryDTO, categoryKey : String)
Parameters:
  • category: Category json (Multipart Body)
  • image: Category image  (Multipart Body)
  • categoryKey: Category primary key  (Path parameter)

(estrella) Defined as POST instead of PUT due incompatibilities between PUT / Multipart

Image Modified/rest/
category
categories/{categoryKey}Removes an existent categoryremoveCategory(categoryKey: String)
Parameters:
  • categoryKey: Category primary key  (Path parameter)
Image Modified
/rest/
category
categories/{categoryKey}/changeVisibilityChanges category visibilitychangeVisibility(key: String, visible: boolean)
Parameters:
  • categoryKey: Category primary key (Path parameter)
  • visible: Indicates if category must be visible or not (Body param)
Image Modified
/rest/
category
categories/{categoryKey}/productsSet associated products for a categoryupdateCategoryProducts(categoryKey : String, productKeys : String)
Parameters:
  • categoryKey: Category primary key (Path parameter)
  • productKeys: Lists of associated products of a category (Body param)
Image Modified
/rest/categories/Search for categories by criteria

findCategoriesByCriteria(criteria : CategoryCriteria)

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