I used Yii2 advanced template and created dedicated for API folder. I also wrote about the configuration you should made for make it works. I hope it can help someone who want to build RESTful API in Yii2. Any suggestion are welcome!
it’s a great explanation Bhoo-day, but I have a problem when I want to add new extra action. I have add my new action in CountryController that return “Hello World” and I add extraPattern to your config file, but when I test the api using postman “Object not found”.
Would you like explain, how is the right configuration about my problem?