forgejo/templates
Georg Dangl 9538842364
Use correct response code in push mirror creation response in v1_json.tmpl (#25476)
In the process of doing a bit of automation via the API, we've
discovered a _small_ issue in the Swagger definition. We tried to create
a push mirror for a repository, but our generated client raised an
exception due to an unexpected status code.

When looking at this function:

3c7f5ed7b5/routers/api/v1/repo/mirror.go (L236-L240)

We see it defines `201 - Created` as response:

3c7f5ed7b5/routers/api/v1/repo/mirror.go (L260-L262)

But it actually returns `200 - OK`:

3c7f5ed7b5/routers/api/v1/repo/mirror.go (L373)

So I've just updated the Swagger definitions to match the code😀

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2023-06-28 22:00:19 +00:00
..
admin Use flex instead of float for sort button and search input (#25519) 2023-06-28 20:10:36 +08:00
api/packages/pypi
base Align language menu icon and fit the footer area (#25556) 2023-06-28 14:57:50 +00:00
code Use flex instead of float for sort button and search input (#25519) 2023-06-28 20:10:36 +08:00
custom
devtest
explore Use flex instead of float for sort button and search input (#25519) 2023-06-28 20:10:36 +08:00
mail
org
package
projects
repo Fix migrate page layout on mobile (#25507) 2023-06-26 09:57:36 +00:00
shared
status
swagger Use correct response code in push mirror creation response in v1_json.tmpl (#25476) 2023-06-28 22:00:19 +00:00
user Change Regenerate Secret button display (#25534) 2023-06-27 15:20:52 +00:00
home.tmpl
install.tmpl
post-install.tmpl