- Clone this repository
$ git clone https://github.com/VaibhaveS/whatTODO.git
- Start RabbitMQ server
$ rabbitmq-server
- Open mySQL server
edit application.properties file with schema name, url and password.
-
Run "DoneApplication.java" class
-
Send requests using postman
- fetch all todos - GET request http://localhost:8080/todo
- fetch todos of a particular user - GET request http://localhost:8080/todo/{userId}
- add a todo - POST request http://localhost:8080/todo
BODY : {
"name"
"id" //automatically assigned
"status" //optional (default false)
"userid" //optional (default null)
} - update a task - PUT request http://localhost:8080/todo
BODY : {
"name"
"id" "status" //optional (default false)
"userid" //optional (default null)
} - assign a task to a user - PUT request http://localhost:8080/todo/{id}/{userId}
- delete a task - DELETE request http://localhost:8080/todo/{taskId}
- write todos from csv file to DB - POST request http://localhost:8080/todo/batch