Skip to content

Commit 6259d78

Browse files
authored
Merge branch 'master' into BE-429-barcodes
2 parents 739624a + c1a88b3 commit 6259d78

File tree

6 files changed

+67
-3
lines changed

6 files changed

+67
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea
2-
document-reader-static-doc.html
2+
document-reader-api-doc.html
33
/.openapi-generator/VERSION
44
/.openapi-generator/FILES
55
/openapi.json
6+
document-reader-static-doc.html

common.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,16 @@ components:
173173
x:
174174
type: integer
175175
y:
176-
type: integer
176+
type: integer
177+
178+
License:
179+
description: "Base64 encoded data"
180+
type: string
181+
format: byte
182+
example: "Base64 encoded data"
183+
184+
EncryptedRCL:
185+
description: "Base64 encoded data"
186+
type: string
187+
format: byte
188+
example: "Base64 encoded data"

p-process.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ components:
150150
type: array
151151
items:
152152
$ref: '#/components/schemas/ProcessRequestImage'
153+
ContainerList:
154+
$ref: './rt.yml#/components/schemas/ContainerList'
153155
systemInfo:
154156
$ref: '#/components/schemas/ProcessSystemInfo'
155157
passBackObject:
@@ -159,7 +161,6 @@ components:
159161
additionalProperties: true
160162
required:
161163
- processParam
162-
- List
163164

164165
ProcessParams:
165166
type: object
@@ -509,3 +510,4 @@ components:
509510
"DateTime": "2020-05-27T08:17:03.247Z"
510511
"TransactionID": "dc5eb444-ad6e-4ebc-8102-d62d5bb56a4e"
511512
"UserName": "user"
513+

rt-encrypted-rcl.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
openapi: 3.0.3
2+
components:
3+
schemas:
4+
5+
EncryptedRCLResult:
6+
title: "EncryptedRCL"
7+
allOf:
8+
- type: object
9+
description: "Contains encrypted result container list"
10+
required:
11+
- EncryptedRCL
12+
properties:
13+
EncryptedRCL:
14+
$ref: "./common.yml#/components/schemas/EncryptedRCL"
15+
- $ref: './rt.yml#/components/schemas/ResultItem'

rt-license.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
openapi: 3.0.3
2+
components:
3+
schemas:
4+
5+
LicenseResult:
6+
title: "License"
7+
allOf:
8+
- type: object
9+
description: "Contains license"
10+
required:
11+
- License
12+
properties:
13+
License:
14+
$ref: "./common.yml#/components/schemas/License"
15+
- $ref: './rt.yml#/components/schemas/ResultItem'

rt.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ components:
2929
- 20
3030
- 85
3131
- 5
32+
- 50
33+
- 49
3234
x-enum-descriptions:
3335
- 'Contains cropped and rotated with perspective compensation image of document.
3436
Single input image can contain multiple document side/pages, which will be returned as separated results.
@@ -52,6 +54,8 @@ components:
5254
- 'Contains result of document authenticity checks'
5355
- 'Contains information about document position on the input image, its center, angle, etc'
5456
- 'Contains raw information about barcodes on the input image'
57+
- 'Contains license'
58+
- 'Contains encrypted ResultContainerList'
5559
x-enum-varnames:
5660
- DOCUMENT_IMAGE
5761
- IMAGE_QUALITY
@@ -71,6 +75,8 @@ components:
7175
- AUTHENTICITY
7276
- DOCUMENT_POSITION
7377
- BARCODES
78+
- LICENSE
79+
- ENCRYPTED_RCL
7480

7581

7682
ResultItem:
@@ -110,13 +116,18 @@ components:
110116
85: "DocumentPositionResult"
111117
102: "TextDataResult"
112118
103: "GraphicsResult"
119+
50: "LicenseResult"
120+
49: "EncryptedRCLResult"
113121

114122
ContainerList:
115123
type: object
116124
description: "List with various objects, containing processing results"
117125
required:
118126
- List
119127
properties:
128+
Count:
129+
type: integer
130+
description: "Length of list (Count for items)"
120131
List:
121132
type: array
122133
items:
@@ -134,6 +145,8 @@ components:
134145
- $ref: "#/components/schemas/ImageQualityResult"
135146
- $ref: "#/components/schemas/DocumentPositionResult"
136147
- $ref: "#/components/schemas/DocBarCodeInfo"
148+
- $ref: "#/components/schemas/LicenseResult"
149+
- $ref: "#/components/schemas/EncryptedRCLResult"
137150

138151
DocumentPositionResult:
139152
$ref: "./rt-document-position.yml#/components/schemas/DocumentPositionResult"
@@ -172,3 +185,9 @@ components:
172185

173186
DocBarCodeInfo:
174187
$ref: "./rt-barcodes.yml#/components/schemas/DocBarCodeInfo"
188+
189+
LicenseResult:
190+
$ref: "./rt-license.yml#/components/schemas/LicenseResult"
191+
192+
EncryptedRCLResult:
193+
$ref: "./rt-encrypted-rcl.yml#/components/schemas/EncryptedRCLResult"

0 commit comments

Comments
 (0)