Running a Sample Request

Once you have the Knomi Document Analyzer REST server running in the container, you can run one of the sample requests using the curl utility from the Docker host’s terminal:

curl -H "Content-Type: application/json" -X POST -d @autocapture_document_sample.json http://localhost:8088/documentAnalyzer/autocaptureDocument
curl -H "Content-Type: application/json" -X POST -d @autocapture_document_encrypted_sample.json http://localhost:8088/documentAnalyzer/autocaptureDocumentEncrypted
curl -H "Content-Type: application/json" -X POST -d @get_capture_region_sample.json http://localhost:8088/documentAnalyzer/getCaptureRegion