提交
This commit is contained in:
parent
5c892e1f0e
commit
2fd470efa1
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,3 +5,5 @@ __debug_*
|
|||
fusenrender
|
||||
|
||||
example-data
|
||||
|
||||
*.json
|
63
t.yaml
Normal file
63
t.yaml
Normal file
|
@ -0,0 +1,63 @@
|
|||
swagger: "2.0"
|
||||
info:
|
||||
title: Auth API
|
||||
version: 1.0.0
|
||||
description: 用户认证接口
|
||||
|
||||
paths:
|
||||
|
||||
/api/auth/email/confirmation:
|
||||
get:
|
||||
summary: 邮箱确认
|
||||
parameters:
|
||||
- name: token
|
||||
in: query
|
||||
type: string
|
||||
required: true
|
||||
description: 操作token
|
||||
responses:
|
||||
200:
|
||||
description: 确认成功
|
||||
|
||||
/api/auth/oauth2/register:
|
||||
get:
|
||||
summary: 邮箱注册
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/EmailRegisterRequest'
|
||||
responses:
|
||||
200:
|
||||
description: 注册成功
|
||||
schema:
|
||||
$ref: '#/definitions/AuthResponse'
|
||||
|
||||
definitions:
|
||||
|
||||
EmailRegisterRequest:
|
||||
type: object
|
||||
required:
|
||||
- email
|
||||
- wcid
|
||||
- guest_id
|
||||
- register_token
|
||||
properties:
|
||||
email:
|
||||
type: string
|
||||
wcid:
|
||||
type: integer
|
||||
format: uint64
|
||||
guest_id:
|
||||
type: integer
|
||||
format: uint64
|
||||
register_token:
|
||||
type: string
|
||||
|
||||
AuthResponse:
|
||||
type: object
|
||||
properties:
|
||||
token:
|
||||
type: string
|
||||
description: 注册登录生成的JWT token
|
Loading…
Reference in New Issue
Block a user