You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will be useful when we want to use an array parameters (name => value) to specify fields and expand parameters instead of using values come from Yii::$app->getRequest().
The implementing logic is just like the params property of yii\data\Pagination or yii\data\Sort
The text was updated successfully, but these errors were encountered:
In my case, I have fields and expand values come from a calculation on serveral HTTP request parameters, not directly from the parameters themselves.
And then, I want to set them to yii\rest\Serializer. Curently the only way is mocking a Request object that return these values via get method.
I think if we support using an array parameters (name => value) just like the params property of yii\data\Pagination or yii\data\Sort, it will be easier and more understandable.
And I also think this will not violate HATEOAS constraints.
This will be useful when we want to use an array parameters (name => value) to specify
fields
andexpand
parameters instead of using values come fromYii::$app->getRequest()
.The implementing logic is just like the
params
property ofyii\data\Pagination
oryii\data\Sort
The text was updated successfully, but these errors were encountered: