I have created a custom REST API that return all review of products based on store id.
http://hostname/magento/index.php/rest/V1/showreview/allreviews/1
it returns output like-
[{"review_id":"345","created_at":"2018-08-16 08:03:19","entity_id":"1","entity_pk_value":"1705","status_id":"1","detail_id":"345","title":"Huge arm holes??","detail":"I don't know why the arm holes are so big. It looked ok in the photo but in person they're really wide. It's really comfortable but that bugs me.","nickname":"Valorie","customer_id":null},{...}..]
Now my question is how to implement search criteria on custom rest api.? actually i previously applied search criteria on predefined rest api but don't know how to implement on custom api.
Any help appreciated.
/V1/cmsPage/search