RESTful Web Services implementation example with Yii 2.
You can then access the application through the following URL:
http://localhost/yii2-webservice/web/index.php?r=jobs
Edit the file config/db.php
with real data, for example:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2_webservice',
'username' => 'root',
'password' => '1234',
'charset' => 'utf8',
];
For more information, please take a look http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html
https://github.com/yiisoft/yii2/blob/master/docs/guide/rest-quick-start.md