From ce9aa56c533cfcf15bb63c4ec7d96fccee1578bf Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Fri, 21 Feb 2025 14:11:29 +0100 Subject: [PATCH] Update dataset info endpoint to handle identifiers that are URLs. --- sda/cmd/download/swagger_v1.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/sda/cmd/download/swagger_v1.yml b/sda/cmd/download/swagger_v1.yml index a436830f5..4b75ef468 100644 --- a/sda/cmd/download/swagger_v1.yml +++ b/sda/cmd/download/swagger_v1.yml @@ -141,18 +141,12 @@ paths: description: Internal application error security: - bearerAuth: [] - /info/datasets/{datasetId}: + /info/dataset: get: description: Returns an array with metadata about the dataset parameters: - - in: header - description: "Public key used to re-encrypt the file header with" - name: public_key - required: true - schema: - type: string - - in: path - name: datasetId + - in: query + name: dataset schema: type: string required: true @@ -172,18 +166,12 @@ paths: description: Internal application error security: - bearerAuth: [] - /info/datasets/{datasetId}/files: + /info/dataset/files: get: description: Returns an array with metadata about all files in a dataset parameters: - - in: header - description: "Public key used to re-encrypt the file header with" - name: public_key - required: true - schema: - type: string - - in: path - name: datasetId + - in: query + name: dataset schema: type: string required: true