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