Example #1
0
 /**
  * Set the request body for the given request.
  *
  * @param RestRequest $request
  * @param             $body
  */
 public function setRequestBody(RestRequest &$request, $body)
 {
     $request->setBody(json_encode($body), 'application/json');
 }