src/Context/ApiContext.php
public function requestPath($path, $method = null) {
        $this->setRequestPath($path);

        if (null === $method) {
            $this->setRequestMethod('GET', false);
        } else {
            $this->setRequestMethod($method);
        }

        return $this->sendRequest();
    }
public function requestPath($path, $method = null) {
        $this->setRequestPath($path);

        if (null === $method) {
            $this->setRequestMethod('GET', false);
        } else {
            $this->setRequestMethod($method);
        }

        return $this->sendRequest();
    }
public function requestPath ( $ path , $ method = null ) { $ this -> setRequestPath ( $ path ) ; if ( null === $ method ) { $ this -> setRequestMethod ( 'GET' , false ) ; } else { $ this -> setRequestMethod ( $ method ) ; } return $ this -> sendRequest ( ) ; }
Request a path

@param string $path The path to request
@param string $method The HTTP method to use
@return self

@When I request :path
@When I request :path using HTTP :method
Request a path