Class: Apex

Apex

new Apex(conn)

API class for Apex REST endpoint call
Parameters:
Name Type Description
conn Connection Connection
Source:

Methods

del(path, body, callback) → {Promise.<Object>}

Synonym of Apex#delete()
Parameters:
Name Type Argument Description
path String URL path to Apex REST service
body Object <optional>
Request body
callback Callback.<Object> <optional>
Callback function
Source:
Returns:
Type
Promise.<Object>

delete(path, body, callback) → {Promise.<Object>}

Call Apex REST service in DELETE request
Parameters:
Name Type Argument Description
path String URL path to Apex REST service
body Object <optional>
Request body
callback Callback.<Object> <optional>
Callback function
Source:
Returns:
Type
Promise.<Object>

get(path, callback) → {Promise.<Object>}

Call Apex REST service in GET request
Parameters:
Name Type Argument Description
path String URL path to Apex REST service
callback Callback.<Object> <optional>
Callback function
Source:
Returns:
Type
Promise.<Object>

patch(path, body, callback) → {Promise.<Object>}

Call Apex REST service in PATCH request
Parameters:
Name Type Argument Description
path String URL path to Apex REST service
body Object <optional>
Request body
callback Callback.<Object> <optional>
Callback function
Source:
Returns:
Type
Promise.<Object>

post(path, body, callback) → {Promise.<Object>}

Call Apex REST service in POST request
Parameters:
Name Type Argument Description
path String URL path to Apex REST service
body Object <optional>
Request body
callback Callback.<Object> <optional>
Callback function
Source:
Returns:
Type
Promise.<Object>

put(path, body, callback) → {Promise.<Object>}

Call Apex REST service in PUT request
Parameters:
Name Type Argument Description
path String URL path to Apex REST service
body Object <optional>
Request body
callback Callback.<Object> <optional>
Callback function
Source:
Returns:
Type
Promise.<Object>