Episode

Mocking responses

Mocking provides a way for APIs to return sample responses even when their backend isn't capable of providing one. This enables app developers to proceed with implementation and testing and can be useful in a number of scenarios:

  • When the API façade is designed first, and the backend implementation comes later or is worked upon in parallel
  • When the backend is temporarily not operational or not able to scale