scan and persist

POST call to scan file for virus, and persist to disk (optional)

this endpoint is called to scan file for virus and persist it in AWS s3 (optional)

post/v1/scan/upload

Request

  • Base URL
    https://localhost:8080
  • Auth
    none declared

Request body multipart/form-data

filestring binary required

file to be uploaded

Example request

{
  "meta": {
    "id": "such as a claim id",
    "fileName": "image.jpg",
    "mime": "image/jpg",
    "sizeKb": 128
  }
}

Response

no virus detected and file upload to S3 bucket

s3Refstring

S3 file key

bucketstring

bucket name

fileSizeKbinteger

unencrypted file size in kb

Example response

{
  "s3Ref": "123_PRESCRIPTION.JPG.2020",
  "bucket": "pip-bucket"
}

Changes

No recorded changes to this operation across all 1 revision of this API.