Docs
You can use examples below to check how Jsonify React works.
Todos
GETGet all todos
fetch('//jsonifyreact.vercel.app/api/todos')
.then((res) => res.json())
.then((data) => console.log(data)) GETGet a single todo
fetch('//jsonifyreact.vercel.app/api/todos/1')
.then((res) => res.json())
.then((data) => console.log(data)) GETLimit and Skip todos
fetch('//jsonifyreact.vercel.app/api/todos?limit=10&skip=5')
.then((res) => res.json())
.then((data) => console.log(data)) POSTAdd a todo
fetch('//jsonifyreact.vercel.app/api/todos', {
method: 'POST',
// Add body data here
})
.then((res) => res.json())
.then((data) => console.log(data)) PUTUpdate a todo
fetch('//jsonifyreact.vercel.app/api/todos/1', {
method: 'PUT',
// Add body data here
})
.then((res) => res.json())
.then((data) => console.log(data)) DELETEDelete a todo
fetch('//jsonifyreact.vercel.app/api/todos/1', {
method: 'DELETE'
})
.then((res) => res.json())
.then((data) => console.log(data))