1.0.5 • Published 5 years ago

ra-loopback-try v1.0.5

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-try
  2. On your App.js, add this:
import loopbackApiClient from 'ra-loopback-try';

...

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

...

    <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.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago