Skip to content

Instantly share code, notes, and snippets.

@somratcste
Created August 26, 2023 11:08
Show Gist options
  • Save somratcste/8cd32bdf1b4a2e61b7658401b2b8e377 to your computer and use it in GitHub Desktop.
Save somratcste/8cd32bdf1b4a2e61b7658401b2b8e377 to your computer and use it in GitHub Desktop.
Create a ToDo Application Using SpringBoot
We would like you to create a ToDo REST-Service Application.
Technology: Java, SpringBoot, SpringMVC, Hibernate, JPA, H2 Database
Todo
{
id [mandatory]
name [mandatory]
description
tasks: [
{
id [mandatory]
name [mandatory]
description
}
]
}
The service shall support the following endpoints/rest-api:
GET /tasks -> Returns a list of all Tasks
POST /tasks -> Expects a Todo (without id) and returns a Tasks with id
GET /tasks/{id} -> Returns a Task
PUT /tasks/{id} -> Overwrites an existing Task
DELETE /tasks/{id} -> Deletes a Task
GET /todos -> Returns a list of all Todos
POST /todos -> Expects a Todo (without id) and returns a Todo with id
GET /todos/{id} -> Returns a Todo
GET /todos/{id}/tasks/id -> Returns a Todo with Task
PUT /todos/{id} -> Overwrites an existing Todo
DELETE /todos/{id} -> Deletes a Todo
Todos must be stored in the Database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment