Skip to content

Kumjami/java-todo-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java ToDo API example


Endpoints

/todos

Get:

List ToDos

Response:
[
    {
        "description": "To do description",
        "id": "to do uuid", // e.g. "cdfffde7-97e7-4f05-b9d4-c4c27f45e5d7",
        "done": false || true
    }
]

/todo

Post:

Create ToDo

Body:
{
    "description": "ToDo desciption"
}
Response:
{
    "description": "ToDo description",
    "id": "to do uuid", // e.g. "cdfffde7-97e7-4f05-b9d4-c4c27f45e5d7"
    "done": false || true
}

/todo/{todoid}

Put:

Updates ToDo

Body:
{
    "description": "New description",
    "done": true || false
}
Response:
{
    "description": "New description",
    "done": true || false,
    "id": "ToDo UUID" // e.g. "cdfffde7-97e7-4f05-b9d4-c4c27f45e5d7"
}

Delete:

Deletes a ToDo

Response:
{
    "description": "Deleted ToDo description",
    "done": true || false,
    "id": "ToDo UUID" // e.g. "cdfffde7-97e7-4f05-b9d4-c4c27f45e5d7"
}

About

Java inmemory ToDo app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages