Filippo Giunchedi has submitted this change and it was merged.

Change subject: RESTBase config: Add Swagger UI header info
......................................................................


RESTBase config: Add Swagger UI header info

As of v0.7.1 of HyperSwitch, the header and title of the generated docs
is configurable, so set them to the proper values for RESTBase.

Change-Id: I75fcb0a45bf240409263080ca41101eaa26e2bf7
---
M modules/restbase/templates/config.labs.yaml.erb
M modules/restbase/templates/config.yaml.erb
2 files changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Filippo Giunchedi: Verified; Looks good to me, approved



diff --git a/modules/restbase/templates/config.labs.yaml.erb 
b/modules/restbase/templates/config.labs.yaml.erb
index 8ff6cf6..14468d7 100644
--- a/modules/restbase/templates/config.labs.yaml.erb
+++ b/modules/restbase/templates/config.labs.yaml.erb
@@ -143,6 +143,9 @@
       salt: <%= @salt_key %>
       default_page_size: <%= @page_size %>
       user_agent: RESTBase/deployment-prep
+      ui_name: RESTBase
+      ui_url: https://www.mediawiki.org/wiki/RESTBase
+      ui_title: RESTBase docs
 
 # Log error messages and gracefully restart a worker if v8 reports using more
 # heap (note: not RSS).
diff --git a/modules/restbase/templates/config.yaml.erb 
b/modules/restbase/templates/config.yaml.erb
index 920396d..39c3f69 100644
--- a/modules/restbase/templates/config.yaml.erb
+++ b/modules/restbase/templates/config.yaml.erb
@@ -900,6 +900,9 @@
       salt: <%= @salt_key %>
       default_page_size: <%= @page_size %>
       user_agent: RESTBase/WMF
+      ui_name: RESTBase
+      ui_url: https://www.mediawiki.org/wiki/RESTBase
+      ui_title: RESTBase docs
 
 # Log error messages and gracefully restart a worker if v8 reports using more
 # heap (note: not RSS).

-- 
To view, visit https://gerrit.wikimedia.org/r/311958
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I75fcb0a45bf240409263080ca41101eaa26e2bf7
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mobrovac <mobro...@wikimedia.org>
Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to