Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
d0000e5c
Commit
d0000e5c
authored
Oct 12, 2012
by
jozefvaclavik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doc/api/projects.md for hooks API
Added documentation for getting project hook and editing project hook.
parent
cfbd0b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
doc/api/projects.md
doc/api/projects.md
+34
-2
No files found.
doc/api/projects.md
View file @
d0000e5c
...
@@ -196,9 +196,9 @@ Parameters:
...
@@ -196,9 +196,9 @@ Parameters:
Status code
`200`
will be returned on success.
Status code
`200`
will be returned on success.
##
Ge
t project hooks
##
Lis
t project hooks
Get
hooks for project
Get
list for project hooks
```
```
GET /projects/:id/hooks
GET /projects/:id/hooks
...
@@ -210,6 +210,21 @@ Parameters:
...
@@ -210,6 +210,21 @@ Parameters:
Will return hooks with status
`200 OK`
on success, or
`404 Not found`
on fail.
Will return hooks with status
`200 OK`
on success, or
`404 Not found`
on fail.
## Get project hook
Get hook for project
```
GET /projects/:id/hooks/:hook_id
```
Parameters:
+
`id`
(required) - The ID or code name of a project
+
`hook_id`
(required) - The ID of a project hook
Will return hook with status
`200 OK`
on success, or
`404 Not found`
on fail.
## Add project hook
## Add project hook
Add hook to project
Add hook to project
...
@@ -225,6 +240,23 @@ Parameters:
...
@@ -225,6 +240,23 @@ Parameters:
Will return status
`201 Created`
on success, or
`404 Not found`
on fail.
Will return status
`201 Created`
on success, or
`404 Not found`
on fail.
## Edit project hook
Edit hook for project
```
PUT /projects/:id/hooks/:hook_id
```
Parameters:
+
`id`
(required) - The ID or code name of a project
+
`hook_id`
(required) - The ID of a project hook
+
`url`
(required) - The hook URL
Will return status
`201 Created`
on success, or
`404 Not found`
on fail.
## Delete project hook
## Delete project hook
Delete hook from project
Delete hook from project
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment