Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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