API root, e.g. "https://example.com/api". A trailing slash is removed.
OptionalbodyHow post, put, patch and delete send their body. Default "json".
OptionaldebugLog every request and response body to the console. Default false.
OptionalheadersHeaders for every request: a fixed object, or a function called per request. Use a function for auth tokens that only exist after the client is created, e.g. set by a setup project.
Settings for an ApiBase client.