title: How do I create my own API in Yii2?
body: <p>I want to create API methods which you can access form another platform.  Just see the following diagram.
  <a href="https://i.stack.imgur.com/66hrW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/66hrW.png" alt="api-data-flow-diagram"></a></p>
  
  <p>In the above image you can see how to fetch data from Yii2 app using another application, I wanna use same procedure when I going to push data into Yii2 application from the another application. That's means Yii2 just provides api methods to clint to push/pull data.</p>
  
  <p>Give me some suggestion?</p>