diff options
author | Sebastian Ziebell <sebastian.ziebell@asquera.de> | 2013-02-27 17:50:30 +0100 |
---|---|---|
committer | Sebastian Ziebell <sebastian.ziebell@asquera.de> | 2013-02-27 17:50:30 +0100 |
commit | 7499f65014257989510da50505fa7c0f5a4fae88 (patch) | |
tree | b8c9355b73ec48c12bfa9d6416fa91ba4c4444e6 /doc/api | |
parent | 43d75960303be538fb79804ca6e2a90241aee0df (diff) | |
download | gitlab-ce-7499f65014257989510da50505fa7c0f5a4fae88.tar.gz |
API: extracted helper method to validate required parameters, code clean up
Added a helper method to check if required parameters are given in an API call. Can be used
to return a `400 Bad Request` return code if a required attribute is missing.
Code clean up and fixed tests.
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/projects.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index 1d6afbc2039..fe0080963c9 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -368,7 +368,7 @@ Removes a hook from project. This is an idempotent method and can be called mult Either the hook is available or not. ``` -DELETE /projects/:id/hooks/:hook_id +DELETE /projects/:id/hooks/ ``` Parameters: @@ -379,6 +379,7 @@ Parameters: Return values: + `200 Ok` on succes ++ `403 Forbidden` if user is not allowed to delete a hook + `404 Not Found` if the project can not be found Note the JSON response differs if the hook is available or not. If the project hook |