You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] [Api] /orgs/{:orgname}/repos POST endpoint is broken #11331
I am having trouble using the POST /orgs/<org_name>/repos api endpoint. This is the response I'm getting (with http status 422):
{"message":"org does not exist [id: 0, name: ]","url":"https://try.gitea.io/api/swagger"}
But if I switch to the deprecated /org/<org_name>/repos endpoint, it works just fine. It looks to me like the issue is that CreateOrgRepo is looking for the :org parameter here while the parameter in the route is named :orgnamehere. The deprecated route is working because it uses :org.
Activity
zeripath commentedon May 12, 2020
Fixed by #11339 and the breakout backport #11381