new Apex(conn)
API class for Apex REST endpoint call
Parameters:
| Name | Type | Description |
|---|---|---|
conn |
Connection | Connection |
Methods
-
del(path, body, callback) → {Promise.<Object>}
-
Synonym of Apex#delete()
Parameters:
Name Type Argument Description pathString URL path to Apex REST service bodyObject <optional>
Request body callbackCallback.<Object> <optional>
Callback function Returns:
- Type
- Promise.<Object>
-
delete(path, body, callback) → {Promise.<Object>}
-
Call Apex REST service in DELETE request
Parameters:
Name Type Argument Description pathString URL path to Apex REST service bodyObject <optional>
Request body callbackCallback.<Object> <optional>
Callback function Returns:
- Type
- Promise.<Object>
-
get(path, callback) → {Promise.<Object>}
-
Call Apex REST service in GET request
Parameters:
Name Type Argument Description pathString URL path to Apex REST service callbackCallback.<Object> <optional>
Callback function Returns:
- Type
- Promise.<Object>
-
patch(path, body, callback) → {Promise.<Object>}
-
Call Apex REST service in PATCH request
Parameters:
Name Type Argument Description pathString URL path to Apex REST service bodyObject <optional>
Request body callbackCallback.<Object> <optional>
Callback function Returns:
- Type
- Promise.<Object>
-
post(path, body, callback) → {Promise.<Object>}
-
Call Apex REST service in POST request
Parameters:
Name Type Argument Description pathString URL path to Apex REST service bodyObject <optional>
Request body callbackCallback.<Object> <optional>
Callback function Returns:
- Type
- Promise.<Object>
-
put(path, body, callback) → {Promise.<Object>}
-
Call Apex REST service in PUT request
Parameters:
Name Type Argument Description pathString URL path to Apex REST service bodyObject <optional>
Request body callbackCallback.<Object> <optional>
Callback function Returns:
- Type
- Promise.<Object>