summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2017-05-29 13:49:17 +0800
committerMark Fletcher <mark@gitlab.com>2017-06-06 20:16:41 +0800
commitad3e180ed3d99494414cb1b367f6b4e40ec28b87 (patch)
tree155c4e0f6b5529b3911a42ae2e8d5e80002c5a21 /lib/api/projects.rb
parente34e5761042579686fe149f16e7ec107b80224d2 (diff)
downloadgitlab-ce-ad3e180ed3d99494414cb1b367f6b4e40ec28b87.tar.gz
Introduce an Events API
* Meld the following disparate endpoints: * `/projects/:id/events` * `/events` * `/users/:id/events` + Add result filtering to the above endpoints: * action * target_type * before and after dates
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index deac3934d57..56046742e08 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -167,16 +167,6 @@ module API
user_can_admin_project: can?(current_user, :admin_project, user_project), statistics: params[:statistics]
end
- desc 'Get events for a single project' do
- success Entities::Event
- end
- params do
- use :pagination
- end
- get ":id/events" do
- present paginate(user_project.events.recent), with: Entities::Event
- end
-
desc 'Fork new project for the current user or provided namespace.' do
success Entities::Project
end