Generate endpoints and SSE clients
- Source:
Methods
(inner) newCreateOne(endpoint) → {itemsCreateOneRequest}
Return a function for creating one item
Parameters:
Name | Type | Description |
---|---|---|
endpoint |
Endpoint |
- Source:
Returns:
(inner) newGet(endpoint) → {itemsGetRequest}
Return a function for retrieving one or more items
Parameters:
Name | Type | Description |
---|---|---|
endpoint |
Endpoint |
- 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) → {itemsModifyOneRequest}
Return a function for modifying item
Parameters:
Name | Type | Description |
---|---|---|
endpoint |
Endpoint | |
initParams |
Object | parameters used to indicate we are infact modifying |
- Source:
Returns:
(inner) newSSEClientFactory(endpoint) → {SSEClientFactory}
Return a function that returns a SSE client
Parameters:
Name | Type | Description |
---|---|---|
endpoint |
Endpoint |
- Source:
Returns:
- Type
- SSEClientFactory