diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-07 15:07:34 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-07 15:07:34 +0000 |
commit | b4028d450087e97f26d4baa23e08396bcbabe3e0 (patch) | |
tree | f84a5cbb29e43bab0ba58db1bc5619112c8c482e /lib/api/services.rb | |
parent | 05f1d5d9813332bdd456cb358517e56168a24224 (diff) | |
download | gitlab-ce-b4028d450087e97f26d4baa23e08396bcbabe3e0.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/services.rb')
-rw-r--r-- | lib/api/services.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/api/services.rb b/lib/api/services.rb index 03c51f65172..a3b5d2cc4b7 100644 --- a/lib/api/services.rb +++ b/lib/api/services.rb @@ -66,6 +66,15 @@ module API end end + desc 'Get all active project services' do + success Entities::ProjectServiceBasic + end + get ":id/services" do + services = user_project.services.active + + present services, with: Entities::ProjectServiceBasic + end + SERVICES.each do |service_slug, settings| desc "Set #{service_slug} service for project" params do |