From 40380f5a8fe6bdec5b14dd5a2774fc02dd164b44 Mon Sep 17 00:00:00 2001 From: David Wiessner Date: Thu, 21 Nov 2024 12:52:53 +0000 Subject: [PATCH] add get for dataset --- api/openapi.yaml | 54 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 124acd8..2056b33 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -26,6 +26,25 @@ tags: paths: /dataset: + get: + tags: + - dataset + summary: Get the available datasets. + description: Retrieve the folder structure of the available datasets. + operationId: DatasetController_getDataset + responses: + "200": + description: Dataset successfully retrieved. + content: + application/json: + schema: + $ref: "#/components/schemas/IngestorUiGetDatasetResponse" + "400": + description: Invalid request + content: + text/plain: + schema: + type: string post: tags: - dataset @@ -129,6 +148,12 @@ paths: application/json: schema: $ref: "#/components/schemas/IngestorUiOtherHealthResponse" + "400": + description: Invalid request + content: + text/plain: + schema: + type: string /version: get: tags: @@ -143,6 +168,12 @@ paths: application/json: schema: $ref: "#/components/schemas/IngestorUiOtherVersionResponse" + "400": + description: Invalid request + content: + text/plain: + schema: + type: string /extractor: get: tags: @@ -157,6 +188,12 @@ paths: application/json: schema: $ref: "#/components/schemas/IngestorUiOtherVersionResponse" + "400": + description: Invalid request + content: + text/plain: + schema: + type: string post: tags: - extractor @@ -290,7 +327,7 @@ components: $ref: "#/components/schemas/IngestorUiGetExtractorItem" total: type: integer - description: Total number of transfers. + description: Total number of extractors. IngestorUiPostExtractionRequest: type: object properties: @@ -306,3 +343,18 @@ components: schema: type: string description: Schema which belongs to an extractor method. + IngestorUiGetDatasetItem: + type: object + properties: + dataset: + type: string + IngestorUiGetDatasetResponse: + type: object + properties: + datasets: + type: array + items: + $ref: "#/components/schemas/IngestorUiGetDatasetItem" + total: + type: integer + description: Total number of datasets.