Enter the Mock return result
You can enter the actual return result in the Mock return result field. Currently, the system
supports Mock return results in JSON, XML or file format. For example:
Save the Mock configuration and release it to the test or online environment for test or to
the API debugging page for debugging based on your actual needs.
Debugging
You can initiate an API call on the API debugging page to test the setting result:
It means the Mock is successfully set.
Remove a Mock
To remove a Mock, change the selection to Do not Use Mock in the first image. The value of the
{
"result": {
"title": " Mock test for API Gateway",
}
}
API Gateway
User Guide for Providers
34