Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authormiks <miks@cubesystems.lv>2012-09-08 21:51:12 +0400
committermiks <miks@cubesystems.lv>2012-09-08 21:51:12 +0400
commit3b5a90bdf654f9715fd15c189d59bd56492bae8c (patch)
tree6546b525c43688aa3a25d4679d8244be03c3a4ed /doc/api
parent27e443650746ddb7bf63d9a34d4afaa15350521d (diff)
Projects hooks API implemented
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/projects.md44
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 72874e59682..73d6adc9bc3 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -173,6 +173,50 @@ Parameters:
Will return status `200 OK` on success, or `404 Not found` on fail.
+## Get project hooks
+
+Get hooks for project
+
+```
+GET /projects/:id/hooks
+```
+
+Parameters:
+
++ `id` (required) - The ID or code name of a project
+
+Will return hooks with status `200 OK` on success, or `404 Not found` on fail.
+
+## Add project hook
+
+Add hook to project
+
+```
+POST /projects/:id/hooks
+```
+
+Parameters:
+
++ `id` (required) - The ID or code name of a project
++ `url` (required) - The hook URL
+
+Will return status `201 Created` on success, or `404 Not found` on fail.
+
+## Delete project hook
+
+Delete hook from project
+
+```
+DELETE /projects/:id/hooks
+```
+
+Parameters:
+
++ `id` (required) - The ID or code name of a project
++ `hook_id` (required) - The ID of hook to delete
+
+Will return status `200 OK` on success, or `404 Not found` on fail.
+
## Project repository branches
Get a list of repository branches from a project, sorted by name alphabetically.