Skip to content

Commit f029b9a

Browse files
harryzcylunny
andauthored
Document 409 error returned by repos/migrate api (#19376)
* Document 409 error returned by repos/migrate api * Generate swagger spec Co-authored-by: Lunny Xiao <[email protected]>
1 parent 0d3d967 commit f029b9a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

routers/api/v1/repo/migrate.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ func Migrate(ctx *context.APIContext) {
5252
// "$ref": "#/responses/Repository"
5353
// "403":
5454
// "$ref": "#/responses/forbidden"
55+
// "409":
56+
// description: The repository with the same name already exists.
5557
// "422":
5658
// "$ref": "#/responses/validationError"
5759

templates/swagger/v1_json.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,9 @@
22222222
"403": {
22232223
"$ref": "#/responses/forbidden"
22242224
},
2225+
"409": {
2226+
"description": "The repository with the same name already exists."
2227+
},
22252228
"422": {
22262229
"$ref": "#/responses/validationError"
22272230
}

0 commit comments

Comments
 (0)