Modify Response


The Modify Response allows you to return static or dynamic data.


Modify response

Source Condition: The Source condition is where you define the rules for determining which requests will match the specified conditions. You can use Contains, Wildcard or Equals to match the request URL.


More about source conditions here

Static Data: Static Data allows to return defined data in the editor


Response Type: Here need to select Response Type like JSON, CSS or JAVASCRIPT.


Dynamic Data: Dynamic Data allows to return the data which should be result of defined function modifyResponse in the editor. This function takes the original response as an argument and can be modified based on the use case.




Video


Modify API Response Dynamically - Youtube.com



Modify API Response Dynamically - Amazon.com