diff options
author | Aravinth Manivannan <realaravinth@batsense.net> | 2021-12-24 14:43:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-24 22:43:00 +0800 |
commit | c7151c2fb6c91d6d3263af3e8baac73fbeaecbbc (patch) | |
tree | c5eeef2e3d65c0e7db046cc28d013b9de39955b3 /templates | |
parent | 532383d7ddca2eeed37d2af20cd91f2824fc9cc7 (diff) | |
download | gitea-c7151c2fb6c91d6d3263af3e8baac73fbeaecbbc.tar.gz gitea-c7151c2fb6c91d6d3263af3e8baac73fbeaecbbc.zip |
- name: new parameter in CreateForkOption to give the forked repository (#18066)
a custom name, intended to be used when there's a name conflict
- When a fork request results in a name conflict, HTTP 409: Conflict is
returned instead of 500
- API documentation for the above mentioned changes
Signed-off-by: realaravinth <realaravinth@batsense.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 96dd262301..992cdf5bda 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -3509,6 +3509,9 @@ "403": { "$ref": "#/responses/forbidden" }, + "409": { + "description": "The repository with the same name already exists." + }, "422": { "$ref": "#/responses/validationError" } @@ -13376,6 +13379,11 @@ "description": "CreateForkOption options for creating a fork", "type": "object", "properties": { + "name": { + "description": "name of the forked repository", + "type": "string", + "x-go-name": "Name" + }, "organization": { "description": "organization name, if forking into an organization", "type": "string", |