├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── composer.lock ├── config ├── config.php ├── console.php ├── db.php └── params.php ├── controllers └── SiteController.php ├── docker-compose.yml ├── helpers ├── AuthMethodsFromParamsHelper.php └── BehaviorsFromParamsHelper.php ├── migrations ├── m141022_115823_create_user_table.php ├── m180221_085153_create_post_table.php └── m200609_112354_create_access_token_table.php ├── models ├── AccessToken.php ├── Post.php ├── Status.php ├── User.php └── UserIdentity.php ├── modules └── v1 │ ├── controllers │ ├── DefaultController.php │ └── PostController.php │ └── v1.php ├── vendor └── .gitignore ├── web ├── .htaccess └── index.php ├── yii └── yii.bat /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/composer.lock -------------------------------------------------------------------------------- /config/config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/config/config.php -------------------------------------------------------------------------------- /config/console.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/config/console.php -------------------------------------------------------------------------------- /config/db.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/config/db.php -------------------------------------------------------------------------------- /config/params.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/config/params.php -------------------------------------------------------------------------------- /controllers/SiteController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/controllers/SiteController.php -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /helpers/AuthMethodsFromParamsHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/helpers/AuthMethodsFromParamsHelper.php -------------------------------------------------------------------------------- /helpers/BehaviorsFromParamsHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/helpers/BehaviorsFromParamsHelper.php -------------------------------------------------------------------------------- /migrations/m141022_115823_create_user_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/migrations/m141022_115823_create_user_table.php -------------------------------------------------------------------------------- /migrations/m180221_085153_create_post_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/migrations/m180221_085153_create_post_table.php -------------------------------------------------------------------------------- /migrations/m200609_112354_create_access_token_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/migrations/m200609_112354_create_access_token_table.php -------------------------------------------------------------------------------- /models/AccessToken.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/models/AccessToken.php -------------------------------------------------------------------------------- /models/Post.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/models/Post.php -------------------------------------------------------------------------------- /models/Status.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/models/Status.php -------------------------------------------------------------------------------- /models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/models/User.php -------------------------------------------------------------------------------- /models/UserIdentity.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/models/UserIdentity.php -------------------------------------------------------------------------------- /modules/v1/controllers/DefaultController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/modules/v1/controllers/DefaultController.php -------------------------------------------------------------------------------- /modules/v1/controllers/PostController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/modules/v1/controllers/PostController.php -------------------------------------------------------------------------------- /modules/v1/v1.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/modules/v1/v1.php -------------------------------------------------------------------------------- /vendor/.gitignore: -------------------------------------------------------------------------------- 1 | /* 2 | !.gitignore -------------------------------------------------------------------------------- /web/.htaccess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/web/.htaccess -------------------------------------------------------------------------------- /web/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/web/index.php -------------------------------------------------------------------------------- /yii: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/yii -------------------------------------------------------------------------------- /yii.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hoaaah/yii2-rest-api-template/HEAD/yii.bat --------------------------------------------------------------------------------