From 03a7bcfcee93540371121ce4d3b33296ded124f8 Mon Sep 17 00:00:00 2001 From: Lazlo Westerhof Date: Wed, 4 Oct 2023 15:53:38 +0200 Subject: [PATCH] SRAM mock: add new collaboration invitation 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 63d7099..fa5fc7b 100644 --- a/yoda_web_mock/sram/routes.py +++ b/yoda_web_mock/sram/routes.py @@ -118,3 +118,9 @@ def delete_collaboration_membership(co_identifier, user_uuid): def delete_collaboration(co_identifier): # 204 means successful deletion of a collaboration return Response("Delete collaboration (mocked)", status=204) + + +@blueprint_sram.route('/api/invitations/v1/collaboration_invites', methods=['PUT']) +def put_new_collaboration_invitation(co_identifier): + # 201 means successful put of collaboration invitation + return Response("Put new collaboration invitation (mocked)", status=201)