http://jsgonzlez661.pythonanywhere.com/tasks
Get all tasks in the database
[
{
"create_date": "2020-07-10T23:03:46",
"description": "description 1",
"id": 1,
"title": "title 1"
}
{
"create_date": "2020-07-10T23:03:46",
"description": "description 2",
"id": 2,
"title": "title 2"
}
]
http://jsgonzlez661.pythonanywhere.com/tasks/1
Get the task by your id
{
"create_date": "2020-07-10T23:03:46",
"description": "description 1",
"id": 1,
"title": "title 1"
}
http://jsgonzlez661.pythonanywhere.com/tasks
Send JSON
{
"title": "Title",
"description": "description"
}
http://jsgonzlez661.pythonanywhere.com/tasks/1
Updating a task
Send JSON
{
"title": "New title",
"description": "New description"
}
http://jsgonzlez661.pythonanywhere.com/tasks/1
Delete the task by its id