Skip to content

jmredfern/task-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Task Service

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.

Download

Requirements

  • PostgreSQL 9.4

Usage

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

Third party libraries

License

Version

  • Version 1.0.0

Contact

Developer

Flattr this git repo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages