Running a Sample Request

Once you have the Knomi Face Liveness 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 @analyze_image_sample.json http://localhost:8080/preface/analyzeImage
curl -H "Content-Type: application/json" -X POST -d @autocapture_sample.json http://localhost:8080/preface/autocaptureVideo
curl -H "Content-Type: application/json" -X POST -d @calculate_roi_sample.json http://localhost:8080/preface/calculateROI