Add basic api
This commit is contained in:
34
u2_api.yml
Normal file
34
u2_api.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
openapi: "3.1.0"
|
||||
info:
|
||||
title: U2 API
|
||||
version: "1.0"
|
||||
servers:
|
||||
- url: "https://u2.kysdm.com/api"
|
||||
description: API
|
||||
components:
|
||||
securitySchemes:
|
||||
token:
|
||||
type: apiKey
|
||||
in: query
|
||||
name: token
|
||||
paths:
|
||||
/v1/token:
|
||||
post:
|
||||
security: []
|
||||
operationId: getToken
|
||||
summary: 鉴权
|
||||
externalDocs:
|
||||
url: https://github.com/kysdm/u2_api#鉴权
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required: [uid]
|
||||
properties:
|
||||
uid:
|
||||
type: integer
|
||||
description: u2账户id
|
||||
key:
|
||||
type: string
|
||||
description: 上一步操作返回的 key 值
|
||||
Reference in New Issue
Block a user