Skip to content

JSON-API compliant restClient for Admin-On-Rest

Notifications You must be signed in to change notification settings

moonlight-labs/aor-jsonapi-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

JSON-API compliant restClient for Admin-On-Rest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published