From a41af72a8ff22dd9f530031603695f7dee4050a6 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sat, 20 May 2023 16:45:36 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20OpenAPI=E5=AE=9A=E7=BE=A9=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/openapi/documentation.yaml | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/src/main/resources/openapi/documentation.yaml b/src/main/resources/openapi/documentation.yaml index 6c90a035..df2efd03 100644 --- a/src/main/resources/openapi/documentation.yaml +++ b/src/main/resources/openapi/documentation.yaml @@ -152,6 +152,112 @@ paths: '*/*': schema: $ref: "#/components/schemas/Post" + /api/internal/v1/users: + get: + description: "" + responses: + "200": + description: "OK" + content: + '*/*': + schema: + type: "array" + items: + $ref: "#/components/schemas/UserResponse" + post: + description: "" + requestBody: + content: + '*/*': + schema: + $ref: "#/components/schemas/UserCreate" + required: true + responses: + "400": + description: "Bad Request" + content: + '*/*': + schema: + type: "object" + "201": + description: "Created" + content: + '*/*': + schema: + type: "object" + /api/internal/v1/users/{name}: + get: + description: "" + parameters: + - name: "name" + in: "path" + required: true + schema: + type: "string" + responses: + "200": + description: "OK" + content: + '*/*': + schema: + type: "object" + /api/internal/v1/users/{name}/followers: + get: + description: "" + parameters: + - name: "name" + in: "path" + required: true + schema: + type: "string" + responses: + "200": + description: "OK" + content: + '*/*': + schema: + type: "array" + items: + type: "object" + post: + description: "" + parameters: + - name: "name" + in: "path" + required: true + schema: + type: "string" + responses: + "200": + description: "OK" + content: + '*/*': + schema: + type: "object" + "202": + description: "Accepted" + content: + '*/*': + schema: + type: "object" + /api/internal/v1/users/{name}/following: + get: + description: "" + parameters: + - name: "name" + in: "path" + required: true + schema: + type: "string" + responses: + "200": + description: "OK" + content: + '*/*': + schema: + type: "array" + items: + type: "object" /api/internal/v1/users/{name}/posts: get: description: "" @@ -438,3 +544,29 @@ components: replyId: type: "integer" format: "int64" + UserResponse: + type: "object" + properties: + id: + type: "integer" + format: "int64" + name: + type: "string" + domain: + type: "string" + screenName: + type: "string" + description: + type: "string" + url: + type: "string" + createdAt: + type: "integer" + format: "int64" + UserCreate: + type: "object" + properties: + username: + type: "string" + password: + type: "string"