diff options
author | miks <miks@cubesystems.lv> | 2012-09-08 20:51:12 +0300 |
---|---|---|
committer | miks <miks@cubesystems.lv> | 2012-09-08 20:51:12 +0300 |
commit | 3b5a90bdf654f9715fd15c189d59bd56492bae8c (patch) | |
tree | 6546b525c43688aa3a25d4679d8244be03c3a4ed /doc | |
parent | 27e443650746ddb7bf63d9a34d4afaa15350521d (diff) | |
download | gitlab-ce-3b5a90bdf654f9715fd15c189d59bd56492bae8c.tar.gz |
Projects hooks API implemented
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/projects.md | 44 |
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. |