1.1.1 • Published 2 months ago

ra-strapi-v4-rest v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Rest Strapi v4 Provider For React-Admin

Rest Strapi v4 Provider for React Admin. For Strapi v3 try ra-strapi-rest.

Installation

npm i ra-strapi-v4-rest

Usage

import * as React from "react";
import { Admin, Resource } from "react-admin";
import { strapiRestProvider } from "ra-strapi-v4-rest";

import { PostList } from "./posts";

const App = () => (
  <Admin dataProvider={strapiRestProvider("http://path.to.my.api/")}>
    <Resource name="posts" list={PostList} />
  </Admin>
);

Nested filter example

The following will return all the books written by author with id 2:

<ReferenceInput
  source="book"
  reference="books"
  filter={{
    author: {
      id: 2,
    },
  }}
>
  <SelectInput fullWidth optionText="name" />
</ReferenceInput>

License

This data provider is licensed under the MIT License.

1.1.1

2 months ago

1.0.2

9 months ago

1.1.0

9 months ago

1.0.1

10 months ago

1.0.3

9 months ago

1.0.0

1 year ago

0.5.2

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago