Simple REST Webservice using Dropwizard and Cassandra Driver
Simple REST Webservice using Dropwizard 4.0 beta and Cassandra Driver 4.15
Apply keyspace and table from cql folder.
```shell script
./cqlsh -f src/main/resources/cql/db.cql
Build app via gradle
```shell script
./gradlew clean build
Start service via the fat jar
```shell script
java -jar build/libs/cass-dropwizard-all.jar server config.yml
Check health of the service
```shell script
curl http://localhost:9000/health-check
Create data via curl
```shell script
curl -v -XPOST “localhost:9000/person” -H “Content-Type: application/json” -d ‘{“id”: “66992983-af17-43ad-9fc9-b9a654a42d36”, “firstName”: “how”, “lastName”: “Ilove”, “email”: “jss@test.de”}’
Query single person
```shell script
curl -v "localhost:9000/person/66992983-af17-43ad-9fc9-b9a654a42d36"
Query all persons
```shell script
curl -v “localhost:9000/person/all”
Query count
```shell script
curl -v "localhost:9000/person/count"
DELETE datashell script
curl -v -XDELETE "localhost:9000/person/66992983-af17-43ad-9fc9-b9a654a42d36"