API Core Client for Admin on REST
REST client for the admin-on-rest package to work with api-core based APIs.
Installation
To install the latest version, use NPM:
$ npm install api-client-admin-on-rest
Usage
For example in the tutorial you can simply replace the built in rest client with this one:
import React from 'react';
import { restClient } from 'api-client-admin-on-rest';
import { Admin, Resource } from 'admin-on-rest';
import { PostList } from './posts';
const App = () => (
<Admin restClient={restClient('http://api.example.com')}>
<Resource name="posts" list={PostList} />
</Admin>
);
export default App;
Tests
Coming soon...
License
The MIT License. Free forever. :)