From abb1941771e9fb2ccdaf90ac2528b9be52bed11d Mon Sep 17 00:00:00 2001 From: ToruShimizu Date: Fri, 14 Jun 2024 11:08:21 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=BB=E6=84=8F=E3=81=AE=E3=83=A6?= =?UTF-8?q?=E3=83=BC=E3=82=B6=E3=83=BC=E3=82=92=E4=B8=80=E4=BB=B6=E5=8F=96?= =?UTF-8?q?=E5=BE=97=E3=81=99=E3=82=8BAPI=E3=82=92=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openapi.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 509402a..fba9b4e 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -34,6 +34,31 @@ paths: name: "ユーザー4" - id: 5 name: "ユーザー5" + /api/users/{id}: + get: + summary: Returns a list of users. + description: Optional extended description in CommonMark or HTML. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - appsFoo + operationId: getUser + responses: + '200': + description: A JSON of user + content: + application/json: + schema: + type: object + items: + $ref: '#/components/schemas/User' + example: + - id: 1 + name: "ユーザー1" components: schemas: User: