From 0aab73a59d47896a5ed19d18acb13ce4a035615e Mon Sep 17 00:00:00 2001 From: Raphaelle Cantin Date: Fri, 15 Nov 2024 14:15:26 +0000 Subject: [PATCH] Add documentation for /events/id endpoint --- reference/content.yaml | 46 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/reference/content.yaml b/reference/content.yaml index a9592a5..bc04527 100644 --- a/reference/content.yaml +++ b/reference/content.yaml @@ -278,7 +278,51 @@ paths: '*/*': schema: $ref: '#/components/schemas/Error' - # '/events/{id}': + '/events/{id}': + get: + tags: + - Events + summary: '/events/{id}' + description: Returns a single event + operationId: getEvent + parameters: + - name: id + in: path + description: The event to return + required: true + schema: + type: string + responses: + '200': + description: The event + content: + '*/*': + schema: + $ref: '#/components/schemas/Event' + '400': + description: Bad Request Error + content: + '*/*': + schema: + $ref: '#/components/schemas/Error' + '404': + description: Not Found Error + content: + '*/*': + schema: + $ref: '#/components/schemas/Error' + '410': + description: Gone Error + content: + '*/*': + schema: + $ref: '#/components/schemas/Error' + '500': + description: Internal Server Error + content: + '*/*': + schema: + $ref: '#/components/schemas/Error' components: schemas: Aggregation: