Sign inSign up

medaxtn/dss-api

By medaxtn

•Updated 11 months ago

DSS validation API with PDF/A validation support based on https://github.com/esig/dss-demonstrations

Image
0

511

medaxtn/dss-api repository overview

⁠DSS validation API with PDF/A validation support based on https://github.com/esig/dss-demonstrations⁠ ver. 6.3

⁠HOW TO RUN

#!/bin/bash

# Variables
containerName="dss-api"
imgName="medaxtn/dss-api:latest"

# Command
docker create --name "$containerName" \
--restart unless-stopped \
-p 8080:8080 \
"$imgName"
⁠A. Signature Validation

Method: POST
URL: http://dss-api.yourdomain.com:8080/services/rest/validation/validateSignature
Request Body: multipart/form-data

Parameters:

  • signedDocument: The file you want to validate

Curl usage example:

curl -X POST [http://dss-api.yourdomain.com:8080/services/rest/validation/validateSignature](http://dss-api.yourdomain.com:8080/services/rest/validation/validateSignature) \
  -F "signedDocument=@/path/to/your/signed/document.pdf"

Response (example):

{
  "valid": true,
  "simpleReport": {
    "validationTime": "2023-10-27T10:00:00Z",
    "indication": "TOTAL_PASSED",
    "subIndication": null,
    "signatureOrTimestamp": [
      {
        "id": "Signature-1",
        "indication": "TOTAL_PASSED"
      }
    ]
  },
  "detailedReport": {
  }
}
⁠B. Signature and PDF/A Compliance Validation

A special endpoint has been added for the simultaneous validation of the signature and verification that the document complies with the PDF/A standard.

Method: POST
URL: http://dss-api.yourdomain.com:8080/services/rest/validation/validateSigPdfA
Request Body: multipart/form-data

Parameters:

  • signedDocument: PDF file to validate

Curl usage example:

curl -X POST [http://dss-api.yourdomain.com:8080/services/rest/validation/validateSigPdfA](http://dss-api.yourdomain.com:8080/services/rest/validation/validateSigPdfA) \
  -F "signedDocument=@/path/to/your/pdfa/document.pdf"

Tag summary

Content type

Image

Digest

sha256:492441202…

Size

492 MB

Last updated

11 months ago

docker pull medaxtn/dss-api