cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Search Criteria Issue

Custom Search Criteria Issue

Hi Guys,

 

I want to add custom attribute on below entity_id. how can I add using the below API endpoint

http://domain.com/index.php/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=cat...

 

Please let me know. 

2 REPLIES 2

Re: Custom Search Criteria Issue

Hello @gkarthick87 ,
Please check the below link for how to add custom attributes in the API,

 

https://www.atwix.com/magento-2/adding-custom-attribute-to-api-response-in-magento-2/ 

Thank You.

Re: Custom Search Criteria Issue

Thanks for your reply but I already used this method and the result is coming under extension attributes but my question is I want to add below entity id and I need to add sort function as well along with this.