I am trying to create a Rest API (BACKEND) for Yii2 basic template, to be used by AngularJS (FRONTEND).
I tried to use the Directory Structure below, but got lost.
myapp
-
web
-
config
-
controllers
-
models
-
views
-
vendors
…
-
api
–+ config
–+ modules
----+ v1
------+ controllers
–.htaccess
–index.php
Please can you give a sample Directory Structure of the API, and the contents