Module: generate

Generate endpoints and SSE clients
Source:

Methods

(inner) newCreateOne(endpoint, allowableopt) → {itemsCreateOneRequest}

Return a function for creating one item
Parameters:
Name Type Attributes Description
endpoint Endpoint
allowable Array.<String> <optional>
Source:
Returns:
Type
itemsCreateOneRequest

(inner) newGet(endpoint, allowableopt) → {itemsGetRequest}

Return a function for retrieving one or more items
Parameters:
Name Type Attributes Description
endpoint Endpoint
allowable Array.<String> <optional>
Source:
Returns:
Type
itemsGetRequest

(inner) newGetOne(endpoint) → {itemsGetOneRequest}

Return a function for retrieving one item
Parameters:
Name Type Description
endpoint Endpoint
Source:
Returns:
Type
itemsGetOneRequest

(inner) newModifyOne(endpoint, initParams, allowableopt) → {itemsModifyOneRequest}

Return a function for modifying item
Parameters:
Name Type Attributes Description
endpoint Endpoint
initParams Object parameters used to indicate we are infact modifying
allowable Array.<String> <optional>
Source:
Returns:
Type
itemsModifyOneRequest

(inner) newSSEClientFactory(endpoint) → {SSEClientFactory}

Return a function that returns a SSE client
Parameters:
Name Type Description
endpoint Endpoint
Source:
Throws:
Error
Returns:
Type
SSEClientFactory