Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomberek/aor-postgrest-client
postREST client for admin-on-rest
https://github.com/tomberek/aor-postgrest-client
Last synced: about 1 month ago
JSON representation
postREST client for admin-on-rest
- Host: GitHub
- URL: https://github.com/tomberek/aor-postgrest-client
- Owner: tomberek
- License: mit
- Created: 2017-02-04T07:57:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T13:11:11.000Z (over 3 years ago)
- Last Synced: 2024-08-29T18:35:09.432Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 78
- Watchers: 10
- Forks: 33
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# postgREST Client for admin-on-rest
For using [postgREST](https://github.com/begriffs/postgrest) with [admin-on-rest](https://github.com/marmelab/admin-on-rest), use the `postgrestClient` function to convert AOR's REST dialect into one compatible with postgREST.
## Installation
```sh
npm install aor-postgrest-client --save
```## Usage
See the example in `App.js.example`
```js
// in src/App.js
import React from 'react';
import { Admin, Resource } from 'react-admin';
import postgrestClient from 'aor-postgrest-client';
import { List, Datagrid, TextField, NumberField } from 'react-admin';import { ShowButton, EditButton, Edit, SimpleForm, DisabledInput, TextInput, NumberInput } from 'react-admin';
import { Create} from 'react-admin';
import { Show, SimpleShowLayout } from 'react-admin';const BookList = (props) => (
);
export const BookShow = (props) => (
);
export const BookEdit = (props) => (
);
export const BookCreate = (props) => (
);
const App = () => (
);export default App;
```## License
This library is licensed under the [MIT Licence](LICENSE), and sponsored by [tomberek](https://tomberek.info).