I want to get the information from an specific product.
I am using this reference in this moment, and get all the products in given searchCriteria:
http://www.mysite.co/rest/V1/products-render-info?storeId=1¤cyCode=cop
Is there a way I can send the product id
in the url and get only all its information?
2
Answers
You can fetch product info by SKU, not ID.
API endpoint (get method) will pull product info.
vendor/magento/module-catalog/etc/webapi.xml
So, your rest API calling URL should be like this
Note: If you want to fetch product info by id, you probably need to create a simple rest API. you can check this out.
https://magento.stackexchange.com/questions/282480/i-am-new-here-i-want-to-know-how-can-i-create-my-own-simple-api/282730
You can add the filter
use field entity_id instead of id, value is product id here 1, condition_type is equal to here eq.