mirror of https://github.com/usbharu/Hideout.git
feat: ユーザー作成エンドポイント定義を追加
This commit is contained in:
parent
74cea24a77
commit
3f7f9b9804
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue