Class CatalogsController
java.lang.Object
de.hybris.platform.ycommercewebservices.v1.controller.BaseController
de.hybris.platform.ycommercewebservices.v1.controller.CatalogsController
@Controller("catalogsControllerV1")
@RequestMapping("/{baseSiteId}/catalogs")
public class CatalogsController
extends BaseController
-
Field Summary
Fields inherited from class de.hybris.platform.ycommercewebservices.v1.controller.BaseController
DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCatalog(String id, String options) getCatalogs(String options) getCatalogVersion(String catalogId, String catalogVersionId, String options) getCategories(String catalogId, String catalogVersionId, String category, String options, int currentPage, int pageSize) protected Set<CatalogOption>getOptions(String options) Methods inherited from class de.hybris.platform.ycommercewebservices.v1.controller.BaseController
handleErrorInternal, handleModelNotFoundException, sanitize
-
Constructor Details
-
CatalogsController
public CatalogsController()
-
-
Method Details
-
getCatalogs
@RequestMapping(method=GET) @ResponseBody public CatalogsData getCatalogs(@RequestParam(required=false,defaultValue="BASIC") String options) -
getCatalog
@RequestMapping(value="/{id}", method=GET) @ResponseBody public CatalogData getCatalog(@PathVariable String id, @RequestParam(required=false,defaultValue="BASIC") String options) -
getCatalogVersion
@RequestMapping(value="/{catalogId}/{catalogVersionId}", method=GET) @ResponseBody public CatalogVersionData getCatalogVersion(@PathVariable String catalogId, @PathVariable String catalogVersionId, @RequestParam(required=false,defaultValue="BASIC") String options) -
getCategories
@RequestMapping(value="/{catalogId}/{catalogVersionId}/categories/{category}", method=GET) @ResponseBody public CategoryHierarchyData getCategories(@PathVariable String catalogId, @PathVariable String catalogVersionId, @PathVariable String category, @RequestParam(required=false,defaultValue="BASIC") String options, @RequestParam(required=false,defaultValue="0") int currentPage, @RequestParam(required=false,defaultValue="2147483647") int pageSize) -
getOptions
-