cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Is there any OOB OCC API for getting category navigation? In storefront navigationbarcollection component is used, but didn't found any OCC API for same

Former Member

Accepted Solutions (0)

Answers (2)

Answers (2)

abhinavsingh11
Participant
0 Likes

There is a categoryController defined in cmswebservices extension.

If we pass the categoryid and catalog id and version id we can get the list.

/productcatalogs/{catalogId}/versions/{versionId}/categories/{code}

eg. https://localhost:9002/yyywebservices/v2/yyy/catalogs/yyyProductCatalog/Online/categories/1?fields=D...

saood
Participant
0 Likes

In cmswebservice extension, you will find in NavigationController

@Controller @IsAuthorizedCmsManager @RequestMapping(API_VERSION + "/sites/{siteId}/catalogs/{catalogId}/versions/{versionId}/navigations") public class NavigationController

But it will come all, not in a hierarchy way. So, If you want to write in a hierarchy way, you can make a v2 controller.

Former Member
0 Likes

yeah i agree. It has to be customized v2 API , if we want to expose OOB category navigation in form of collection of navigation bar components, and partly this NavigationController approach could be used.