-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathidentification.yml
More file actions
332 lines (310 loc) · 10.1 KB
/
identification.yml
File metadata and controls
332 lines (310 loc) · 10.1 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
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
openapi: 3.0.4
components:
responses:
SearchBadParamsException:
description: "Bad request. Check your input data."
content:
application/json:
schema:
$ref: "#/components/schemas/SearchBadParams"
schemas:
SearchBadParams:
title: "SearchBadParams"
type: object
properties:
msg:
type: string
default: "Descriptor already calculated"
statusCode:
type: integer
default: 400
type:
type: string
default: "BadParamsException"
PersonsPage:
title: "PersonsPage"
allOf:
- $ref: "#/components/schemas/PersonItems"
- $ref: "./common.yml#/components/schemas/Page"
PersonItems:
title: "PersonItems"
type: object
properties:
items:
type: array
items:
$ref: "#/components/schemas/Person"
Person:
title: "Person"
description: "Person response body: person ID, creation date, update date if any."
allOf:
- $ref: "#/components/schemas/PersonFields"
- $ref: "#/components/schemas/PersonData"
PersonData:
title: "PersonData"
type: object
properties:
id:
type: string
format: uuid
description: "Person ID. The list of persons is sorted by decreasing ID value."
createdAt:
type: string
description: "Person creation date."
updatedAt:
type: string
description: "Person update date."
PersonFields:
title: "PersonFields"
type: object
description: "Person Request body: name and metadata."
required:
- name
properties:
name:
type: string
description: "Person's name."
externalId:
type: string
description: "Person's ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional."
metadata:
type: object
additionalProperties: true
description: "A free-form object containing person's extended attributes."
groups:
type: array
description: "Groups a person should be placed to. If no group is specified in request, a Default group is created and the person is placed to it."
items:
type: string
format: uuid
expireAt:
type: string
description: "Person expiration date."
PersonToUpdateFields:
title: "PersonToUpdateFields"
type: object
description: "Person Request body: name and metadata."
properties:
externalId:
type: string
description: "Person's ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional."
name:
type: string
description: "Person's name."
metadata:
type: object
additionalProperties: true
description: "A free-form object containing person's extended attributes."
groups:
type: array
description: "Groups a person should be placed to. If no group is specified in request, a Default group is created and the person is placed to it."
items:
type: string
format: uuid
ImageFields:
title: "ImageFields"
type: object
description: "Image in the request data, includes image and contentType."
properties:
tag:
type: string
description: "Session identificator, should be unique for each session."
image:
$ref: "#/components/schemas/ImageFieldsImage"
outputImageParams:
$ref: "./common.yml#/components/schemas/OutputImageParams"
detectAll:
$ref: "./match.yml#/components/schemas/detectAll"
threshold:
type: number
format: float
description: "The similarity threshold."
limit:
type: integer
description: "The maximum number of results to be returned."
ImageFieldsImage:
title: "ImageFieldsImage"
type: object
description: "Uploaded image."
properties:
contentType:
type: string
description: "Original media type of the uploaded image."
content:
$ref: "./common.yml#/components/schemas/ImageData"
imageUrl:
type: string
description: "Image URL."
resizeOptions:
$ref: "#/components/schemas/ResizeOptions"
AddImageToPersonResponse:
title: "AddImageToPersonResponse"
type: object
description: "Image in the response."
properties:
id:
type: string
description: "Response image ID. The list is sorted by decreasing ID value."
contentType:
type: string
description: "Original media type of the returned image."
createdAt:
type: string
description: "Returned image creation date."
path:
type: string
description: "Returned image path."
url:
type: string
description: "Returned image URL."
metadata:
type: object
additionalProperties: true
description: "A free-form object containing person's extended attributes."
AddImageToPersonRequest:
title: "AddImageToPersonRequest"
type: object
description: "Image in the request data, includes image and contentType."
allOf:
- $ref: "./common.yml#/components/schemas/TransactionLabels"
- $ref: "#/components/schemas/AddImageToPersonRequestData"
AddImageToPersonRequestData:
title: "AddImageToPersonRequestData"
type: object
required:
- image
properties:
tag:
type: string
description: "Session identificator."
image:
$ref: "#/components/schemas/AddImageToPersonRequestImage"
threshold:
type: number
format: float
description: "The similarity threshold."
limit:
type: integer
description: "The maximum number of results to be returned."
AddImageToPersonRequestImage:
title: "AddImageToPersonRequestImage"
type: object
description: "Uploaded image."
properties:
contentType:
type: string
description: "Original media type of the uploaded image."
content:
$ref: "./common.yml#/components/schemas/ImageData"
imageUrl:
type: string
description: "Image URL."
resizeOptions:
$ref: "#/components/schemas/ResizeOptions"
ResizeOptions:
title: "ResizeOptions"
type: object
description: "Set to resize the original image."
properties:
width:
type: integer
description: "Resized image width, px."
height:
type: integer
description: "Resized image height, px."
quality:
type: integer
default: 100
description: "Resized image quality, percent."
Image:
title: "Image"
type: object
description: "Image in the response."
properties:
id:
type: string
description: "Response image ID. The list is sorted by decreasing ID value."
content:
type: string
format: base64
description: "Base64-encoded image. Returned only if `withImages` is set to true in the request."
contentType:
type: string
description: "Original media type of the returned image."
createdAt:
type: string
description: "Returned image creation date."
updatedAt:
type: string
description: "Returned image update date."
path:
type: string
description: "Returned image path."
url:
type: string
description: "Returned image URL."
metadata:
type: object
additionalProperties: true
description: "A free-form object containing person's extended attributes."
GroupPage:
title: "GroupPage"
allOf:
- $ref: "#/components/schemas/GroupPageItems"
- $ref: "./common.yml#/components/schemas/Page"
GroupPageItems:
title: "GroupPageItems"
type: object
properties:
items:
type: array
description: "Array of Groups that are found during the search."
items:
$ref: "#/components/schemas/Group"
Group:
title: "Group"
allOf:
- $ref: "#/components/schemas/GroupResponse"
- $ref: "#/components/schemas/GroupData"
GroupData:
title: "GroupData"
type: object
description: "Additional group data in the response, includes id and createdAt."
properties:
id:
type: string
format: uuid
description: "Group ID."
createdAt:
type: string
description: "Group creation date."
GroupResponse:
title: "GroupResponse"
type: object
description: "Response group create data, includes name and metadata."
properties:
name:
type: string
description: "Group to create name."
metadata:
type: object
additionalProperties: true
description: "A free-form object containing group's extended attributes."
GroupToCreate:
title: "GroupToCreate"
type: object
description: "Request body of the group to create data, includes name and metadata."
required:
- name
- metadata
properties:
tag:
type: string
description: "Session identificator."
name:
type: string
description: "Group to create name."
metadata:
type: object
additionalProperties: true
description: "A free-form object containing group's extended attributes."