Delete a task based on ID supplied in path
ID of task to delete
Task deleted
Create a new task
Task to add to the list
Success
Return a task based on its ID
ID of task to get
const response = await fetch('/task/{id}', { method: 'DELETE', headers: {}, }); const data = await response.json();
{ "message": "text" }
const response = await fetch('/task', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "name": "text" }), }); const data = await response.json();
{ "name": "text", "tag": "text" }
const response = await fetch('/task/{id}', { method: 'GET', headers: {}, }); const data = await response.json();