diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2016-05-13 06:40:43 +0300 |
---|---|---|
committer | Gabriel Mazetto <gabriel@gitlab.com> | 2016-05-30 22:12:50 +0300 |
commit | 6506a9dd4433a261531613b344c3307159cd7d72 (patch) | |
tree | 1eb366ed2073d5cc4be780ee5d7df62d15df4ac7 | |
parent | e3311178a3ea877740f842b4145372623d553d4b (diff) |
Added documentation to current Wiki Page event webhook
-rw-r--r-- | doc/web_hooks/web_hooks.md | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/web_hooks/web_hooks.md b/doc/web_hooks/web_hooks.md index 45506ac1d7c..0777463def5 100644 --- a/doc/web_hooks/web_hooks.md +++ b/doc/web_hooks/web_hooks.md @@ -695,6 +695,60 @@ X-Gitlab-Event: Merge Request Hook } ``` +## Wiki Page events + +Triggered when a wiki page is created or edited. + +**Request Header**: + +``` +X-Gitlab-Event: Wiki Page Hook +``` + +**Request Body**: + +```json +{ + "object_kind": "wiki_page", + "user": { + "name": "Administrator", + "username": "root", + "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon" + }, + "project": { + "name": "awesome-project", + "description": "This is awesome", + "web_url": "http://example.com/root/awesome-project", + "avatar_url": null, + "git_ssh_url": "git@example.com:root/test-project.git", + "git_http_url": "http://example.com/root/awesome-project.git", + "namespace": "root", + "visibility_level": 0, + "path_with_namespace": "root/awesome-project", + "default_branch": "master", + "homepage": "http://example.com/root/awesome-project", + "url": "git@example.com:root/awesome-project.git", + "ssh_url": "git@example.com:root/awesome-project.git", + "http_url": "http://example.com/root/awesome-project.git" + }, + "object_attributes": { + "title": "Awesome", + "content": "awesome content goes here", + "format": "markdown", + "message": "adding an awesome page to the wiki", + "slug": "awesome", + "url": "http://example.com/root/awesome-project/wikis/awesome", + "action": "create" + }, + "repository": { + "name": "awesome-project", + "url": "git@example.com:root/awesome-project.git", + "description": "test", + "homepage": "http://example.com/root/awesome-project" + } +} +``` + #### Example webhook receiver If you want to see GitLab's webhooks in action for testing purposes you can use |