Skip to Content
0
Former Member
Aug 22, 2014 at 06:09 AM

What changes should be made to access a product resource containing custom unique attribute using REST calls?

258 Views

I created an extension restwebservices using extgen and selecting ycommercewebservices template. In the items.xml of that extension I added one unique attribute "cfn" directly to existing Product type. Now when I make a rest call to http://localhost:9001/ws410/rest/products/, product details are displayed with URI for a product containing "cfn" value as-http://localhost:9001/ws410/rest/catalogs/powertoolsProductCatalog/catalogversions/Online/products/1101695-test, where "1101695-test" is cfn value . Before making these changes the uri used to be-http://localhost:9001/ws410/rest/catalogs/powertoolsProductCatalog/catalogversions/Online/products/1101695.

But when I hit this particular URI using RESTClient, it returns 404/Not Found. What changes do I need to make to access a product using this updated URI?