question

Upvotes
1 0 1 1

Is it possible in KYCaaS to expose API to retrieve the type(pdf/png) of KYC document

Is it possible in KYCaaS to expose API about the type(pdf/png) of KYC document

Currently KYCaaS API expose KYC document metadata but it doesn't contain document type(technical type: pdf png), see below swagger information taken from KYCaaS swagger5.3.json

-----------------------------------------------------------------------------------------------------------

"/image/{image_id}": { "get": { "tags": [ "image" ], "summary": "Get information about the image", "description": "Retrieve the basic metadata associated with the image.", "operationId": "getImage", "produces": [ "application/json" ], "parameters": [ { "name": "image_id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/ImageSummary" } } } } }

"ImageSummary": { "type": "object", "properties": { "image_id": { "type": "integer" }, "entity_id": { "type": "integer" }, "image_type": { "$ref": "#/definitions/ImageType" }, "image_date": { "type": "integer" }, "expiry_date": { "type": "integer" }, "description": { "type": "string", "maxLength": 255 } }, "required": [ "image_id", "entity_id", "image_type" ], "additionalProperties": false }

----------------------------------------------------------------------------------------------------------------------

In current version of rest api, technical meta data of document is acciable only when user tries to download the document("/image/{image_id}/download").

Is it possible to include file name and type information in ImageSummary ?

world-checkorgid-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
4.1k 4 8 12

Tools like swagger merge or swagger combine should help.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.