gitea/templates
Giteabot b2b5c80cb2
Use correct response code in push mirror creation response in v1_json.tmpl (#25476) (#25571)
Backport #25476 by @GeorgDangl

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: Georg Dangl <10274404+GeorgDangl@users.noreply.github.com>
2023-06-28 19:00:56 -04:00
..
admin Fix admin-dl-horizontal (#25512) (#25535) 2023-06-27 17:06:36 +00:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Align language menu icon and fit the footer area (#25556) (#25563) 2023-06-28 11:51:24 -04:00
code Use data-tooltip-content for tippy tooltip (#23649) 2023-03-24 18:35:38 +08:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Fine tune "dropdown button" icon (#25442) (#25499) 2023-06-25 14:35:26 +08:00
explore Fix repo search broken because of profile page added (#25455) (#25467) 2023-06-23 15:48:35 +02:00
mail Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
org Button and color enhancements (#24989) (#25176) 2023-06-11 02:13:08 +00:00
package Fix dropdown icon layout on diff page (#25397) (#25403) 2023-06-21 10:55:11 +08:00
projects Remove test string (#25447) (#25448) 2023-06-22 17:30:51 +00:00
repo Improve loadprojects for issue list (#25468) (#25493) 2023-06-26 02:06:58 +00:00
shared Various UI fixes (#25264) (#25431) 2023-06-22 10:19:38 +00:00
status Show OAuth2 errors to end users (#25261) (#25271) 2023-06-15 02:48:36 +00:00
swagger Use correct response code in push mirror creation response in v1_json.tmpl (#25476) (#25571) 2023-06-28 19:00:56 -04:00
user Change `Regenerate Secret` button display (#25534) (#25541) 2023-06-27 20:14:58 +00:00
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2023-04-01 13:47:54 +08:00
install.tmpl Use "utf8mb4" for MySQL by default (#25432) 2023-06-22 07:38:23 +02:00
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) (#25129) 2023-06-08 11:22:32 +00:00