api/MarkLogic/MLPHP/MLPHP.php
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