@platformatic/db-ra-data-rest
v0.41.0
Published
Platformatic DB React-Admin REST data provider
Downloads
14
Keywords
Readme
@platformatic/db-ra-data-rest
React Admin's data-provider that uses Platformatic DB REST API.
Install
npm install @platformatic/db-ra-data-rest
Usage
// in src/App.js
import * as React from "react";
import { Admin, Resource } from 'react-admin';
import platformaticDBRestDataProvider from '@platformatic/db-ra-data-rest';
import { PostList } from './posts';
const dataProvider = platformaticDBRestDataProvider();
const App = () => (
<Admin dataProvider={dataProvider}>
<Resource name="posts" list={PostList} />
</Admin>
);
export default App;
License
Apache 2.0