A HAL data provider for react-admin.
This supersedes the unscoped ra-data-hal package, which is no longer
maintained and stops at 2.7.1.
npm install --save @kroo-web/ra-data-halPass a queryParams object in the params to send extra query parameters with a
request. It is merged into the params used to resolve the link, so anything the
link declares as a template variable is expanded into the URL and anything else
is sent as a query string.
dataProvider(GET_ONE, 'accounts', {
id: accountId,
queryParams: { includeBalances: 'true' }
})
// GET /accounts/<id>?includeBalances=trueSupported on GET_LIST, GET_ONE, GET_MANY, GET_MANY_REFERENCE and
DELETE. On GET_LIST and GET_MANY_REFERENCE it is merged alongside the
pagination, sort and filter parameters.
To run all tests:
npm run testTo run all pre-publish checks:
npm run prepublishOnlyTo publish:
npm publish