Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions authenticity/e-check-diagnose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ components:
- 84
- 85
- 86
- 87
- 88
- 90
- 91
- 92
Expand Down Expand Up @@ -183,6 +185,8 @@ components:
- "FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR"
- "FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR"
- "FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION"
- "FIELD_POS_CORRECTOR_AGE_CHECK_ERROR"
- "FIELD_POS_CORRECTOR_SEX_CHECK_ERROR"
- "OVI_IR_INVISIBLE"
- "OVI_INSUFFICIENT_AREA"
- "OVI_COLOR_INVARIABLE"
Expand Down
15 changes: 15 additions & 0 deletions common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,3 +503,18 @@ components:
type: integer
ResultStatus:
type: integer

GlaresCheckParams:
title: "GlaresCheckParams"
type: object
properties:
imgMarginPart:
type: number
format: float
description: "Margin from the edges of the image. 0.35 = 35%"
example: 0.35
maxGlaringPart:
type: number
format: float
description: "The maximum allowable part of the area occupied by the glare. The same: 0.06 = 6%"
example: 0.0
6 changes: 6 additions & 0 deletions e-security-feature-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ components:
- 53
- 54
- 55
- 56
- 57
x-enum-descriptions:
- "Blank element"
- "Personalization element"
Expand Down Expand Up @@ -117,6 +119,8 @@ components:
- "Black and white copy check"
- "Liveness dynaprint"
- "Liveness geometry check"
- "Age check"
- "Sex check"
x-enum-varnames:
- "BLANK"
- "FILL"
Expand Down Expand Up @@ -173,3 +177,5 @@ components:
- "LIVENESS_BLACK_AND_WHITE_COPY_CHECK"
- "LIVENESS_DYNAPRINT"
- "LIVENESS_GEOMETRY_CHECK"
- "AGE_CHECK"
- "SEX_CHECK"
20 changes: 2 additions & 18 deletions index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,15 @@ paths:
$ref: "./p-healthcheck.yml#/paths/~1healthz"
/api/readyz:
$ref: "./p-healthcheck.yml#/paths/~1readyz"
/api/doclist:
$ref: "./p-doclist.yml#/paths/~1doclist"

tags:
- name: process
description: Everything about performing request and parsing response
- name: status_model
x-displayName: Status Model
description: |
<SchemaDefinition schemaRef="#/components/schemas/Status" />
- name: text_model
x-displayName: Text Model
description: |
<SchemaDefinition schemaRef="#/components/schemas/Text" />
- name: images_model
x-displayName: Images Model
description: |
**Images model:**
<SchemaDefinition schemaRef="#/components/schemas/Images" />
**Document image model:**
<SchemaDefinition schemaRef="#/components/schemas/DocumentImage" />
- name: document_model
x-displayName: Document Model
Expand All @@ -69,10 +60,6 @@ tags:
<SchemaDefinition schemaRef="#/components/schemas/ChosenDocumentType" />
**Candidates model:**
<SchemaDefinition schemaRef="#/components/schemas/DocumentTypesCandidates" />
- name: authenticity_model
x-displayName: Authenticity Model
description: |
<SchemaDefinition schemaRef="#/components/schemas/AuthenticityCheckResult" />

x-tagGroups:
- name: Requests
Expand All @@ -82,11 +69,8 @@ x-tagGroups:
- healthcheck
- name: Models
tags:
- status_model
- text_model
- images_model
- document_model
- authenticity_model

components:
schemas:
Expand Down
88 changes: 88 additions & 0 deletions p-doclist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
openapi: 3.0.4
paths:
/doclist:
get:
summary: "Returns the list of documents stored in the database that the Web Service API is running with."
operationId: doclist
responses:
200:
description: "The list of documents stored in the database."
content:
application/json:
schema:
$ref: "#/components/schemas/DatabaseDocumentList"

components:
schemas:
DatabaseDocumentList:
title: "DatabaseDocumentList"
type: object
required:
- items
properties:
items:
description: "The list of documents stored in the database."
type: array
items:
$ref: "#/components/schemas/DatabaseDocument"

DatabaseDocument:
title: "DatabaseDocument"
type: object
required:
- barcode_fields
- country
- createad
- doc_type
- document
- graphic_fields
- id
- mrz
- rfid_chip
- text_fields
- updated
properties:
barcode_fields:
description: "Whether the document has a barcode."
type: boolean
country:
description: "Country name."
type: string
createad:
description: "Date when the document description was created in the database."
type: string
doc_type:
$ref: "./e-document-type.yml#/components/schemas/DocumentType"
document:
description: "Document name."
type: string
graphic_fields:
description: "The presence of graphic fields in the document."
type: boolean
id:
description: "Document code."
type: integer
mrz:
description: "The document has an MRZ."
type: boolean
region:
description: "Country region."
type: string
rfid_chip:
description: "The document has an RFID chip."
type: boolean
text_fields:
description: "The presence of text fields in the document."
type: boolean
updated:
description: "Date when the document description was updated in the database."
type: string
year:
description: "The year when the document was issued."
type: string
sovereignty:
description: "Guardian country."
type: string
deprecated:
description: "Whether the document is no longer in circulation."
type: boolean
5 changes: 5 additions & 0 deletions p-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,9 @@ components:
strictSecurityChecks:
description: "When enabled, this parameter marks security checks that don’t meet minimum requirements as 'Failed' (instead of 'WasNotDone'), which causes the overall security status to be 'Failed'."
type: boolean
returnTransliteratedFields:
description: "Allows transliteration to be turned on or off; by default, it is enabled."
type: boolean

MRZFormat:
title: "MRZFormat"
Expand Down Expand Up @@ -717,6 +720,8 @@ components:
type: array
items:
$ref: "./rt-image-quality.yml#/components/schemas/InputImageQualityChecks"
glaresCheckParams:
$ref: "./common.yml#/components/schemas/GlaresCheckParams"

ProcessRequestImage:
title: "ProcessRequestImage"
Expand Down
6 changes: 6 additions & 0 deletions p-transaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ paths:
format: uuid
required: true
description: Transaction id
- in: query
name: useCache
schema:
type: boolean
default: false
description: Get processed values from storage in case transaction has already processed.
summary: Reprocess
tags:
- transaction
Expand Down
Loading