Mobrovac has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311958

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/58/311958/1

diff --git a/modules/restbase/templates/config.labs.yaml.erb 
b/modules/restbase/templates/config.labs.yaml.erb
index 0037bb9..c38c614 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 8cd9690..2b98847 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: newchange
Gerrit-Change-Id: I75fcb0a45bf240409263080ca41101eaa26e2bf7
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mobrovac <mobro...@wikimedia.org>

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

Reply via email to