How to get Products List in an API with Custom fields added

Broadleaf Commerce Discussion Forum

Moderator: jocanas

ramsunder
Newbie
Newbie
Posts: 1
Joined: Tue Mar 21, 2017 11:02 pm

How to get Products List in an API with Custom fields added

Postby ramsunder » Wed Mar 22, 2017 11:02 am

Hi,

I am using Broadleaf - 5.0.1 GA

I have created a custom class named CustomProductImpl extending ProductImpl and added a field warranty

and I have also created a CustomProductWrapper extending ProductWrapper and mentioned in applicationcontext.xml, I am also able to get a Product data with warranty when I call the following ProductDetailAPI

http://localhost:8080/api/v1/catalog/product/{PRODUCTID}

My question here is how can I get list of Products with customfield (warranty) extending any of the ProductListingAPI.

I tried creating a new Rest Client API for that and I dont know whether its a correct approach and I failed getting StackOverflow error.

Please guide me on this

Return to “Broadleaf Commerce”

Who is online

Users browsing this forum: No registered users and 3 guests