From 3f7f9b98040c8d82dc595762b31378b06083787b Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:46:37 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC?= =?UTF-8?q?=E4=BD=9C=E6=88=90=E3=82=A8=E3=83=B3=E3=83=89=E3=83=9D=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=83=88=E5=AE=9A=E7=BE=A9=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/openapi/mastodon.yaml | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/src/main/resources/openapi/mastodon.yaml b/src/main/resources/openapi/mastodon.yaml index 9b10b266..3fdb22df 100644 --- a/src/main/resources/openapi/mastodon.yaml +++ b/src/main/resources/openapi/mastodon.yaml @@ -182,8 +182,57 @@ paths: schema: $ref: "#/components/schemas/CredentialAccount" + /api/v1/accounts: + post: + tags: + - account + security: + - OAuth2: + - "write:accounts" + requestBody: + required: true + content: + application/x-www-form-urlencoded: + schema: + $ref: "#/components/schemas/AccountsCreateRequest" + responses: + 200: + description: 成功 + content: + application/json: + schema: + $ref: "#/components/schemas/Token" + components: schemas: + AccountsCreateRequest: + type: object + properties: + username: + type: string + email: + type: string + password: + type: string + agreement: + type: boolean + locale: + type: boolean + reason: + type: string + + Token: + type: object + properties: + access_token: + type: string + token_type: + type: string + scope: + type: string + created_at: + type: integer + Account: type: object properties: