From 7d9ad76b35eb2afc9bb2fa78d492ab2288f7ae33 Mon Sep 17 00:00:00 2001 From: Todd Bergman Date: Thu, 17 Jun 2021 10:54:00 -0700 Subject: [PATCH] method should be patch --- src/api/CollaborationsApi.js | 4 ++-- src/api/CollaborationsApi.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/CollaborationsApi.js b/src/api/CollaborationsApi.js index e6daee9e..e8b7fc93 100644 --- a/src/api/CollaborationsApi.js +++ b/src/api/CollaborationsApi.js @@ -346,7 +346,7 @@ function renameCollaborationDatabase(collaborationId :UUID, name :string) :Promi } /** - * `GET /collaborations/{collaborationId}/project/{organizationId}/{dataSetId}` + * `PATCH /collaborations/{collaborationId}/project/{organizationId}/{dataSetId}` * * Adds the given data set id to the [Collaboration] object with the given collaboration id. The target data set * object must belong to the [Organization] object with the given organization id. The caller must have: @@ -390,7 +390,7 @@ function addDataSetToCollaboration(collaborationId :UUID, organizationId :UUID, } return getApiAxiosInstance(COLLABORATIONS_API) - .get(`/${collaborationId}/${PROJECT_PATH}/${organizationId}/${dataSetId}`) + .patch(`/${collaborationId}/${PROJECT_PATH}/${organizationId}/${dataSetId}`) .then((axiosResponse) => axiosResponse.data) .catch((error :Error) => { LOG.error(error); diff --git a/src/api/CollaborationsApi.test.js b/src/api/CollaborationsApi.test.js index db9c4289..b21d351c 100644 --- a/src/api/CollaborationsApi.test.js +++ b/src/api/CollaborationsApi.test.js @@ -153,7 +153,7 @@ describe(COLLABORATIONS_API, () => { } }, '(collaborationId, organizationId, dataSetId)': { - method: 'get', + method: 'patch', params: { axios: [`/${MOCK_COLLABORATION_ID}/${PROJECT_PATH}/${MOCK_ORG_1_ID}/${MOCK_DATA_SET_1_ID}`], valid: [MOCK_COLLABORATION_ID, MOCK_ORG_1_ID, MOCK_DATA_SET_1_ID],