DEV Community

[fake-api] how to mock a fake reponse when developing

tkhadir on March 10, 2021

When working on developing an api i have faced an issue : how to deal with an api that is not already developed ?

Then i had the idea to mock the response using faker.js library.

https://www.npmjs.com/package/faker

And you how do you do to mock your api's ?

Collapse
 
lambrero profile image
Avin Lambrero