From 0872bd3b995e7c54d32dfc55fb03f9db8f89ee7c Mon Sep 17 00:00:00 2001 From: mizphses Date: Wed, 26 Jun 2024 15:21:00 +0900 Subject: [PATCH] update openapi --- src/api/openapi.yaml | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/api/openapi.yaml b/src/api/openapi.yaml index 04cb20c..189c411 100644 --- a/src/api/openapi.yaml +++ b/src/api/openapi.yaml @@ -114,7 +114,7 @@ paths: security: - bearerAuth: [] - /projects/{projectId}/list: + /pub/{projectId}: get: operationId: getProject tags: @@ -134,7 +134,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TanzakuSchemaArray' + $ref: '#/components/schemas/ProjectSchema' + '500': + description: Internal Server Error + content: + text/plain: + schema: + $ref: '#/components/schemas/Error500' + /projects/{projectId}/list: + get: + operationId: getProjectAuthed + tags: + - Projects + summary: Get Project + description: Get a project by ID + parameters: + - name: projectId + in: path + required: true + description: ID of the project to get + schema: + type: string + responses: + '200': + description: Project found + content: + application/json: + schema: + $ref: '#/components/schemas/TanzakuResSchemaArray' '500': description: Internal Server Error content: @@ -228,7 +255,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TanzakuSchemaArray' + $ref: '#/components/schemas/TanzakuResSchemaArray' '500': description: Internal Server Error content: @@ -384,7 +411,7 @@ components: disabled: type: boolean example: false - TanzakuSchemaArray: + TanzakuResSchemaArray: type: array items: $ref: '#/components/schemas/TanzakuResponseSchema'