Converts a DataDefinition object into a Request object that can be passed to fetch. The proxy passed to createDataLayer will be used to fill out the Request using any configured ProxyRules.
Keeping your data definition objects separate from request objects enables us to construct dynamic requests based on ProxyRules set at runtime. This means we can change the endpoints and protocols using configuration data rather than code.
The DataDefinition to convert into a Request using ProxyRules.
Optional parameters used to tokenize the URL or to append to the QueryString.
Optional data to send with the request.
A fully formed Request that can be passed to fetch.
Information about the data operation.
Registers an Adapter with the given name. The fetch
method will match the 'adapter'
value on the Request it is given with
any Adapters registered here.
NOTE: The default adapter for a Request is the adapter used to construct the
data layer, which is always registered as 'default'
.
The name of the Adapter to register.
The Adapter to register.
Contains the minimum functionality necessary to convert a DataDefinition object into a Request and to execute that Request against an Adapter, returning a Response with the requested data.