I have one custom table 'vendor_info' with 5 fields and I want to add this table data along with this API http://www.hostname.com/rest/V1/products?searchCriteria


You can achieve it using 2 ways

  1. Search Criteria join processors

  2. Adding extension attributes , you can write after plugin get and getList methods to get value corresponding value of vendor_info for the products and set extension attribute to them

You can get detail reference from these links Reference 1 Reference 2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.