Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/project_events.rb')
-rw-r--r--lib/api/project_events.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/api/project_events.rb b/lib/api/project_events.rb
index e8829216336..d90ce32c354 100644
--- a/lib/api/project_events.rb
+++ b/lib/api/project_events.rb
@@ -12,10 +12,15 @@ module API
urgency :low
params do
- requires :id, type: String, desc: 'The ID of a project'
+ requires :id, types: [String, Integer], desc: 'The ID or URL-encoded path of the project'
+ optional :action, type: String, desc: 'Include only events of a particular action type'
+ optional :target_type, type: String, desc: 'Include only events of a particular target type'
+ optional :before, type: DateTime, desc: 'Include only events created before a particular date'
+ optional :after, type: DateTime, desc: 'Include only events created after a particular date'
+ optional :sort, type: String, desc: 'Sort events in asc or desc order by created_at. Default is desc'
end
resource :projects, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
- desc "List a Project's visible events" do
+ desc "List a project's visible events" do
success Entities::Event
end
params do