opinaia-aor-jsonapi-client

0.1.16-rc.0 • Public • Published

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 --save-dev 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;

Roadmap

Package Sidebar

Install

npm i opinaia-aor-jsonapi-client

Weekly Downloads

0

Version

0.1.16-rc.0

License

ISC

Unpacked Size

12.1 kB

Total Files

8

Last publish

Collaborators

  • diego.gluj