-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
50 lines (50 loc) · 1.3 KB
/
Copy pathopenapi.yaml
File metadata and controls
50 lines (50 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
components:
schemas:
CodeMsgAndData:
properties:
code:
type: integer
data: {}
msg:
type: string
required:
- code
- data
- msg
type: object
LoginByPassword:
properties:
password:
type: string
username:
type: string
required:
- password
- username
type: object
info:
title: API Documentation
version: 1.0.0
openapi: 3.1.0
paths:
/api/login:
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LoginByPassword'
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/CodeMsgAndData'
description: OK
summary: Login
/docs:
get:
responses:
"200":
description: Successful response
summary: Docs