Task Service is a basic RESTful Task Service. The service provides a REST API that allows callers to create, retrieve, update and delete tasks.
Some core use cases are:
- Create a task.
- Assign a task to a user.
- Complete a task.
- Fetch all tasks assigned to me.
- PostgreSQL 9.4
The service can be deployed into an embedded Jetty container using the following command:
$ mvn -Dmaven.skip.test=true -DprovisionDatabase=true -Dfile.encoding=UTF-8 jetty:run -e
The service will be available at:
http://localhost:8080/service/
User id 1 & 2 will be pre-provisioned, along with 2 Platform Objects and 3 Tasks.
HTTP operation | URL | Function |
---|---|---|
GET | /service/user/{userId}/task | list all tasks for a user |
GET | /service/user/{userId}/task/{taskId} | retrieve a task for a user |
POST | /service/user/{userId}/task | create a task for a user |
PUT | /service/user/{userId}/task | update a task for a user |
DELETE | /service/user/{userId}/task | delete a task for a user |
PostgreSQL should be configured with a database called 'taskservice' and the username and password added to the dataSource bean in the file: '/task-service/src/main/webapp/WEB-INF/taskservice-servlet.xml'
To clone the repo use:
$ git clone https://github.com/jmredfern/task-service.git
- see NOTICE file
- see LICENSE file
- Version 1.0.0
- e-mail: jmredfern@gmail.com
- Twitter: @redfernjim