Commit 5d8c73dc authored by Matthias's avatar Matthias
Browse files

chang parameter name

parent 48eae8df
Pipeline #11641 passed with stages
in 5 minutes and 36 seconds
......@@ -7,7 +7,7 @@ import json
class MonitorDrupalJsonApiInstitution(Resource):
# Todo write/correct comment for swagger
def get(self, topic_name):
def get(self, institutionId):
"""
Get uuid of updated institution form drupal, gets more information form \
drupal and puts it into the dedicated kafka topic
......@@ -16,7 +16,7 @@ class MonitorDrupalJsonApiInstitution(Resource):
- Monitor Drupal JSON API
parameters:
- in: path
name: topic_name
name: institutionId
required: true
description: The UUID of the updated institution
example: 0c4c777c-94f8-45ba-945a-bfe6967d40da
......@@ -44,7 +44,7 @@ class MonitorDrupalJsonApiInstitution(Resource):
try:
drupalResponse =\
requests.get('https://mb-wf1.memobase.unibas.ch/jsonapi/node/' +
'institution/' + topic_name).json()['data']
'institution/' + institutionId).json()['data']
topicValue = {
'type': drupalResponse['type'],
'status': drupalResponse['attributes']['status'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment