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 for POST/PUT/PATCH/DELETE on nested relationships?

See original GitHub issue

First 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:open
  • Created 8 years ago
  • Reactions:6
  • Comments:6

github_iconTop GitHub Comments

1reaction
youhongshencommented, Jun 10, 2016

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!

0reactions
aleontievcommented, Jun 15, 2016

@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?

Read more comments on GitHub >

github_iconTop 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 >

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