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
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