question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support full set of REST calls expected by react-admin

See original GitHub issue

The combination of a react-admin interface for a SQLite backend could be a really lightweight solution to many problems. But, there isn’t (yet) a REST wrapper for SQLite that is capable of integrating with react-admin

It now looks like soul may be the missing component to getting this working. But, the Soul API needs to be extended, just a little: https://marmelab.com/react-admin/DataProviderWriting.html#request-format

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
IanMayocommented, Nov 4, 2022

@IanMayo, Btw I just released v0.0.9 which adds bulk mode support in retrieve, update and delete endpoints and there’s no extra endpoints for it. And the endpoints are like this now:

  • /tables/singers/rows/1: To retrieve (or update and delete) a single row
  • /tables/singers/rows/1,2,3: To retrieve (or update and delete) multiple rows

Hey - hold on to your hats everyone. @thevahidal is “moving fast and breaking things”. It’s great to be part of the journey 🤸 🤸 🤸

0reactions
IanMayocommented, Nov 4, 2022

Please let me know if you know a more intuitive way to do it.

I know it’s two calls, but I think the 1,2,3 could be a tidy way of doing it. As the client app is collating the Tracks data, it get the tracks/_filters=RockGod:true. Then it loops through the rows and collates the Albums it needs data about then calls albums/1,3,4?_schema=AlbumId, Title (or something like that 😃. If there is only one albumId (albums/4) then the call may even have been cached - one of the aims of REST.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-admin - Using Data Providers - Marmelab
Note: The simple REST client expects the API to include a Content-Range header in the response to getList calls. The value must be...
Read more >
Data Providers - React-admin - Marmelab
Note: The simple REST client expects the API to include a Content-Range header in the response to getList calls. The value must be...
Read more >
React-admin - Querying the API - Marmelab
Just like the dataProvider injected prop, the <Query> component expects three parameters: type , resource , and payload . It fetches the data...
Read more >
Writing A Data Provider - React-admin - Marmelab
Tip: If your API supports more request types, you can add more methods to the ... here are example responses matching the format...
Read more >
Data Providers - React-admin - Marmelab
Note: The simple REST client expects the API to include a Content-Range header in the response to GET_LIST calls. The value must be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found