Create a mock API endpoint in a flash
Sometimes we're just playing around with a framework or library we want something different data, like a data structure that didn't exist in ages. But we don't want to create an API for a simple or for a test thing-ish.
Mock, a service that you can ask for a mock data based on your preffered structure.
To Generate a payload head into the Mock Generate page and construct the payload you want.
For example in the payload below, it'll generate a random first name and a static value Check it here.
{
"first_name": "!FIRST_NAME",
"im_static": "Hello world!"
}
Generate an endpoint with a payload at Mock Generate page and after generating, tadaaa! your API endpoint.
You can now use it like this:
fetch('https://mock.smollbites.com/CODE')
.then((response) => response.json())
.then((response) => {
console.log(response)
})
You can hit me up via email so that I can more what you need ✨