Rest Api With Yii2


I am new to using Yii2 and i am trying to create a REST Api interface in my yii2 website. For the Api, I have created a new module named Api and i have defined the REST rules and it works fine for the CRUD operations. Now I am not sure how to provide non CRUD related operations on a resource. Lets say an Item is a resource and I want to rate the Item or bid on that Item, how do I provide actions for this in the controller? Is it just adding the new actions(actionBid and actionRate) with PUT Verbs? Or is there a better way?

Which one want to do exactly, bidding on the item or rate on the item…I think rating is better

That was not my question. My question is regarding how to provide the action for this in the REST Api.