src/Graviton/ProxyBundle/Service/ApiDefinitionLoader.php
public function getAllEndpoints($withHost = false, $forceReload = false)
    {
        $this->loadApiDefinition($forceReload);

        $host = empty($this->options['host']) ? '' : $this->options['host'];
        $prefix = self::PROXY_ROUTE;
        if (isset($this->options['prefix'])) {
            $prefix .= "/".$this->options['prefix'];
        }

        return !is_object($this->definition) ? [] : $this->definition->getEndpoints(
            $withHost,
            $prefix,
            $host,
            !empty($this->options['includeBasePath'])
        );
    }
public function getAllEndpoints($withHost = false, $forceReload = false)
    {
        $this->loadApiDefinition($forceReload);

        $host = empty($this->options['host']) ? '' : $this->options['host'];
        $prefix = self::PROXY_ROUTE;
        if (isset($this->options['prefix'])) {
            $prefix .= "/".$this->options['prefix'];
        }

        return !is_object($this->definition) ? [] : $this->definition->getEndpoints(
            $withHost,
            $prefix,
            $host,
            !empty($this->options['includeBasePath'])
        );
    }
public function getAllEndpoints ( $ withHost = false , $ forceReload = false ) { $ this -> loadApiDefinition ( $ forceReload ) ; $ host = empty ( $ this -> options [ 'host' ] ) ? '' : $ this -> options [ 'host' ] ; $ prefix = self :: PROXY_ROUTE ; if ( isset ( $ this -> options [ 'prefix' ] ) ) { $ prefix .= "/" . $ this -> options [ 'prefix' ] ; } return ! is_object ( $ this -> definition ) ? [ ] : $ this -> definition -> getEndpoints ( $ withHost , $ prefix , $ host , ! empty ( $ this -> options [ 'includeBasePath' ] ) ) ; }
get all endpoints for an API

@param boolean $withHost    attach host name to the url
@param bool    $forceReload Switch to force a new api definition object will be provided.

@return array
get all endpoints for an API