Imagine you have an external API endpoint your application needs to consume, for example:
https://<YourDomain>.com/MyToBeEndpoint, but the actual API is not ready yet.
With Mocktopus, you can easily simulate this behavior. Simply open the Mocktopus Backoffice, create a mock endpoint named MyToBeEndpoint, and configure your app to point to the mock instead. In Service Center, change the consumed API’s base URL from:
https://<YourDomain>.com
to:
https://<YourOutSystemsEnvironment>.com/Mocktopus_API_CS/rest/Mocktopus_API
At runtime, your OutSystems app will call Mocktopus, which will return the predefined mock response you've configured, allowing your team to continue development and testing without waiting for the real service.
This sample module already includes a set of mock endpoints for you to try.
To test it, open Service Center, locate the MocktopusAPISample module, and update the endpoint of the consumed API to point to your environment using this format:
Mocktopus will handle the rest.