diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-06 07:42:43 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-06 07:42:43 -0800 |
commit | 65d78253cb289091a4eb389bada11828849d434c (patch) | |
tree | e002a0c13e744407e90f14b3f3b8d92bd5bb675a /doc/api | |
parent | 0384ef46b8839e7d9824473952e82ec62f72081a (diff) | |
parent | 1dd712ddc238d2e6c30be09cb071c8e9b60cfcac (diff) | |
download | gitlab-ce-65d78253cb289091a4eb389bada11828849d434c.tar.gz |
Merge pull request #3156 from m4tthumphrey/api-system-hooks
Added methods to manage system hooks from API
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/system_hooks.md | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/api/system_hooks.md b/doc/api/system_hooks.md new file mode 100644 index 00000000000..f6e11ed238e --- /dev/null +++ b/doc/api/system_hooks.md @@ -0,0 +1,47 @@ +All methods require admin authorization.
+
+## List system hooks
+
+Get list of system hooks
+
+```
+GET /hooks
+```
+
+Will return hooks with status `200 OK` on success, or `404 Not found` on fail.
+
+## Add new system hook hook
+
+```
+POST /hooks
+```
+
+Parameters:
+
++ `url` (required) - The hook URL
+
+Will return status `201 Created` on success, or `404 Not found` on fail.
+
+## Test system hook
+
+```
+GET /hooks/:id
+```
+
+Parameters:
+
++ `id` (required) - The ID of hook
+
+Will return hook with status `200 OK` on success, or `404 Not found` on fail.
+
+## Delete system hook
+
+```
+DELETE /hooks/:id
+```
+
+Parameters:
+
++ `id` (required) - The ID of hook
+
+Will return status `200 OK` on success, or `404 Not found` on fail.
\ No newline at end of file |