This fake REST API allows you to create mock REST API, and monitor your Mocks Calls, and track your requests!
You can create several mock, and they will be saved. You must keep your API key for later editing.
Note: CORS requests are automatically accepted from any origin.
In object-oriented programming (OOP), mock objects simulate the behavior of real objects in controlled ways. It's like a simulation.
You should use mocks when you can't use the real service / object. For example, sometimes front-end developer wait for the back-end developer. Mock API makes it possible not to wait and not to waste time. Mocking can be extremely powerful and can save a lot of time.
You can create tests in advance. You can write tests before the service is created, and test your scenarios. Your coworkers can work in parallel without waiting for you to build the services.
You can also easily create proof of concepts, mocking allows to rapidly prototype different response shapes to see how they work.
Another advantage is being able to work offline.
Mocking have also some disadvantages.
It takes extra work, you must evaluate the effort you will put into the Mock.
Mocks are also subject to bugs, there may be differences with the real service.
Comments
Paolo-2019-10-24 18:14
Cyril-2019-11-08 19:38
Alex-2020-03-11 07:24
Matthias-2021-08-26 14:46
Great stuff, thank you for creating this :)
One idea that would help us: Do you think it's possible to include query parameters for the mock matching?
So, something like this:
- Mock A: ../list?start=0
- Mock B: ../list?start=25
Would be greatly appreciated!
Francisco-2022-05-18 13:47