node-echoprint-server icon indicating copy to clipboard operation
node-echoprint-server copied to clipboard

Ingesting a new fingerprint using curl

Open Lior79 opened this issue 10 years ago • 4 comments

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.

Lior79 avatar Apr 15 '14 11:04 Lior79

you should not use the json directly but extract the necessary fields yourself. Include the 'code' field like the error states ;-)

SamDecrock avatar Jun 12 '14 22:06 SamDecrock

Sam, can you please show a code example how to do it?

Lior79 avatar Jun 12 '14 22:06 Lior79

I think the easiest way is to go to http://localhost:37760/debug and paste it inside the box and hit 'ingest' ;-)

SamDecrock avatar Jun 13 '14 11:06 SamDecrock

Did you succeeded to use the curl command line ?

picozone avatar Feb 08 '17 10:02 picozone