DatalayerRequest
Datalayer Core / DatalayerRequest
Interface: DatalayerRequest
Defined in: src/hooks/useDatalayer.ts:29
Extends
IDatalayerRequestProps.IRequestDatalayerAPIOptions
Properties
body?
optionalbody:any
Defined in: src/api/DatalayerApi.ts:119
JSON-serializable object
Inherited from
IRequestDatalayerAPIOptions.body
headers?
optionalheaders:Record<string,string>
Defined in: src/api/DatalayerApi.ts:123
Headers
Inherited from
IRequestDatalayerAPIOptions.headers
loginRoute?
optionalloginRoute:string
Defined in: src/hooks/useDatalayer.ts:20
React router login route
Default
'/login'
Inherited from
IDatalayerRequestProps.loginRoute
method?
optionalmethod:string
Defined in: src/api/DatalayerApi.ts:115
HTTP method
Inherited from
IRequestDatalayerAPIOptions.method
notifyOnError?
optionalnotifyOnError:boolean
Defined in: src/hooks/useDatalayer.ts:26
Notify user through toast on errors.
Default
true
Inherited from
IDatalayerRequestProps.notifyOnError
signal?
optionalsignal:AbortSignal
Defined in: src/api/DatalayerApi.ts:131
Request abort signal.
Inherited from
IRequestDatalayerAPIOptions.signal
token?
optionaltoken:string
Defined in: src/api/DatalayerApi.ts:127
Authorization bearer token
Inherited from
IRequestDatalayerAPIOptions.token
url
url:
string
Defined in: src/api/DatalayerApi.ts:111
URL to request
Inherited from
IRequestDatalayerAPIOptions.url