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 <xiaolunwen@gmail.com>
tokarchuk/v1.17
Chongyi Zheng 3 years ago committed by GitHub
parent 0d3d9675c6
commit f029b9ae4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/api/v1/repo/migrate.go
  2. 3
      templates/swagger/v1_json.tmpl

@ -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"

@ -2222,6 +2222,9 @@
"403": {
"$ref": "#/responses/forbidden"
},
"409": {
"description": "The repository with the same name already exists."
},
"422": {
"$ref": "#/responses/validationError"
}

Loading…
Cancel
Save