1.4.0 • Published 5 years ago

ra-loopback v1.4.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Loopback-style REST Client for react-admin

Loopback-style REST Client for react-admin, the frontend framework for building admin applications on top of REST services.

Prerequisite

  • Your loopback server must response X-Total-Count header when querying list. Please use loopback3-xTotalCount on your server end.

How to use

  1. yarn add ra-loopback
  2. On your App.js, add this:
import loopbackApiClient from 'ra-loopback';

...

    <Admin restClient={loopbackApiClient('http://my.api.url/api')} ...>
  1. If you want this module handle authentication, add this:
import loopbackApiClient, {authClient} from 'ra-loopback';

...

    <Admin restClient={loopbackApiClient('http://my.api.url/api')} authClient={authClient('http://my.api.url/api/users/login')} ...>

License

This module is licensed under the MIT Licence.

1.4.0

5 years ago

1.3.7

5 years ago

1.3.6

5 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago