public function exists()
    {
        try {
            $params = array();
            $body = null;
            $headers = array();
            $request = new RESTRequest(
                'GET', 'rest-apis/' . $this->name, $params, $body, $headers
            );
            $response = $this->client->send($request);
        } catch(\Exception $e) {
            return false;
        }
        return true;
    }
public function exists()
    {
        try {
            $params = array();
            $body = null;
            $headers = array();
            $request = new RESTRequest(
                'GET', 'rest-apis/' . $this->name, $params, $body, $headers
            );
            $response = $this->client->send($request);
        } catch(\Exception $e) {
            return false;
        }
        return true;
    }
public function exists ( ) { try { $ params = array ( ) ; $ body = null ; $ headers = array ( ) ; $ request = new RESTRequest ( 'GET' , 'rest-apis/' . $ this -> name , $ params , $ body , $ headers ) ; $ response = $ this -> client -> send ( $ request ) ; } catch ( \ Exception $ e ) { return false ; } return true ; }
Check if a REST API with the same name exists on the server.

@param string name Name of the REST API to check.
@return boolean true|false
Check if a REST API with the same name exists on the server .