Loads entry list. Expects dmShortID
/ model
to be set.
If the model is not public, you also need to provide a token
.
options for list request.
Maps over entry list.
options for entry list request.
Loads a single entry. Expects dmShortID
/ model
to be set.
If the model is not public, you also need to provide a token
.
Edits an entry with safe put. Expects dmShortID
/ model
to be set.
Expects a _modified
field in the value. Will only update if the entry has not been changed since.
If model PUT is not public, you also need to provide a token
.
id of entry to edit
values to set. undefined fields are ignored
Loads the schema of a model. Expects dmShortID
/ model
to be set.
Creates a new entry. Expects dmShortID
/ model
to be set.
If model POST is not public, you also need to provide a token
.
Entry value that satisfies the model's schema.
Edits an entry. Expects dmShortID
/ model
to be set.
If model PUT is not public, you also need to provide a token
.
id of entry to edit
values to set. undefined fields are ignored
Loads asset list. Expects dmShortID
/ assetGroup
to be set.
If the assetGroup is not public, you also need to provide a token
.
Uploads an asset. Expects dmShortID
/ assetGroup
/ file
to be set.
If the assetGroup is not public, you also need to provide a token
.
Loads a single asset. Expects dmShortID
/ assetGroup
to be set.
If the asset group is not public, you also need to provide a token
.
Fetches resource list. Expects resource
to be set. subdomain
defaults to "datamanager".
Fetches https://<subdomain>.entrecode.de/<resource>?_list=true&size=<options.size ?? 25>
options for list request.
Fetches raw route. Expects route
to be set. subdomain
defaults to "datamanager".
Fetches https://<subdomain>.entrecode.de/<route>?<options>
Use this when no other fdk method can give you your request.
options that are converted to query params.
Optional
fetchOptions: object(optional) options passed to fetch.
Loads a DatamanagerResource by its long id. Requires token.
Loads datamanager list. Requires auth.
options for list request.
Loads model list. Expects dmID to be set. Requires auth.
options for entry list request.
Defines a custom storage to use for auth data. In most cases, this should not be needed. By default, auth will be stored in-memory, using a JS Map. This should be fine for NodeJS. In the Browser, it's better to use oidc-client and ignore all Auth methods here.
Main API to interact with the ec.fdk. You can create an instance with fdk.
Checkout all available methods in the sidebar on the right.
Example
Example: You can also reuse parts of the chain with variables: