From 1119b604ffa94edb7fe115efa826c6c6d7ee3273 Mon Sep 17 00:00:00 2001 From: Mikhail Smazhevsky Date: Fri, 10 Oct 2025 15:22:34 +0200 Subject: [PATCH 1/3] !!ODM-12808: expression -> cell link endpoint --- openapi/v1/integrationCurator.yaml | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/openapi/v1/integrationCurator.yaml b/openapi/v1/integrationCurator.yaml index a9dd5608..a75ac431 100644 --- a/openapi/v1/integrationCurator.yaml +++ b/openapi/v1/integrationCurator.yaml @@ -482,6 +482,52 @@ paths: summary: Retrieve group metadata by querying study ID (accession) tags: - Expression integration as Curator + ? /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/cell/group/{targetId} + : post: + description: |- + Create a link between a group of cell expression objects and a group of cell metadata. + + A cell expression object can be linked to one cell metadata object only. + operationId: createExpressionGroupCellGroupLinkAsCurator + parameters: + - description: The ID (accession) of the cell expression group object + in: path + name: sourceId + required: true + schema: + type: string + - description: The ID (accession) of the cell metadata group object + in: path + name: targetId + required: true + schema: + type: string + responses: + "200": + content: {} + description: Some (not all) cell links were created. + "204": + content: {} + description: All links were created. + "400": + content: {} + description: "Incorrect Cell or Expression group provided, see error message for details." + "401": + content: {} + description: |- + User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) + or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI _Profile_ page). + "500": + content: {} + description: "An internal server error occurred. This indicates an unexpected\ + \ failure in the Genestack system, please file a bug report to support@genestack.com,\ + \ including the error details." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: Create a link between a group of cell expression objects and a group of cell metadata. + tags: + - Expression integration as Curator ? /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/library/group/{targetId} : delete: description: Delete link between a group of expression objects and a group of From aff8d036de208383821d2301fa31b2bd6eceed34 Mon Sep 17 00:00:00 2001 From: Mikhail Smazhevsky Date: Fri, 10 Oct 2025 15:56:32 +0200 Subject: [PATCH 2/3] !!ODM-12808: fix whitespaces --- openapi/v1/integrationCurator.yaml | 90 +++++++++++++++--------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/openapi/v1/integrationCurator.yaml b/openapi/v1/integrationCurator.yaml index a75ac431..47edfd2d 100644 --- a/openapi/v1/integrationCurator.yaml +++ b/openapi/v1/integrationCurator.yaml @@ -483,51 +483,51 @@ paths: tags: - Expression integration as Curator ? /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/cell/group/{targetId} - : post: - description: |- - Create a link between a group of cell expression objects and a group of cell metadata. - - A cell expression object can be linked to one cell metadata object only. - operationId: createExpressionGroupCellGroupLinkAsCurator - parameters: - - description: The ID (accession) of the cell expression group object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the cell metadata group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "200": - content: {} - description: Some (not all) cell links were created. - "204": - content: {} - description: All links were created. - "400": - content: {} - description: "Incorrect Cell or Expression group provided, see error message for details." - "401": - content: {} - description: |- - User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) - or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI _Profile_ page). - "500": - content: {} - description: "An internal server error occurred. This indicates an unexpected\ - \ failure in the Genestack system, please file a bug report to support@genestack.com,\ - \ including the error details." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a group of cell expression objects and a group of cell metadata. - tags: - - Expression integration as Curator + : post: + description: |- + Create a link between a group of cell expression objects and a group of cell metadata. + + A cell expression object can be linked to one cell metadata object only. + operationId: createExpressionGroupCellGroupLinkAsCurator + parameters: + - description: The ID (accession) of the cell expression group object + in: path + name: sourceId + required: true + schema: + type: string + - description: The ID (accession) of the cell metadata group object + in: path + name: targetId + required: true + schema: + type: string + responses: + "200": + content: {} + description: Some (not all) cell links were created. + "204": + content: {} + description: All links were created. + "400": + content: {} + description: "Incorrect Cell or Expression group provided, see error message for details." + "401": + content: {} + description: |- + User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) + or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI _Profile_ page). + "500": + content: {} + description: "An internal server error occurred. This indicates an unexpected\ + \ failure in the Genestack system, please file a bug report to support@genestack.com,\ + \ including the error details." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: Create a link between a group of cell expression objects and a group of cell metadata. + tags: + - Expression integration as Curator ? /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/library/group/{targetId} : delete: description: Delete link between a group of expression objects and a group of From c90c472b2b8d37ad77466bfe4a8ca591952e29b7 Mon Sep 17 00:00:00 2001 From: Mikhail Smazhevsky Date: Sat, 11 Oct 2025 00:16:38 +0200 Subject: [PATCH 3/3] !!ODM-12808: trailing whitespace --- openapi/v1/integrationCurator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/v1/integrationCurator.yaml b/openapi/v1/integrationCurator.yaml index 47edfd2d..c072f3ff 100644 --- a/openapi/v1/integrationCurator.yaml +++ b/openapi/v1/integrationCurator.yaml @@ -486,7 +486,7 @@ paths: : post: description: |- Create a link between a group of cell expression objects and a group of cell metadata. - + A cell expression object can be linked to one cell metadata object only. operationId: createExpressionGroupCellGroupLinkAsCurator parameters: