OptionalbasePrefixed to every request path, exactly once.
OptionalconfigureAdjusts a request as it is made.
Runs per call and may be async, so it covers what static options cannot: a rotating or awaited token, a header only one operation sends, a verb chosen from the payload. Its result is merged over the static options.
OptionalendpointsOverrides for the per-operation paths.
OptionalfetchInjected for testing; defaults to the global fetch.
Optionalinit: RequestInitOptionalinit: RequestInitOptionalheadersSent with every request, merged over the default content type.
OptionalinitPassed through to fetch on every request.
This is where credentials: 'include' for cookie auth lives, along with
mode, cache, redirect and a long-lived signal.
OptionalmethodsOverrides for the HTTP verb used by each mutating operation.
OptionalparamOverrides for query-parameter names, for APIs with another vocabulary.
OptionalparseMaps a create or update response onto the stored record.
The inbound counterpart to serializeRequest. Without it a write response
is taken as the record itself, so an API that answers { data: { ... } }
hands back the envelope.
OptionalparseMaps a list response onto a page. Required when the API wraps its payload.
OptionalqueryAppended to every request's query string, merged with generated parameters.
OptionalserializeMaps a draft onto the request body. Defaults to sending the draft as-is.
Everything needed to point a RestDataSource at an API.