Mobrovac has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/325999 )
Change subject: Config: Add the MW API and RB API request templates ...................................................................... Config: Add the MW API and RB API request templates Change-Id: Id7b3848563ec8f7470d513bde584ab4c5be55d39 --- M scap/templates/config.yaml.j2 M scap/vars.yaml 2 files changed, 17 insertions(+), 0 deletions(-) Approvals: Mobrovac: Verified; Looks good to me, approved diff --git a/scap/templates/config.yaml.j2 b/scap/templates/config.yaml.j2 index 6700ea6..aecf81d 100644 --- a/scap/templates/config.yaml.j2 +++ b/scap/templates/config.yaml.j2 @@ -89,3 +89,18 @@ min_edits: 6 # the list of Kafka brokers to contact broker_list: <%= broker_list %> + # the template used for contacting the MW API + mwapi_req: + method: post + uri: <%= mwapi_uri %> + headers: + host: '{{request.params.domain}}' + user-agent: '{{user-agent}}' + body: '{{ default(request.query, {}) }}' + # the template used for contacting RESTBase + restbase_req: + method: '{{request.method}}' + uri: <%= restbase_uri %>/{{domain}}/v1/{+path} + query: '{{ default(request.query, {}) }}' + headers: '{{request.headers}}' + body: '{{request.body}}' diff --git a/scap/vars.yaml b/scap/vars.yaml index 3735aea..3249e6e 100644 --- a/scap/vars.yaml +++ b/scap/vars.yaml @@ -10,3 +10,5 @@ proxy: site: datacenter1 broker_list: localhost:9092 +mwapi_uri: http://localhost/w/api.php +restbase_uri: http://localhost:7231 -- To view, visit https://gerrit.wikimedia.org/r/325999 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id7b3848563ec8f7470d513bde584ab4c5be55d39 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/trending-edits/deploy Gerrit-Branch: master Gerrit-Owner: Mobrovac <mobro...@wikimedia.org> Gerrit-Reviewer: Mobrovac <mobro...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits