Search code examples
magentooauthoauth-2.0magento-1.7magento-1.4

Extend the Magento API as it returns the products list as if we give category ID


How to extend the magento API's?? I want it as if i give the category ID it has to bring the products in that category and it has to return the data in JSON format. So for this, what are all the API's should be extended??? What are the files that are need to be modified for this??

Is it possible to bring the list of products by giving the category ID? If yes, Please explain it briefly...


Solution

  • Check this url thoroughly we get most of the answer. You can get product list by category id in this way

    magentohost/api/rest/products?category_id=5