-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.json
54 lines (54 loc) · 1.7 KB
/
swagger.json
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
51
52
53
54
{
"swagger": "2.0",
"info": {
"description": "这个是自动文档基础起点\n\n通用说明: 枚举值,统一未int类型0值预留\n\n\n {\n \"code\": 0,\n \"data\": {\n \"tip\": \"data是任意结构\"\n },\n \"message\": \"通用响应结构, 所有接口的详情都是放入data\",\n \"time\": 1626173329\n }\n ",
"version": "1.0.0",
"title": "Swagger Petstore",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"email": "apiteam@swagger.io"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
},
"host": "petstore.swagger.io",
"basePath": "/v2",
"tags": [
{
"name": "admin",
"description": "Everything about your Pets",
"externalDocs": {
"description": "Find out more",
"url": "http://swagger.io"
}
}
],
"schemes": [
"https",
"http"
],
"paths": {},
"securityDefinitions": {
"petstore_auth": {
"type": "oauth2",
"authorizationUrl": "http://petstore.swagger.io/oauth/dialog",
"flow": "implicit",
"scopes": {
"write:pets": "modify pets in your account",
"read:pets": "read your pets"
}
},
"api_key": {
"type": "apiKey",
"name": "api_key",
"in": "header"
}
},
"definitions": {},
"externalDocs": {
"description": "Find out more about Swagger",
"url": "http://swagger.io"
}
}