{id} in a URL is replaced by the URL-encoded id (/api/items/{id} → /api/items/a%2Fb);
requests with a body (updateItem, createItem) send JSON with Content-Type: application/json
(unless getHeadersInit() already sets a Content-Type);
the promise is rejected for an HTTP error status (4xx/5xx) and when no URL is configured;
an empty response body (e.g. 204 No Content) resolves with undefined.
Every call can be replaced, e.g. to use your own HTTP client.
Settings and REST calls of a CRUD table (CrudTableModelFactory).
The default REST calls use
fetch:{id}in a URL is replaced by the URL-encoded id (/api/items/{id}→/api/items/a%2Fb);updateItem,createItem) send JSON withContent-Type: application/json(unlessgetHeadersInit()already sets aContent-Type);204 No Content) resolves withundefined.Every call can be replaced, e.g. to use your own HTTP client.
Example