Create RESTFul for deploy on Google App Engine (Standard Environment) with Yii2
- response both xml and json format
- make versioning
- using .env file between server and local
- using memcache via app-engine
git clone https://github.com/prawee/yii2-gae-api
cd yii2-gae-api
composer installUpdate environment variable for your local
cp .env.dist .envUpdate environment variable for your GAE
cp app.yaml.dist app.yaml
cp cron.yaml.dist cron.yamlUpdate configure on your local
cp config/main-local.php.dist config/main-local.phplocalhost
php -S localhost:8080 -t publiclocalhost with google app engine
dev_appserver.py app.yaml# local
GET localhost:8080/requirements.php
GET localhost:8080/site
GET localhost:8080/v1/users# gae
GET https://<project-id>.appspot.com/requirements.php
GET https://<project-id>.appspot.com/site
GET https://<project-id>.appspot.com/v1/users