Skip to content

Commit

Permalink
Merge pull request #1 from git-ness/master
Browse files Browse the repository at this point in the history
Add content type to the curl command
  • Loading branch information
satendrakumar authored Dec 25, 2017
2 parents a8d334d + 82fa95a commit 330d7b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
4) $ bin/elasticsearch

### Insert data into elasticsearch
$ curl -XPOST localhost:9200/test/tweet -d '{"name":"Satendra", "job":"consultant" , "location":"India", "age":28}'
$ curl -XPOST localhost:9200/test/tweet -d '{"name":"Rohit", "job":"consultant" , "location":"India", "age":22}'
$ curl -XPOST localhost:9200/test/tweet -d '{"name":"Mohit", "job":"consultant" , "location":"India", "age":25}'
$ curl -H "Content-Type:application/json" -XPOST localhost:9200/test/tweet -d '{"name":"Satendra", "job":"consultant" , "location":"India", "age":28}'
$ curl -H "Content-Type:application/json" -XPOST localhost:9200/test/tweet -d '{"name":"Rohit", "job":"consultant" , "location":"India", "age":22}'
$ curl -H "Content-Type:application/json" -XPOST localhost:9200/test/tweet -d '{"name":"Mohit", "job":"consultant" , "location":"India", "age":25}'


### Run project
Expand Down

0 comments on commit 330d7b6

Please sign in to comment.