MDES SDK Guides How to use the Mockup API
Hover over each of the signs to view the pop-up details.
What is the Mockup API |
|
The Mockup API provides a mechanism to test various output scenarios in any environment, against any product, for any method. |
|
In order to use the Mockup API, MetaDefender Endpoint Security SDK must be configured correctly. Passing in the WAAPI_CONFIG_MOCKUP_MODE to wa_api_setup will cause the MDES SDK to run in Mockup mode. All calls to wa_api_invoke will only return successfully if they are defined in the mockup.json file (except for those mentioned in the Remarks section). |
|
Every mockup.json file must contain the following core structure:
|
|
The keys within the "mockups" object must contain the following structure:
|
|
The keys within the "methods" object must contain either of the following structures:
OR
|
|
Below is an example of a complete mockup.json file:
|
|
*Remarks |
|
|