title: Yii 2 rest service url management
body: <p>I just want to offer a Rest api for my Yii 2 application.
  I saw the guide and in this default case everything clear.</p>
  
  <p>But I want some "tricky" path and url things and I don't know how to achieve them.</p>
  
  <p>First thing, my api controllers are outside my web root, like this:<br>
  - "Complete Application folder"<br>
  ---- "Api"<br>
  -------- "controllers"<br>
  ---- "Web root"<br>
  -------- "assets"<br>
  -------- "components"<br>
  -------- "config"<br>
  -------- "..."<br></p>
  
  <p>Second thing is, I want my urls under the prefix "Api", like this:
  <a href="http://www.myapp.de/Api/Model" rel="nofollow">http://www.myapp.de/Api/Model</a></p>
  
  <p>Can someone help me to achieve this?</p>
  
  <p>Kind regards</p>