A local, in-memory REST client for admin-on-rest (AOR) that uses a JavaScript object as a data source. Version 2.1.0 is the latest stable release; the package is unmaintained since admin-on-rest has been superseded by react-admin. It serves for prototyping and testing without a backend, using Fakerest under the hood. Unlike a real HTTP client, all data changes are lost on page refresh, and it is explicitly not for production use. The package is designed solely for the now-deprecated admin-on-rest framework (v1.x).
npm install aor-json-rest-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to set up an admin-on-rest app with an in-memory data object as the REST client.
Migrate to react-admin and use ra-data-simple-rest or ra-data-json-server.
Switch to a persistent REST client like ra-data-simple-rest.
Pass a boolean as second argument to enable logging.
Use import jsonRestClient from 'aor-json-rest-client'.
npm install --save-dev aor-json-rest-client
Use ES import: import jsonRestClient from 'aor-json-rest-client'
<Admin restClient={jsonRestClient(data)}>