0.1.4 • Published 7 years ago

@sebastien-cleany/aor-postgrest-client v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

postgREST Client for admin-on-rest

For using postgREST with admin-on-rest, use the postgrestClient function to convert AOR's REST dialect into one compatible with postgREST.

Installation

npm install aor-postgrest-client --save

Usage

// in src/App.js
import React from 'react';
import { Admin, Resource } from 'admin-on-rest';
import postgrestClient from 'aor-postgrest-client';
import { PostList } from './posts';

const App = () => (
    <Admin restClient={postgrestClient('/mypostgrestendpoint')}>
        <Resource name="posts" list={PostList} />
    </Admin>
);

export default App;

License

This library is licensed under the MIT Licence, and sponsored by tomberek.

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago