public function getUrl()
    {
        $query = $this->getQueryString();
        return sprintf('%s://%s/%s/%s%s',
            $this->getScheme(),
            trim($this->getHost(), '/'),
            trim($this->config->getRootEndpoint(), '/'),
            $this->getEntityType(),
            empty($query) ? '' : sprintf('?%s', $query)
        );
    }
public function getUrl()
    {
        $query = $this->getQueryString();
        return sprintf('%s://%s/%s/%s%s',
            $this->getScheme(),
            trim($this->getHost(), '/'),
            trim($this->config->getRootEndpoint(), '/'),
            $this->getEntityType(),
            empty($query) ? '' : sprintf('?%s', $query)
        );
    }
public function getUrl ( ) { $ query = $ this -> getQueryString ( ) ; return sprintf ( '%s://%s/%s/%s%s' , $ this -> getScheme ( ) , trim ( $ this -> getHost ( ) , '/' ) , trim ( $ this -> config -> getRootEndpoint ( ) , '/' ) , $ this -> getEntityType ( ) , empty ( $ query ) ? '' : sprintf ( '?%s' , $ query ) ) ; }
Generates the request URL based on its current object state.

@todo    Add support for inclusions and other items.
@return  string
Generates the request URL based on its current object state .