Skip to main content

@nuclia/core / Exports / IRest

Interface: IRest

Implemented by

Table of contents

Methods

Methods

checkAuthorization

checkAuthorization(path): Observable<{ allowed: boolean ; roles: (KBRoles | NucliaDBRole)[] }>

Parameters

NameType
pathstring

Returns

Observable<{ allowed: boolean ; roles: (KBRoles | NucliaDBRole)[] }>

Defined in

libs/sdk-core/src/lib/models.ts:112


delete

delete(path, extraHeaders?, synchronous?, zoneSlug?): Observable<void>

Parameters

NameType
pathstring
extraHeaders?Object
synchronous?boolean
zoneSlug?string

Returns

Observable<void>

Defined in

libs/sdk-core/src/lib/models.ts:97


get

get<T>(path, extraHeaders?, doNotParse?, zoneSlug?): Observable<T>

Type parameters

Name
T

Parameters

NameType
pathstring
extraHeaders?Object
doNotParse?boolean
zoneSlug?string

Returns

Observable<T>

Defined in

libs/sdk-core/src/lib/models.ts:64


getFullUrl

getFullUrl(path): string

Parameters

NameType
pathstring

Returns

string

Defined in

libs/sdk-core/src/lib/models.ts:106


getHeaders

getHeaders(method, path, extraHeaders?, synchronous?): Object

Parameters

NameType
methodstring
pathstring
extraHeaders?Object
synchronous?boolean

Returns

Object

Defined in

libs/sdk-core/src/lib/models.ts:114


getObjectURL

getObjectURL(path): Observable<string>

Parameters

NameType
pathstring

Returns

Observable<string>

Defined in

libs/sdk-core/src/lib/models.ts:107


getStreamMessages

getStreamMessages(path, controller): Observable<{ data: Uint8Array ; headers: Headers }>

Parameters

NameType
pathstring
controllerAbortController

Returns

Observable<{ data: Uint8Array ; headers: Headers }>

Defined in

libs/sdk-core/src/lib/models.ts:111


getStreamedResponse

getStreamedResponse(path, body): Observable<{ data: Uint8Array ; headers: Headers ; incomplete: boolean }>

Parameters

NameType
pathstring
bodyany

Returns

Observable<{ data: Uint8Array ; headers: Headers ; incomplete: boolean }>

Defined in

libs/sdk-core/src/lib/models.ts:109


getZoneSlug

getZoneSlug(zoneId): Observable<string>

Parameters

NameType
zoneIdstring

Returns

Observable<string>

Defined in

libs/sdk-core/src/lib/models.ts:105


getZones

getZones(): Observable<{ [key: string]: string; }>

Returns

Observable<{ [key: string]: string; }>

Defined in

libs/sdk-core/src/lib/models.ts:104


head(path, extraHeaders?): Observable<Response>

Parameters

NameType
pathstring
extraHeaders?Object

Returns

Observable<Response>

Defined in

libs/sdk-core/src/lib/models.ts:103


patch

patch<T>(path, body, extraHeaders?, doNotParse?, synchronous?, zoneSlug?): Observable<T>

Type parameters

Name
T

Parameters

NameType
pathstring
bodyany
extraHeaders?Object
doNotParse?boolean
synchronous?boolean
zoneSlug?string

Returns

Observable<T>

Defined in

libs/sdk-core/src/lib/models.ts:88


post

post<T>(path, body, extraHeaders?, doNotParse?, synchronous?, zoneSlug?): Observable<T>

Type parameters

Name
T

Parameters

NameType
pathstring
bodyany
extraHeaders?Object
doNotParse?boolean
synchronous?boolean
zoneSlug?string

Returns

Observable<T>

Defined in

libs/sdk-core/src/lib/models.ts:70


put

put<T>(path, body, extraHeaders?, doNotParse?, synchronous?, zoneSlug?): Observable<T>

Type parameters

Name
T

Parameters

NameType
pathstring
bodyany
extraHeaders?Object
doNotParse?boolean
synchronous?boolean
zoneSlug?string

Returns

Observable<T>

Defined in

libs/sdk-core/src/lib/models.ts:79