Support for POST/PUT/PATCH/DELETE on nested relationships?
See original GitHub issueFirst of all, love this project so far!
From what I can determine from looking at https://github.com/AltSchool/dynamic-rest/blob/master/dynamic_rest/routers.py, it doesn’t appear as though there’s any support for managing nested relationships. Is this correct? If so, is there any intention on supporting this?
We are currently using drf-extensions to support nested routes, however I’d love to be able to rely solely on drf
and dynamic-rest
.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:6
- Comments:6
Top Results From Across the Web
REST API Design Best Practices for Sub and Nested Resources
After that, we will talk about the reasons that make nested resources ... and we can PUT and POST to it to change...
Read more >Should nested relationships be reflected in URLs for JSON API?
Some rules are: DELETE, UPDATE always to direct resource. POST use with nested resource if you want create both object and main relationship....
Read more >Support Embedded Relationships · Issue #1089 · json-api ...
A The server response must sideload any nested relationship sent in the request. This way clients can drop the records that were just...
Read more >Best practices for REST API design - Stack Overflow Blog
The most common methods include GET, POST, PUT, and DELETE. GET retrieves resources. POST submits new data to the server. PUT updates existing ......
Read more >JSON:API — Latest Specification (v1.1)
For instance, a server could support the inclusion of related resources along with a POST request to create a resource or relationship. Sparse ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I’m looking for the functionality where POST to /users/ would create the user and the groups that are nested within the user. Is this supported?
Thanks!
@youhongshen that’s not currently supported, and I believe that’s a different request from the one expressed in this ticket (
POST /users/
with nested groups to create a user along with groups vs.POST /users/1/groups
to create groups associated with an already-existing user).Can you create a new issue to track this?