-1

I want to access product list with category name using Magento API.

closed as unclear what you're asking by Rohan Hapani, Jai, Mohit Kumar Arora, Priyank, saravanavelu Jan 12 at 15:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

0

I have created some basic module with REST api which will take category name as input and return all products name under the specific category.

Test/Hello/etc/module.xml

This is module xml file

Test/Hello/etc/di.xml This is dependency injection xml file

Test/Hello/etc/webapi.xml Webapi xml file

Test/Hello/Model/Hello.php Model File

Test/Hello/Api/HelloInterface.php API Interface file

You can ping the below url in browser to get the result

http://localhost/mage21/index.php/rest/V1/hello/name/{category_name}

The response will be

enter image description here

Please check and let me know whether its meeting your needs.

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