node-echoprint-server
node-echoprint-server copied to clipboard
Ingesting a new fingerprint using curl
Hi, I have created a json file using echoprint-codegen. I can't figure out how to use this json file to ingest it to the DB. I tried: curl -H "Content-Type: application/json" --data @lethergo.json http://localhost:37760/ingest
I get an error: {"error":"Missing "code" field"} though the json file has a code field.
Please advise.
you should not use the json directly but extract the necessary fields yourself. Include the 'code' field like the error states ;-)
Sam, can you please show a code example how to do it?
I think the easiest way is to go to http://localhost:37760/debug and paste it inside the box and hit 'ingest' ;-)
Did you succeeded to use the curl command line ?