I'm creating custom rest API for getting a list of products. In my module, I have just use the getList function of ProductRepository. I need to pass select specific fields in API. so, how can I get that??
Note: In core API, we can get these response using below URL:
I want to pass these fields programmatically.