public function getAPI()
    {
        return new RESTAPI(
            $this->config['api'],
            $this->config['host'],
            $this->config['db'],
            $this->config['port'],
            $this->config['username'],
            $this->config['password']
        );
    }
public function getAPI()
    {
        return new RESTAPI(
            $this->config['api'],
            $this->config['host'],
            $this->config['db'],
            $this->config['port'],
            $this->config['username'],
            $this->config['password']
        );
    }
public function getAPI ( ) { return new RESTAPI ( $ this -> config [ 'api' ] , $ this -> config [ 'host' ] , $ this -> config [ 'db' ] , $ this -> config [ 'port' ] , $ this -> config [ 'username' ] , $ this -> config [ 'password' ] ) ; }
Create and return a REST API based on current configuration.

@return RESTAPI
Create and return a REST API based on current configuration .