JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q54050F
  • License ISC

JSON API REST Client for Admin-on-rest

Package Exports

  • aor-jsonapi-client

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aor-jsonapi-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

JSON API REST client for Admin-on-rest.

A JSONAPI compatible adapter for Admin-on-REST that allows for rapidly building admin interfaces in React using the AOR framework.

Installation

aor-jsonapi-client is available from npm. You can install it (and its required dependencies) using:

npm install aor-jsonapi-client

It can also be installed using yarn:

yarn add aor-jsonapi-client

Usage

//in app.js
import React from "react";
import { Admin, Resource } from "admin-on-rest";
import jsonAPIRestClient from "aor-jsonapi-client/build/restClient";

const restClient = jsonAPIRestClient("http://localhost:3000");

const App = () => (
  <Admin dashboard={Dashboard} restClient={restClient}>
    ...
  </Admin>
);

export default App;