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