Todo

A todo list

Fetch a given todo list

fetch('https://api.placeholderjson.dev/todo/5')
.then(response => response.json())
.then(json => console.log(json))

// Return
[
  {
    "id":1,
    "title":"Varius ut",
    "done": true
  },
  {
    "id":2,
    "title":"In faucibus orci luctus et",
    "done":false
  }
]

List all todo lists

fetch('https://api.placeholderjson.dev/todo')
.then(response => response.json())
.then(json => console.log(json))

// Return
[[{"id":1,"title":"Sed porttitor ante","done":true}, /* ... */]]

Information

Data

NameType
idnumber
titlestring
completedboolean