Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
APIv3 endpoint: allow to modify a Project once it's imported #5952
We are nesting all the endpoints inside `/projects/`. When hitting, `/project/<slug>` this endpoint does not have any "parent project", so we need to get the "project_slug" from the view kwargs instead of from the URL.
Do not allow any other action that's not list, retrieve or superproject when the detail=True (accessing an object directly) `/subprojects/` and `/translations/` are considered `list` actions with detail=True views.
ericholscher left a comment
This seems like a good change, but I don't fully understand it -- where is the logic that actually makes it so that PATCH works now? Is it the overridden
Basically, this is the line that allows the PATCH/PUT: https://github.com/readthedocs/readthedocs.org/pull/5952/files#diff-e7d0914abe4a0641d49078f90f75e695R77