Setup RESTful API in Yii2 Advanced Application

While researching for RESTful API implementation in Yii2, I've came across this: Setup RESTful API in Yii2.

It is based on a very old Yii2 beta advanced application, but the knowledge and the techniques are perfectly up to date.
You'll need to understand Routing.

./M6