diff options
Diffstat (limited to 'lib/api/notification_settings.rb')
-rw-r--r-- | lib/api/notification_settings.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/api/notification_settings.rb b/lib/api/notification_settings.rb index 8cb46bd3ad6..9ebe5e912cb 100644 --- a/lib/api/notification_settings.rb +++ b/lib/api/notification_settings.rb @@ -8,8 +8,8 @@ module API helpers ::API::Helpers::MembersHelpers resource :notification_settings do - desc 'Get global notification level settings and email, defaults to Participate' do - detail 'This feature was introduced in GitLab 8.12' + desc "Get global notification level settings and email, defaults to Participate" do + detail "This feature was introduced in GitLab 8.12" success Entities::GlobalNotificationSetting end get do @@ -18,15 +18,15 @@ module API present notification_setting, with: Entities::GlobalNotificationSetting end - desc 'Update global notification level settings and email, defaults to Participate' do - detail 'This feature was introduced in GitLab 8.12' + desc "Update global notification level settings and email, defaults to Participate" do + detail "This feature was introduced in GitLab 8.12" success Entities::GlobalNotificationSetting end params do - optional :level, type: String, desc: 'The global notification level' - optional :notification_email, type: String, desc: 'The email address to send notifications' + optional :level, type: String, desc: "The global notification level" + optional :notification_email, type: String, desc: "The email address to send notifications" NotificationSetting.email_events.each do |event| - optional event, type: Boolean, desc: 'Enable/disable this notification' + optional event, type: Boolean, desc: "Enable/disable this notification" end end put do @@ -60,7 +60,7 @@ module API end resource source_type.pluralize, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do desc "Get #{source_type} level notification level settings, defaults to Global" do - detail 'This feature was introduced in GitLab 8.12' + detail "This feature was introduced in GitLab 8.12" success Entities::NotificationSetting end get ":id/notification_settings" do @@ -72,13 +72,13 @@ module API end desc "Update #{source_type} level notification level settings, defaults to Global" do - detail 'This feature was introduced in GitLab 8.12' + detail "This feature was introduced in GitLab 8.12" success Entities::NotificationSetting end params do optional :level, type: String, desc: "The #{source_type} notification level" NotificationSetting.email_events(source_class).each do |event| - optional event, type: Boolean, desc: 'Enable/disable this notification' + optional event, type: Boolean, desc: "Enable/disable this notification" end end put ":id/notification_settings" do |