@platformatic/db-ra-data-rest

0.41.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @platformatic/db-ra-data-rest

Weekly Downloads

71

Version

0.41.0

License

Apache-2.0

Unpacked Size

47.2 kB

Total Files

6

Last publish

Collaborators

  • qard
  • shogun_panda
  • antoniosonis
  • mzugm
  • leorossi
  • marcopiraccini
  • ivan-tymoshenko
  • matteo.collina