[feature] migrate to monorepo
This commit is contained in:
commit
05ddc1f783
267 changed files with 75165 additions and 0 deletions
54
api/schemas/paths/auth.yaml
Normal file
54
api/schemas/paths/auth.yaml
Normal file
|
@ -0,0 +1,54 @@
|
|||
login:
|
||||
post:
|
||||
tags:
|
||||
- auth
|
||||
summary: 用户登录
|
||||
operationId: login
|
||||
security: [] # 登录接口不需要认证
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- email
|
||||
- password
|
||||
properties:
|
||||
email:
|
||||
type: string
|
||||
format: email
|
||||
password:
|
||||
type: string
|
||||
format: password
|
||||
responses:
|
||||
'200':
|
||||
description: 登录成功
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- token
|
||||
- user
|
||||
properties:
|
||||
token:
|
||||
type: string
|
||||
user:
|
||||
$ref: '../components/schemas.yaml#/User'
|
||||
'401':
|
||||
$ref: '../components/responses.yaml#/Unauthorized'
|
||||
'422':
|
||||
$ref: '../components/responses.yaml#/ValidationError'
|
||||
|
||||
logout:
|
||||
post:
|
||||
tags:
|
||||
- auth
|
||||
summary: 用户登出
|
||||
operationId: logout
|
||||
responses:
|
||||
'204':
|
||||
description: 登出成功
|
||||
'401':
|
||||
$ref: '../components/responses.yaml#/Unauthorized'
|
Loading…
Add table
Add a link
Reference in a new issue