Rest API tutorial for advanced template

I am trying for a couple of days to get a simple REST API to work with an advanced template. I have tried many tutorials and setups, but none seem to be actually work.

I don’t get any further then a simple listing of all records. Asking for 1 record by id results in 404 errors.

I am looking for a basis step by step tutorial that actually will work with the latest version of Yii. Can someone please help me out?

https://www.tutorialspoint.com/yii/yii_restful_apis.htm

I will turn on again this topic beacuse I’m facing the same issue.

What’s my case? I have created 2 apps, one with the basic app template and another with the advanced app template. Both have REST service versioned. The basic app templated worked very well with this versioning mode based on modules, but the advanced app template is having 404 errors for the REST module versioning.

Based on RESTful Web Services: Versioning | The Definitive Guide to Yii 2.0 | Yii PHP Framework, it should work but it isn’t. https://www.tutorialspoint.com/yii/yii_restful_apis.htm is built with the basic app template what I said before works, but with the advanced template is not working.

Please show us some of your attempts, with code snippets. Without it, it will be hard to help you.

See: https://forum.yiiframework.com/t/welcome-to-the-yii-framework-forum/8#general-guidelines-2