Skip to content

mrolnik/to-do-list-app

Repository files navigation

To Do List

HTTP server for a to-do list. Scala app made with Play 2 framework.

Pre-requisites

  • Java 1.8
  • Play Framework (DOC)

Add item

Request

  • URL : /todos
  • TYPE: POST
  • BODY: {"description": "Buy some milk"}
  • HEADERS: Content-Type: application/json

Response

Added -> 201 CREATED

{
	"id": "1"
}

Update item

Request

  • URL : /todos/{id}
  • TYPE: PUT
  • BODY: {"description": "Buy some more milk"}
  • HEADERS: Content-Type: application/json

Response

Updated -> 200 OK

Delete item

Request

  • URL : /todos/{id}
  • TYPE: DELETE

Response

Removed -> 200 OK

Get all items

Request

  • URL : /todos
  • TYPE: GET

Response

Got all -> 200 OK

[{
	"id": "2",
	"description": "Watch Sherlock.",
	"Date": "2016/06/01 07:11:29"
},
{
	"id": "1",
	"description": "Buy some milk!",
	"Date": "2016/06/01 07:10:29"
}]

Get history

Request

  • URL : /history/todos
  • TYPE: GET

Response

Got all -> 200 OK

[{
	"id": "4",
	"description": "DELETE",
	"itemId": "2",
	"Date": "2016/06/01 07:20:29"
},
{
	"id": "3",
	"description": "UPDATE",
	"itemDescription": "Buy some more milk!",
	"itemId": "1",
	"Date": "2016/06/01 07:13:29"
},
{
	"id": "2",
	"description": "ADD",
	"itemDescription": "Watch Sherlock.",
	"itemId": "2",
	"Date": "2016/06/01 07:11:29"
},
{
	"id": "1",
	"description": "ADD",
	"itemDescription": "Buy some milk!",
	"itemId": "1",
	"Date": "2016/06/01 07:10:29"
}]

About

To Do List APP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages