From bd38b28eb4d50da6bcd952d5a6f79398771f9cd7 Mon Sep 17 00:00:00 2001 From: Luftalian Date: Sat, 15 Jun 2024 18:31:18 +0900 Subject: [PATCH] openapi --- README.md | 8 ++++++++ docs/compose.yaml | 0 docs/openapi.yml | 42 +++++++++++++++++++++++++++++++++++++++++- 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 docs/compose.yaml diff --git a/README.md b/README.md index f7c36a2..a072aa0 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,11 @@ ```sh go install github.com/go-task/task/v3/cmd/task@latest ``` + +```sh +task install-server-openapi-codegen +``` + +```sh +task server-openapi-codegen +``` \ No newline at end of file diff --git a/docs/compose.yaml b/docs/compose.yaml new file mode 100644 index 0000000..e69de29 diff --git a/docs/openapi.yml b/docs/openapi.yml index a0573a4..00d0cba 100644 --- a/docs/openapi.yml +++ b/docs/openapi.yml @@ -37,6 +37,19 @@ paths: application/json: schema: $ref: "#/components/schemas/PostEventResponse" + /events/me: + get: + tags: + - event + responses: + 200: + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventMeResponse' /events/{eventID}: parameters: - $ref: "#/components/parameters/eventID" @@ -184,6 +197,25 @@ components: format: uuid required: - id + EventMeResponse: + type: object + properties: + event_id: + type: string + format: uuid + title: + type: string + description: + type: string + isConfirmed: + type: boolean + isAnswered: + type: boolean + required: + - event_id + - title + - isConfirmed + - isAnswered GetEventResponse: type: object properties: @@ -206,7 +238,8 @@ components: - event_id - title - description - - status + - isConfirmed + - dateOptions DateTimeResponse: type: object properties: @@ -307,6 +340,13 @@ components: $ref: "#/components/schemas/traQUser" parameters: + eventMe: + name: eventID + in: path + required: true + schema: + type: string + format: uuid eventID: name: eventID in: path