Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

aor-jsonapi-client

moonlight-labs344ISC0.2.0

JSON API REST Client for Admin-on-rest

react, admin-on-rest, json-api, rest-client

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;

changelog

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Contributors

[0.2.0] - 2017-12-14

  • CHANGE Upgrade dev dependencies (ie babel-loader)
  • CHANGE better npm package metadata via @practo
  • FIX standard json-api metadata keys ie: page, size, total via @practo
  • NEW ESlint and Prettier support

[0.1.15] - 2017-04-10

  • NEW Reference Field Functionality for GET_MANY and GET_MANY_REFERENCE
  • CHANGE Merge meta data with attributes in convertHTTPResponseToREST - type GET_MANY_REFERENCE/GET_LIST.