Optional
interceptors: FetcherInterceptor[]Private
#fetcherBase URL will be prepended to url
unless url
is absolute.
It can be convenient to set baseUrl
for an instance of fetcher to pass
relative URLs to methods of that instance.
Sets Fetcher instance to the client instance.
Clones current JsonApiClient instance
Makes a DELETE
to a target endpoint
with the provided data
as body.
Parses the response in JsonApi format.
Optional
opts: Partial<JsonApiClientRequestOpts>Makes a GET
to a target endpoint
with the provided query
params.
Parses the response in JsonApi format.
Optional
opts: Partial<JsonApiClientRequestOpts>Makes a PATCH
to a target endpoint
with the provided data
as body.
Signing can be enabled with needSign
argument. Parses the response in
JsonApi format.
Optional
opts: Partial<JsonApiClientRequestOpts>Makes a POST
to a target endpoint
with the provided data
as body.
Parses the response in JsonApi format.
Optional
opts: Partial<JsonApiClientRequestOpts>Makes a PUT
to a target endpoint
with the provided data
as body.
Parses the response in JsonApi format.
Optional
opts: Partial<JsonApiClientRequestOpts>Performs a http request
Assigns new base URL to the current instance.
Sets Fetcher instance to the client instance.
Creates new instance JsonApiClient instance with given base URL.
Generated using TypeDoc
Represents JsonApiClient that performs requests to backend