]> source.dussan.org Git - gitea.git/commitdiff
Document 409 error returned by repos/migrate api (#19376)
authorChongyi Zheng <harryzheng25@gmail.com>
Tue, 12 Apr 2022 08:13:07 +0000 (04:13 -0400)
committerGitHub <noreply@github.com>
Tue, 12 Apr 2022 08:13:07 +0000 (16:13 +0800)
* Document 409 error returned by repos/migrate api

* Generate swagger spec

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
routers/api/v1/repo/migrate.go
templates/swagger/v1_json.tmpl

index d2c2d8ba146311e3278073ebbb14abac29e6e96a..f5851bfcae6669843009a67bef90795d3ec4adac 100644 (file)
@@ -52,6 +52,8 @@ func Migrate(ctx *context.APIContext) {
        //     "$ref": "#/responses/Repository"
        //   "403":
        //     "$ref": "#/responses/forbidden"
+       //   "409":
+       //     description: The repository with the same name already exists.
        //   "422":
        //     "$ref": "#/responses/validationError"
 
index 16b0c76400b0be374838b8b50d54a6c0c09f1f0d..4bf3874bae284a745ba795c70d69e551f7bb8ff5 100644 (file)
           "403": {
             "$ref": "#/responses/forbidden"
           },
+          "409": {
+            "description": "The repository with the same name already exists."
+          },
           "422": {
             "$ref": "#/responses/validationError"
           }