forked from happycrud/protoc-gen-go-gin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathopenapi.json
84 lines (84 loc) · 2.04 KB
/
openapi.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"openapi": "3.0.3",
"info": {
"title": "AuthService API",
"version": "0.0.1"
},
"paths": {
"/private/push": {
"post": {
"tags": [
"AuthService"
],
"description": "Push发送\n 发送1\n 发送2",
"operationId": "AuthService_Push",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/.PushReq"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/.TPushReply"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
".PushReply": {
"type": "object",
"properties": {
"sdkUrlUuid": {
"type": "string"
}
},
"description": "上面的备注1\n 上面的备注2\n 上面的备注3"
},
".PushReq": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "string name = 1; // binding:\"required\" 姓名2 PushReq的body"
}
},
"description": "这个是PushReq的标题2"
},
".TPushReply": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"data": {
"$ref": "#/components/schemas/.PushReply"
}
},
"description": "message RealResp {\n google.protobuf.Any data = 1;\n int32 code = 2;\n string message = 3;\n}\n\n\nmessage UploadOssdk3rdReq {\n string operator = 1;\n string sdk_url_uuid = 2;\n string sdk_os = 3;\n string file_name = 4;\n}"
}
}
},
"tags": [
{
"name": "AuthService"
}
]
}