Skip to main content
Version: 0.17

Class: JSONAPIURLBuilder

Constructors​

constructor​

• new JSONAPIURLBuilder(settings)

Parameters​

NameType
settingsJSONAPIURLBuilderSettings

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:41

Properties​

host​

• Optional host: string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:35


keyMap​

• Optional keyMap: RecordKeyMap

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:39


namespace​

• Optional namespace: string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:36


serializer​

• Optional serializer: JSONAPISerializer

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:38


serializerFor​

• serializerFor: SerializerForFn<Serializer<unknown, unknown, unknown, unknown>>

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:37

Methods​

appendQueryParams​

â–¸ appendQueryParams(url, params): string

Parameters​

NameType
urlstring
paramsDict<string>

Returns​

string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:304


buildFieldsParam​

â–¸ buildFieldsParam(fieldsSpecifier, request?): Dict<string>

Parameters​

NameType
fieldsSpecifierDict<string | string[]>
request?RecordQueryRequest | RecordTransformRequest

Returns​

Dict<string>

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:280


buildFilterParam​

â–¸ buildFilterParam(filters, request?): Dict<unknown>[]

Parameters​

NameType
filtersFilterSpecifier[] | Dict<unknown>
request?RecordQueryRequest | RecordTransformRequest

Returns​

Dict<unknown>[]

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:134


buildIncludeParam​

â–¸ buildIncludeParam(includeSpecifier, request?): string

Parameters​

NameType
includeSpecifierstring | string[] | string[][]
request?RecordQueryRequest | RecordTransformRequest

Returns​

string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:261


buildPageParam​

â–¸ buildPageParam(pageSpecifier, request?): Dict<unknown>

Parameters​

NameType
pageSpecifierPageSpecifier
request?RecordQueryRequest | RecordTransformRequest

Returns​

Dict<unknown>

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:251


buildSortParam​

â–¸ buildSortParam(sortSpecifiers, request?): string

Parameters​

NameType
sortSpecifiersstring | (string | SortSpecifier)[]
request?RecordQueryRequest | RecordTransformRequest

Returns​

string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:215


relatedResourceURL​

â–¸ relatedResourceURL(type, id, relationship): string

Parameters​

NameType
typestring
idstring
relationshipstring

Returns​

string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:127


resourceHost​

â–¸ resourceHost(type?): undefined | string

Parameters​

NameType
type?string

Returns​

undefined | string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:60


resourceNamespace​

â–¸ resourceNamespace(type?): undefined | string

Parameters​

NameType
type?string

Returns​

undefined | string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:55


resourcePath​

â–¸ resourcePath(type, id?): string

Parameters​

NameType
typestring
id?string

Returns​

string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:84


resourceRelationshipURL​

â–¸ resourceRelationshipURL(type, id, relationship): string

Parameters​

NameType
typestring
idstring
relationshipstring

Returns​

string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:115


resourceURL​

â–¸ resourceURL(type, id?): string

Parameters​

NameType
typestring
id?string

Returns​

string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-url-builder.ts:64