Change one attribute value Yii2 REST API
<p>I have created a REST API in Yii2 using <code>ActiveController</code>. The default implementation of <code>actionIndex</code> return all the models. 
What i want to do is to change the value of one attribute before sending response. 
for example i have image uploaded with just its name stored in database.
Before sending a response i want to embed the base URL with image name.
Do i need to override the whole index method or  i can manipulate the single attribute in <code>action</code> method?</p>