ra-ror-jsonapi-client

2.0.1 • Public • Published

Rails JSON API REST client for react-admin.

A JSONAPI compatible adapter for react-admin that allows for rapidly building admin interfaces in React using the RA framework.

Installation

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

npm install ra-ror-jsonapi-client

It can also be installed using yarn:

yarn add ra-ror-jsonapi-client

Usage

//in app.js
import React from "react";
import { Admin, Resource } from "react-admin";
import dataProvider from "ra-ror-jsonapi-client/build/restClient";
 
const restClient = jsonAPIRestClient("http://localhost:3000");
 
const App = () => (
  <Admin dataProvider={dataProvider}>
    ...
  </Admin>
);
 
export default App;

/ra-ror-jsonapi-client/

    Package Sidebar

    Install

    npm i ra-ror-jsonapi-client

    Weekly Downloads

    1

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    78.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • binao