public function url($endpoint, $schema = null, $doc_id = null, $file_id = null)
    {
        return sprintf('api/v%d/%s', $this->version, $this->endpoint(
            $endpoint,
            $schema,
            $doc_id,
            $file_id
        ));
    }
public function url($endpoint, $schema = null, $doc_id = null, $file_id = null)
    {
        return sprintf('api/v%d/%s', $this->version, $this->endpoint(
            $endpoint,
            $schema,
            $doc_id,
            $file_id
        ));
    }
public function url ( $ endpoint , $ schema = null , $ doc_id = null , $ file_id = null ) { return sprintf ( 'api/v%d/%s' , $ this -> version , $ this -> endpoint ( $ endpoint , $ schema , $ doc_id , $ file_id ) ) ; }
Gets a formatted Montage endpoint, prefixed with api version.

@param $endpoint
@param null $schema
@param null $doc_id
@param null $file_id
@return string
@throws MontageUnknownEndpointException
Gets a formatted Montage endpoint prefixed with api version .