Mocklets
  • Getting Started
  • Working with Collections
    • Create Collection
    • Invite Members
  • Managing Mock Apis
    • Dynamic Responses
    • URL Regex Matching
    • Use API as Proxy
    • Randomised Responses
    • Response Delay
    • Using Query Params
    • API Comments
  • Manage your files
  • Open API Specifications 3.x
  • Integration with external editors
  • Response Headers
  • Monitor Request Logs
  • Secure your mock APIs
  • Important Links
    • Home
    • Dashboard
    • Privacy Policy
    • Terms of Use
Powered by GitBook
On this page

Was this helpful?

  1. Managing Mock Apis

Dynamic Responses

PreviousManaging Mock ApisNextURL Regex Matching

Last updated 6 years ago

Was this helpful?

Using Dynamic Responses feature, Mocklets allows you to set up multiple responses for your APIs and select an active one on-the-go to test your web/app across various scenarios, which cannot be simulated with your real server environment.

Each response can have its own set of headers(Content-Type, Content-Encoding), response delay and response body.

This feature allows development as well as QA teams to test their applications, across various scenarios starting from the development phase, resulting in a much more robust and stable product.

If you want your API to return any specific response, which is not currently active, you can do that using query params also. Please refer this link for more.