Skip to main content

DatalayerRequest

Datalayer Core


Datalayer Core / DatalayerRequest

Interface: DatalayerRequest

Defined in: tech/datalayer/core/src/hooks/useDatalayer.ts:29

Extends

Properties

body?

optional body: any

Defined in: tech/datalayer/core/src/api/DatalayerApi.ts:119

JSON-serializable object

Inherited from

IRequestDatalayerAPIOptions.body


headers?

optional headers: Record<string, string>

Defined in: tech/datalayer/core/src/api/DatalayerApi.ts:123

Headers

Inherited from

IRequestDatalayerAPIOptions.headers


loginRoute?

optional loginRoute: string

Defined in: tech/datalayer/core/src/hooks/useDatalayer.ts:20

React router login route

Default

'/login'

Inherited from

IDatalayerRequestProps.loginRoute


method?

optional method: string

Defined in: tech/datalayer/core/src/api/DatalayerApi.ts:115

HTTP method

Inherited from

IRequestDatalayerAPIOptions.method


notifyOnError?

optional notifyOnError: boolean

Defined in: tech/datalayer/core/src/hooks/useDatalayer.ts:26

Notify user through toast on errors.

Default

true

Inherited from

IDatalayerRequestProps.notifyOnError


signal?

optional signal: AbortSignal

Defined in: tech/datalayer/core/src/api/DatalayerApi.ts:131

Request abort signal.

Inherited from

IRequestDatalayerAPIOptions.signal


token?

optional token: string

Defined in: tech/datalayer/core/src/api/DatalayerApi.ts:127

Authorization bearer token

Inherited from

IRequestDatalayerAPIOptions.token


url

url: string

Defined in: tech/datalayer/core/src/api/DatalayerApi.ts:111

URL to request

Inherited from

IRequestDatalayerAPIOptions.url