If cache
is specified, entities will be cached according to the cache settings.
Note: cache refers to individual items (such as received from getItemById
or with an ApiCall), not queries.
Custom headers for API call. It can be either a dictionary of string, with header names as the keys, or a function (which be applied by Paris) which receives data and config, and returns the headers for the API call.
The URL to use for HTTP requests.
Query params to always send when requesting data.
A function that if specifies, parses whatever is received from the API call, before Paris starts handling it.
If true
, a value that's specified in DataQuery.params and is an array will result in multiple params in the HTTP request
Generated using TypeDoc
The domain to use for all calls for this Entity/ApiCall. Used as a prefix for all HTTP requests. Set to an empty string to avoid this altogether (in case the data arrives from an external URL, for example). If not set and not an empty string, Paris will use config.apiRoot instead.