Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingesting a new fingerprint using curl #11

Open
Lior79 opened this issue Apr 15, 2014 · 4 comments
Open

Ingesting a new fingerprint using curl #11

Lior79 opened this issue Apr 15, 2014 · 4 comments

Comments

@Lior79
Copy link

Lior79 commented Apr 15, 2014

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.

@SamDecrock
Copy link

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

@Lior79
Copy link
Author

Lior79 commented Jun 12, 2014

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

@SamDecrock
Copy link

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

@picozone
Copy link

picozone commented Feb 8, 2017

Did you succeeded to use the curl command line ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants