feat: ユーザー作成エンドポイント定義を追加

This commit is contained in:
usbharu 2023-09-26 11:46:37 +09:00
parent 74cea24a77
commit 3f7f9b9804
1 changed files with 49 additions and 0 deletions

View File

@ -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: