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/alert_management_alerts.rb')
-rw-r--r--lib/api/alert_management_alerts.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/alert_management_alerts.rb b/lib/api/alert_management_alerts.rb
index bbb7e7280c9..f03f133f6f7 100644
--- a/lib/api/alert_management_alerts.rb
+++ b/lib/api/alert_management_alerts.rb
@@ -32,7 +32,8 @@ module API
success Entities::MetricImage
end
params do
- requires :file, type: ::API::Validations::Types::WorkhorseFile, desc: 'The image file to be uploaded'
+ requires :file, type: ::API::Validations::Types::WorkhorseFile, desc: 'The image file to be uploaded',
+ documentation: { type: 'file' }
optional :url, type: String, desc: 'The url to view more metric info'
optional :url_text, type: String, desc: 'A description of the image or URL'
end