cancel
Showing results for 
Search instead for 
Did you mean: 

Rest API with platformwebservices

Former Member
0 Kudos

Hi ,

I unique id for rest call for Products is by code defined in ProductDTO uidProperties="code". Is there any way i can get it by any other attribute of the product, some thing like name, which may not be unique.

Can you let me know what all need to be done for this if at all i have to implement

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

I think you can implement this by Customizing Resources and DTOs. In the resource part, you can define your own method to retrieve the products.

Yifei

Former Member
0 Kudos

So once I create them should I need to add them to any XML? I mean generated-extension-webservices.xml?

Former Member
0 Kudos

No, you don't need to add them in xml files, because those objects are using annotations. These annotations work the same as xml.