Yii 2 RESTful API with OAuth 2.0
This is a RESTful API with OAuth2 authentication/security developed using Yii2 framework. You can use this if you want to quick start developing your own custom RESTful API by skipping 95% of your scratch works. Hopefully this will save lot of your time as this API includes all the basic stuffs you need to get started.
This API also includes a developer dashboard with the API documentation which is developed in Yii2. This will be useful to manage your developers access to the API documentation.
http://developers.yii2.nintriva.net Login: developer/developer
Documentation for this RESTful API can be found on the Yii2 RESTful API with OAuth2 Documenation.
If you discover a security vulnerability within this template, please send an e-mail to Sirin k at firstname.lastname@example.org. All security vulnerabilities will be promptly addressed.
The Lumen framework is open-sourced software licensed under the MIT license
Step1: Create a database named yii2_rest Step2:Clone the source code git clone -b master https://github.com/sirinibin/yii2-rest.git Step3: cd yii2-rest Step4:composer install Step5: ./init Step6: vim common/config/main-local.php change db information 'db' => [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=127.0.0.1;dbname=yii2_rest', 'username' => 'root', 'password' => '123', 'charset' => 'utf8', ], Step7: Run db migration cd /var/www/yii2-rest ./yii migrate Step8: point API end point URL to backend /var/www/yii2-rest/backend/web point frontend URL to frontend /var/www/yii2-rest/frontend/web