php - restler explorer prompt viewer with REQUEST_BODY json -
i trying comment methods restler's explorer show request_body
put , push values object's values. right see { "property" : "" }
.
what want json-formated string of object i've created insert/update:
class wash_object extends \stdclass { public $completed_date=''; public $certificate_id=0; public $trailer_id=0; ... }
i have been digging through documentation both restler , explorer far have not seen how tell explorer fill in text field under value request_body
. comment handles little trick?
you have decorate function parameters want populated in field. don't necessary need use parameters if you're reading them $request_data.
/** * updates item * * @url put / * * @param array $request_data * @param string $completed_date * @param int $certificate_id * @param int $trailer_id * * @return mixed */ public function put($request_data, $completed_date, $certificate_id, $trailer_id)
Comments
Post a Comment