-
Notifications
You must be signed in to change notification settings - Fork 2
/
counit-server.http
228 lines (209 loc) · 9.68 KB
/
counit-server.http
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
## Qdrant CLIENT
### LIST all collections
GET http://127.0.0.1:6333/collections
### List points
GET http://127.0.0.1:6333/collections/documents
### Delete collections
DELETE http://127.0.0.1:6333/collections/documents
### Send POST request with json body
POST http://127.0.0.1:6333/collections/documents/points/search
Content-Type: application/json
{
"vector": [ -0.25026557, -0.031199217, -0.21696584, -0.48319006, -0.23941061, -0.6828901, -0.017907368, 0.3549609, -0.0005010872, 0.008336781, -0.39021868, -0.37900588, 0.06820675, -0.053845044, -0.23568451, -0.12007809, -0.3327497, -0.26085103, 0.40833113, 0.07062512, 0.58944523, -0.17639506, -0.49759012, 0.4052926, -0.15707187, 0.52991503, -0.04039463, -0.4451506, 0.092615545, -0.206446, -0.2881537, -0.08361739, 0.5373327, -0.3552766, -0.04979701, 0.43706465, 0.43335634, -0.21525908, -0.40799332, -0.31899667, -0.39598352, -0.2360189, 0.21656385, 0.20970018, -0.3729019, 0.050168026, 0.28789288, -0.23385859, 0.14619903, 0.27034906, -0.5003873, -0.546653, 0.025245199, -0.14655605, 0.22826242, 0.8197421, -0.28074533, -0.38835102, -0.49027243, -0.6888234, 0.26881012, 0.47829482, -0.5580907, 0.38546985, 0.37733188, 0.42132244, -0.10815827, 0.22436683, 0.1819634, -0.4234489, -0.3657, 0.15138082, 0.17770778, 0.20174453, -0.062508486, 0.37392816, 0.24622199, -0.116846904, 0.40996245, -0.16179892, 0.35465902, 0.26938432, -0.46705127, 0.059428696, 0.15622042, 0.47102875, -0.08627226, -0.18874727, 0.37652513, -0.5094948, 0.36794275, -0.4423978, 0.53382486, -0.15147254, 0.52712876, 0.29009548, 0.23330283, -0.389448, -0.11723367, 0.437345, -0.03443371, 0.15122615, 0.2618392, -0.09650033, -0.32885796, -0.09364855, -0.46948925, 0.3815631, 0.1048554, 0.322687, 0.13408503, -0.7088825, 0.14618452, 0.17362764, 0.3395868, 0.40250522, -0.028327847, -0.5232033, 0.05950476, 0.19634211, 0.030328067, -0.34759456, -0.08814895, 0.11732508, -0.15111569, 0.11693299, -0.03669015, -3.2397174e-32, 0.22263011, 0.18669327, 0.31838804, 0.37335467, 0.32777295, -0.049042094, -0.119529486, 0.03724024, -0.31026766, 0.038432274, -0.180752, 0.07377456, -0.10923917, 0.22060902, 0.31297782, -0.272225, -0.0694506, 0.21084099, 0.18523668, -0.03084502, -0.19814242, 0.9351272, -0.22970872, -0.42974955, 0.26689833, 0.25475904, -0.11876365, -0.31436697, -0.16979323, 0.056869484, -0.015230314, -0.15079178, -0.32718977, 0.07309204, 0.093014896, 0.33089322, 0.13638273, -0.08328952, -0.22197159, -0.25902963, 0.20740154, 0.039403472, -0.1276911, -0.022770172, 0.60965294, 0.3084056, 0.3018369, 0.003951769, 0.01606381, 0.22160922, -0.062425803, 0.5499565, -0.36647007, -0.10109455, 0.35027263, -0.49397066, -0.37251538, 0.044375975, 0.29988956, 0.019600015, -0.2493294, 0.16030537, 0.21134217, 0.8076158, -0.19565454, -0.3302541, 0.14344546, -0.040732138, 0.49216455, 0.18917195, -0.375497, -0.552022, -0.47480467, 0.49297526, -0.44287714, -0.17075224, -0.09931018, 0.4000503, -0.7594573, -0.06528428, -0.40654176, -0.07988165, 0.08144997, 0.29847196, 0.6895274, 0.10847117, 0.35291058, -0.027080467, -0.4226254, -0.13821937, -0.35093692, -0.27102974, -0.2864574, 0.74611473, -0.18587008, 1.2342081e-32, -0.09764796, -0.9487273, -0.5379724, -0.26344642, -0.15046336, 0.4184008, -0.055415533, -0.27102825, -0.4369622, 0.0336762, 0.17623033, 0.6259365, 0.5986529, 0.030801287, 0.16779442, -0.61077833, 0.5271875, -0.6554545, -0.068782255, 0.80828935, 0.5393571, 0.22530448, -0.5739864, 0.45669168, 0.21755128, -0.0014038341, 0.51846397, -0.28879303, -0.2265728, -0.12637135, -0.046939753, 0.059079405, -0.13973124, -0.08211783, -0.25541592, -0.2819573, 0.29192135, -0.37673643, -0.34105346, -0.30742556, 0.24756575, 0.042263873, -0.47901583, -0.24639606, -0.14606321, -0.17963794, 0.18534584, 0.0353566, 0.01862835, -0.4248983, -0.072380655, -0.93486327, 0.04589132, -0.624581, 0.17426383, -0.07261841, 0.1597255, 0.51602644, 0.35529944, 0.2864118, -0.17291689, -0.07659966, -0.32687542, -0.34630293, 0.017810127, -0.3737305, -0.05544693, 0.2115216, -0.4698865, 0.10560097, 0.17941913, 0.20712021, -0.05332264, 0.40455467, 0.22450623, -0.25652912, 0.15170674, -0.45107514, -0.036032308, -0.7598754, -0.3766014, -0.13775563, 0.5294949, -0.0027436912, 0.19977114, -0.32274494, 0.15803902, 0.18932271, -0.0083613, 0.18695082, 0.22831585, -0.12224229, -0.36879995, 0.19649433, 0.050753407, -9.421243e-8, 0.42849404, 0.6216343, -0.0036144, 0.30783972, -0.7408279, -0.017296374, 0.378304, 0.05969911, -0.12558384, -0.54860693, 0.1256336, -0.032326147, 0.1748598, 0.77273315, 0.46697065, 0.39588666, -0.36843577, 0.27916294, -0.48647267, -0.2717233, 0.3876597, -0.20860806, 0.618568, 0.0069076973, 0.14633739, -0.017788246, 0.37350512, -0.26922983, 0.27738836, 0.2572729, 0.08136698, 0.22397444, -0.017570617, 0.18120317, 0.46198776, 0.42156628, -0.037123542, 0.22638018, 0.39051154, -0.61969024, -0.41547623, 0.06460179, 0.06351673, -0.06358288, -0.048816204, 0.03600598, -0.46288988, 0.31421724, 0.28953475, -0.064910665, 0.062121756, 0.19453605, 0.444864, -0.17771132, 0.54078007, -0.2755508, 0.30284283, -0.13398425, -0.21196249, -0.17882153, 1.0514833, 0.062386148, 0.051296983, -0.16764008 ],
"with_vectors": true,
"with_payload": true,
"limit": 5
}
### CoUnit Server
### TEXT EMBEDDING
GET http://127.0.0.1:8765/api/text-embedding?q="upload"
### Query API
GET http://127.0.0.1:8765/api/query?q=alipay&type=OpenApi
### Upload Data by ArchGuard
POST http://127.0.0.1:8765/scanner/:systemId/reporting/class-items
POST http://127.0.0.1:8765/scanner/:systemId/reporting/openapi
POST http://127.0.0.1:8765/scanner/:systemId/reporting/container-services
POST http://127.0.0.1:8765/scanner/:systemId/reporting/datamap-relations
## Swagger
### CREATE SWAGGER INDEX
POST http://127.0.0.1:8765/api/index/third-part/openapi/v3?repo_ref=mall&language=java&repo_url=https://github.com/OAI/OpenAPI-Specification
Content-Type: application/json
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"license": {
"name": "MIT"
}
},
"servers": [
{
"url": "http://petstore.swagger.io/v1"
}
],
"paths": {
"/pets": {
"get": {
"summary": "List all pets",
"operationId": "listPets",
"tags": [
"pets"
],
"parameters": [
{
"name": "limit",
"in": "query",
"description": "How many items to return at one time (max 100)",
"required": false,
"schema": {
"type": "integer",
"maximum": 100,
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "A paged array of pets",
"headers": {
"x-next": {
"description": "A link to the next page of responses",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Pets"
}
}
}
},
"default": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
},
"post": {
"summary": "Create a pet",
"operationId": "createPets",
"tags": [
"pets"
],
"responses": {
"201": {
"description": "Null response"
},
"default": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/pets/{petId}": {
"get": {
"summary": "Info for a specific pet",
"operationId": "showPetById",
"tags": [
"pets"
],
"parameters": [
{
"name": "petId",
"in": "path",
"required": true,
"description": "The id of the pet to retrieve",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Expected response to a valid request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Pet"
}
}
}
},
"default": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Pet": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"tag": {
"type": "string"
}
}
},
"Pets": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/Pet"
}
},
"Error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
}
}
}