public function create($uri, $path = [], $parameters = [], $headers = [], $method = 'GET')
    {
        return $this->serializer->serialize(
            new Request($uri, $method, $path, $parameters, $headers),
            'json'
        );
    }
public function create($uri, $path = [], $parameters = [], $headers = [], $method = 'GET')
    {
        return $this->serializer->serialize(
            new Request($uri, $method, $path, $parameters, $headers),
            'json'
        );
    }
public function create ( $ uri , $ path = [ ] , $ parameters = [ ] , $ headers = [ ] , $ method = 'GET' ) { return $ this -> serializer -> serialize ( new Request ( $ uri , $ method , $ path , $ parameters , $ headers ) , 'json' ) ; }
Create request JSON

@param $uri
@param $method
@param array $path
@param array $parameters
@param array $headers
@return Request
Create request JSON