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
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