Fields Links Collections
RESTful APIs are all about accessing and manipulating resources. You may view resources as models in the MVC paradigm.
While there is no restriction in how to represent a resource, in Yii you usually would represent resources in terms of objects of yii\base\Model or its child classes (e.g. yii\db\ActiveRecord), for the following reasons:
yii\base\Model implements the yii\base\Arrayable interface, which allows you to customize how you want to expose resource data throu