-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
api v3 is missing add a subproject #6157
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
Comments
Thanks for your feedback. I'm thinking this can be implemented in this way:
{
"child": "subproject-slug",
"alias": "subproject-alias",
}
I was thinking that GET on Regarding permissions, the user should be maintainer of both Projects (super- and sub-). @readthedocs/core what do you think? |
I would change the post request from
I think it does, we don't have other way to show the alias/original slug |
Thanks. I made a mistake when writing the URL. I edited my comment.
Under |
I think that the top-level project slug in the endpoint is enough to understand where we are. I think anything under subprojects should reflect only the particular subproject. |
@humitos I think we need to show the alias somehow, currently you can only see the slug, but we use the alias to make requests. I'm +1 on something like {
"child": <project object>,
"alias": "alias"
} That can allow us to put more information if needed (like creation date). BTW, I don't think we are showing that information for normal projects currently. |
Listing // inside "results"
{
"alias": "myalias",
"child": "subproject-slug",
"parent": "superproject-slug",
"_links": {
"parent": "", // URL to details endpoint
"child": "", // URL to details endpoint
"_self": "",
// ...
} This way we don't loose the "discover-ability" of the API and we still can navigate over it. We will still have all the data needed (without too many details as a Project detail) without loosing functionality, I guess. There is a similar case for translations ( I'm not convinced about what's the best solution here. |
Instead of showing just the |
Closed by #6176 |
Details
Adding a project as a Subproject of another project is still a manual operation.
From the docs:
In the admin dashboard for your project, select “Subprojects” from the menu. From this page you can add a subproject by typing in the project slug.
The API v3 Only has the method for: "Subprojects listing"
Expected Result
In order to take advantage of subprojects we will need an API method, so that new projects that are added can be properly placed under their parent project
Actual Result
Currently an admin would need to monitor new projects as they add their first docs and add them as a subproject by hand.
The text was updated successfully, but these errors were encountered: