Skip to content

Fix /api/v1/orgs/* endpoints by changing parameter to :org from :orgname #11378

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

Closed
wants to merge 2 commits into from

Conversation

6543
Copy link
Member

@6543 6543 commented May 11, 2020

The /api/v1/orgs/* routes previously had :orgname however, all of the functions require :org.

This PR switches these back to :org.

#11332 was only a partial fix but broke multiple other orgs route in the process.

Fix #11331
Close #11332

@6543
Copy link
Member Author

6543 commented May 11, 2020

@iondune nothing against your solution but this make swagger docs to macron param same + fix other apis ...

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 11, 2020
@zeripath zeripath changed the title [API] [Fix] orgname: correct param-name to swagger doc one Fix /api/v1/orgs/* endpoints by changing parameter to :org from :orgname May 11, 2020
@zeripath zeripath added modifies/api This PR adds API routes or modifies them type/bug labels May 11, 2020
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 11, 2020
@zeripath zeripath added this to the 1.12.0 milestone May 11, 2020
@lafriks
Copy link
Member

lafriks commented May 11, 2020

Close as already fixed, need only backport to 1.11.6

@lafriks lafriks closed this May 11, 2020
@6543 6543 deleted the api-orgname-2-org_fix-param branch May 12, 2020 02:08
@lafriks lafriks added the backport/done All backports for this PR have been created label May 12, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/need 1 This PR needs approval from one additional maintainer to be merged. modifies/api This PR adds API routes or modifies them type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [Api] /orgs/{:orgname}/repos POST endpoint is broken
4 participants