- Notifications
You must be signed in to change notification settings - Fork1
techmonad/akka-http-elasticsearch
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is sbt project for showing case for querying and sending data to elasticsearch using Akka-http and how to write unit tests.
Clone and run the unit test:
$ git clone git@github.com:techmonad/akka-http-elasticsearch.git$ cd akka-http-elasticsearch$ sbt testi)Download the Elasticsearch 2.4.4 or latest version and unzip it.
ii) Run the following command.
$ bin/elasticsearch $ sbt run- Add the catalogue record
request:
$ curl -XPOST 'localhost:9000/catalogue/add' -d '{"id":1,"type":"book","author":"Martin Odersky","title":"Programming in Scala"}'response:
Record added to catalogue successfully- Search by query
request:
$ curl -XPOST 'localhost:9000/catalogue/search' -d '{"author":"martin"}'response:
[{"id":2,"type":"book","author":"Martin Odersky","title":"Programming in Scala"}]About
This is sbt project for showing case for querying and sending data to elasticsearch using Akka-http and how to write unit tests.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Contributors2
Uh oh!
There was an error while loading.Please reload this page.