cancel
Showing results for 
Search instead for 
Did you mean: 

rest call to retrieve list of products in Online catalog version

Former Member
0 Kudos

Is there a way to retrieve only the products in the Online catalog version?

I tried: http://localhost:9001/ws410/rest/products - which retrieves all the products in both Staged and Online versions.

and http://localhost:9001/ws410/rest/catalogs/xyProductCatalog/catalogversions/Online/products - which return 404.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello ,

Just to give you a little bit more information about the Commerce Web Services Extensions (commercewebservicescommons, ycommercewebservices, ycommercewebserviceshmc, and ycommercewebservicestest). To make them work you just need to add those extensions to /config/localextensions.xml and either initialize or update, depending on the case.

Here you have some examples of what you get OOTB:

https://localhost:9002/rest/v2/apparel-uk/catalogs/apparelProductCatalog/Online/categories/tshirts : all tshirts from the Online version of apparelProductCatalog

https://localhost:9002/rest/v2/apparel-uk/catalogs/apparelProductCatalog/Online/categories/sunglasses : all sunglasses from the Online version of apparelProductCatalog

and so forth

And here you can find a lot more examples: https://wiki.hybris.com/display/release5/API+Documentation+Reference

Regards,

Luis

Former Member
0 Kudos

Hello ,

If you are using the Commerce Web Services Extensions (commercewebservicescommons, ycommercewebservices, ycommercewebserviceshmc, and ycommercewebservicestest) then you can use the OOTB REST calls, such as: /products/{productCode}/stock/{storeName}

Here you have the documentation API that has examples of REST calls: https://wiki.hybris.com/display/release5/API+Documentation+Reference

And here you have more information about the Commerce Web Services Extensions: - https://wiki.hybris.com/display/release5/OCC+Architecture+Overview - https://wiki.hybris.com/display/release5/v1+and+v2+in+ycommercewebservices - https://wiki.hybris.com/display/release5/RESTful+Implementation+in+v2

Kind regards,

Luis