diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-04 15:52:42 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-04 15:52:42 +0300 |
commit | 9bb1d8fc8d2119ed46ac2e11ed9d295a61cf7a28 (patch) | |
tree | 51f60862e936de65c581f46bf4b641a2e7ad2cfa /doc | |
parent | 640a3c5c89cc2d20382f4c1045e4b0b05964176a (diff) | |
parent | 392113919adc75ba1537d89a0de8d0641e24d5b8 (diff) | |
download | gitlab-ce-9bb1d8fc8d2119ed46ac2e11ed9d295a61cf7a28.tar.gz |
Merge pull request #7382 from Razer6/git_ref_validation
Validate branch/tag-names and references WebUI, API
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/branches.md | 5 | ||||
-rw-r--r-- | doc/api/repositories.md | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/api/branches.md b/doc/api/branches.md index 31469b6fe97..74386615545 100644 --- a/doc/api/branches.md +++ b/doc/api/branches.md @@ -196,6 +196,8 @@ Parameters: } ``` +It return 200 if succeed or 400 if failed with error message explaining reason. + ## Delete repository branch ``` @@ -207,4 +209,5 @@ Parameters: - `id` (required) - The ID of a project - `branch` (required) - The name of the branch -It return 200 if succeed or 405 if failed with error message explaining reason. +It return 200 if succeed, 404 if the branch to be deleted does not exist +or 400 for other reasons. In case of an error, an explaining message is provided. diff --git a/doc/api/repositories.md b/doc/api/repositories.md index 1074b78fd73..c9f6a45c347 100644 --- a/doc/api/repositories.md +++ b/doc/api/repositories.md @@ -71,6 +71,9 @@ Parameters: ] ``` +It returns 200 if the operation succeed. In case of an error, +405 with an explaining error message is returned. + ## List repository tree Get a list of repository files and directories in a project. |