Skip to content

devops-course/kinneret-server

Repository files navigation

Circle CI codecov.io Codacy Badge

Preface

Server demo implementation for the devops course. It is based on Dropwizard and Maven Unit and System tests are written with Junit and use Dropwizard handy classes.

Build And Run

  • clone the repo
  • To Build and Test the service: run "mvn clean install"
  • To run the service: run "java -jar target\kinneret-server-1.0-SNAPSHOT.jar server kinneret-server.yml"
  • You can find more detailed information here about how to build and run Dropwizard application

Server's API

Supported REST endpoints:

 DELETE  /tasks/{id} 
 GET     /tasks
 GET     /tasks/{id}
 POST    /tasks

To create new task POST on http://localhost:9000/tasks with json body looks like this:

{"description":"blibli"}

will create new task, The response will contain the same task with the id generated by the server (be aware to add the Content-Type: application/json to the http request)

To get all tasks GET on http://localhost:9000/tasks, returns list of tasks formated in json, for example:

[{"id":10,"description":"blibli"},{"id":2,"description":"blabla2"},{"id":4,"description":"blabla2"},{"id":5,"description":"blabladrggdfdfgdf"},{"id":6,"description":"kuku"},{"id":7,"description":"blabladfdfd"},{"id":8,"description":"kuku"},{"id":9,"description":"blabla2"}]

To delete a task DELETE on http://localhost:9000/tasks/{id} {id} should be the task id you would like to delete

You can also get single task using GET on http://localhost:9000/tasks/{id}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages