-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Nested API resources #261
Comments
The REST requests from admin-on-rest don't deal with nested resource. That means it's the responsibility of your REST client to turn something like:
into something like:
As for displaying a list of related records in edit view, check out |
And what about accessing a nested resource via the URL? What I mean is: |
You just need to map that in your
It's up to you to map that to your REST API route
|
Will admin-on-rest understand URLs like |
@simonschllng no, that's not planned. |
Note that this is possible with react-admin v4, see #8616 |
I am exploring this beautiful tool/framework. There is scenario I need to implement and do not understand how.
However it is many-to-many relationship between companies and users.
In order to get users from companies or add/remove user to company I need use following methods
Or we can retrieve list of companyIds to which company belong using following API request
And now I need to implement management of user who works in companies. I would like to have a Tabbed form on edit with
Users
that will display lists of users belong to companyGET /companies/{companyId}/users
and allow to add remove from this resource.The text was updated successfully, but these errors were encountered: