Skip to content

dunghuynh/aor-epilogue-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Epilogue client for admin-on-rest

For using Epilogue with admin-on-rest, use the epilogueClient function to convert AOR's REST dialect into one compatible with Epilogue.

Installation

npm install aor-epilogue-client --save
or
yarn add aor-epilogue-client

Usage

// in src/App.js
import React from 'react';
import { Admin, Resource } from 'admin-on-rest';
import epilogueClient from 'aor-epilogue-client';
import { PostList } from './posts';

const App = () => (
    <Admin restClient={epilogueClient('/my_epilogue_endpoint')}>
        <Resource name="posts" list={PostList} />
    </Admin>
);

export default App;

License

This library is licensed under the MIT Licence

About

An Epilogue Client for admin-on-rest

Resources

License

Stars

Watchers

Forks

Packages

No packages published