From b9f859b86f336b023035b95c84be5793f2119cf5 Mon Sep 17 00:00:00 2001 From: Kathy Tran Date: Thu, 23 May 2024 11:42:09 -0400 Subject: [PATCH] Add getAccessLink --- .../resources/zenodo-1.0.0-swagger-2.0.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/main/resources/zenodo-1.0.0-swagger-2.0.yaml b/src/main/resources/zenodo-1.0.0-swagger-2.0.yaml index b5ead38..9e2d154 100644 --- a/src/main/resources/zenodo-1.0.0-swagger-2.0.yaml +++ b/src/main/resources/zenodo-1.0.0-swagger-2.0.yaml @@ -565,6 +565,34 @@ paths: '500': description: Internal Error /records/{id}/access/links/{linkId}: + get: + summary: Get an access link + description: '' + operationId: getAccessLink + parameters: + - in: path + name: id + type: string + required: true + description: Identifier of the record + - in: path + name: linkId + type: string + required: true + description: Identifier of the link + tags: + - accessLinks + produces: + - application/json + security: + - access_token: [ ] + responses: + '200': + description: OK + schema: + $ref: '#/definitions/AccessLink' + '405': + description: Method Not Allowed delete: summary: Delete an access link description: Delete an access link