RequestBuilder

Type parameters

ResponseType

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

Protected constructor

+ new RequestBuilder(uri: string, options: Options): RequestBuilder

Parameters:

Returns: RequestBuilder

Properties

Protected limit

limit: number = DEFAULT_RESOURCE_LIMIT

Protected offset

offset: undefined | number

Protected options

options: Options

Protected page

page: number = 1

Protected queryParams

queryParams: Record‹string, string›

Protected resolveIncludedRelationships

resolveIncludedRelationships: boolean = false

Protected sortParams

sortParams: string[] = []

uri

uri: string

Accessors

parameters

get parameters(): Record‹string, string›

Returns: Record‹string, string›

Methods

filter

filter(key: string | string[] | undefined, value: string | number | boolean | undefined, operator?: FilterOperator): this

Parameters:

Returns: this

pageLimit

pageLimit(limit: number): this

Parameters:

Returns: this

pageNumber

pageNumber(page: number | string | undefined): this

Parameters:

Returns: this

pageOffset

pageOffset(offset: number): this

Parameters:

Returns: this

parameter

parameter(key: string, value: string | number | boolean | undefined): this

Parameters:

Returns: this

Protected parseResponse

parseResponse<Raw>(response: HttpResponse): Promise‹JsonResponse‹Raw››

Type parameters:

Raw: RawResponse‹any, any›

Parameters:

Returns: Promise‹JsonResponse‹Raw››

resolveIncluded

resolveIncluded(resolveIncluded?: undefined | false | true): this

Parameters:

Returns: this

Abstract send

send(options?: HttpOptions): Promise‹ResponseType›

Parameters:

Returns: Promise‹ResponseType›

sort

sort(key: string | undefined, order: SortOrder): this

Parameters:

Returns: this

Last updated