Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsonServerProvider (ra-data-json-server) misleading documentation #5680

Closed
newfylox opened this issue Dec 17, 2020 · 2 comments · Fixed by #5729
Closed

jsonServerProvider (ra-data-json-server) misleading documentation #5680

newfylox opened this issue Dec 17, 2020 · 2 comments · Fixed by #5729
Assignees

Comments

@newfylox
Copy link

Is your feature request related to a problem? Please describe.
At first, when using jsonServerProvider, I thought the getMany documentation was doing multiple GET calls as mentioned
getMany | GET http://my.api.url/posts/123, GET http://my.api.url/posts/456, GET http://my.api.url/posts/789

In fact, it uses query-string and it produces one call like this
GET http://my.api.url/posts?id=1&id=2&id=3

Describe the solution you'd like
Two things are wrong in the documentation. First, it assumes it calls GET multiple times and it's a "filter" query (?), not a controller action query (/).
Right now I've cloned the repository and I added { arrayFormat: "bracket" } as an option to stringify function to fit my API.

Is it possible to update the documentation? Thanks

@wangzuo
Copy link

wangzuo commented Apr 14, 2021

I guess it should be { arrayFormat: "bracket" } by default.

@dannyxu2015
Copy link

I guess it should be { arrayFormat: "bracket" } by default.

No, it's not default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants