Skip to content

Commit

Permalink
SRAM mock: add update collaboration membership endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Oct 4, 2023
1 parent 8d9b2b5 commit 4c4d690
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions yoda_web_mock/sram/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ def get_collaboration(co_identifier):
return make_response(jsonify(response), 200)


@blueprint_sram.route('/api/collaborations/v1/<path:co_identifier>/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/<path:co_identifier>/members/<path:user_uuid>', methods=['DELETE'])
def delete_collaboration_membership(co_identifier, user_uuid):
# 204 means successful deletion of a collaboration membership
Expand Down

0 comments on commit 4c4d690

Please sign in to comment.