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