on 11-04-2015 9:13 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.