From 4c4d6901192be442b51fa9767e7c7c569ad8aa67 Mon Sep 17 00:00:00 2001 From: Lazlo Westerhof Date: Wed, 4 Oct 2023 10:06:53 +0200 Subject: [PATCH] SRAM mock: add update collaboration membership endpoint --- yoda_web_mock/sram/routes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/yoda_web_mock/sram/routes.py b/yoda_web_mock/sram/routes.py index 9224ef3..63d7099 100644 --- a/yoda_web_mock/sram/routes.py +++ b/yoda_web_mock/sram/routes.py @@ -102,6 +102,12 @@ def get_collaboration(co_identifier): return make_response(jsonify(response), 200) +@blueprint_sram.route('/api/collaborations/v1//members', methods=['PUT']) +def update_collaboration_membership(co_identifier): + # 201 means successful update of a collaboration membership + return Response("Update collaboration membership (mocked)", status=201) + + @blueprint_sram.route('/api/collaborations/v1//members/', methods=['DELETE']) def delete_collaboration_membership(co_identifier, user_uuid): # 204 means successful deletion of a collaboration membership