1

Who can help, how to create a structure in the custom module for Rest Api ?

3 Answers 3

0

When I had that question, walking through this tutorial helped me: https://inchoo.net/magento-2/magento-2-custom-api/

0

In case you need to use some Magento classes in your API, this tutorial provides an example of using dependency injection to access those classes functions.

https://www.thirdandgrove.com/creating-custom-rest-api-magento2

0
0

This will help you: Sample extension

For more reference : Magento 2 devdocs

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