module@warp-drive/utilities/json-api
Interface JSONAPIConfig
ts
interface JSONAPIConfig extends BuildURLConfig {
extensions?: { [key: string]: string | undefined; atomic?: string };
host: string | null;
namespace: string | null;
profiles?: { [key: string]: string | undefined; pagination?: string };
}Defined in: -private/json-api/-utils.ts:13
The configuration setBuildURLConfig accepts: the BuildURLConfig fields, plus the {json:api} profile and extension URIs to send in the Accept header.
Extends
Properties
extensions?
ts
optional extensions?: {
[key: string]: string | undefined;
atomic?: string;
};Defined in: -private/json-api/-utils.ts:18
Index Signature
ts
[key: string]: string | undefinedatomic?
ts
optional atomic?: string;host
ts
host: string | null;Defined in: index.ts:26
The scheme, domain and port (if any) to prefix built URLs with, e.g. 'https://api.example.com'.
Inherited from
namespace
ts
namespace: string | null;Defined in: index.ts:30
The path segment to insert between host and the resource path, e.g. 'api/v1'.
Inherited from
profiles?
ts
optional profiles?: {
[key: string]: string | undefined;
pagination?: string;
};Defined in: -private/json-api/-utils.ts:14
Index Signature
ts
[key: string]: string | undefinedpagination?
ts
optional pagination?: string;