Closed cancan101 closed 6 years ago
This sounds similar to https://github.com/tomchristie/django-rest-framework/issues/1978#issuecomment-61966453, which was recently rejected from the core.
So what are thoughts on adding this sort of feature to drf-extensions?
Do you have any suggestions about router interfaces for this feature?
Maybe add a parameter to the router: collapse
that specifies not adding the intermediate hierarchy.
There are some corner cases ie you would have issues if you wanted to support:
groups/<group_id>/users/<user_id>
AND groups/<group_id>/<user_id>
since the user could not be named users
.
+1 and contributions are wellcome
Support for GitHub style nested routing:
this instead of: