API Simulation Demo
On December 22nd, CLEVR hosted the community meetup event titled “Fake it till you make it - Complex interface mocking at Stella”. As part of the meetup a sample application was shown to demonstrate the use of a SOAPUI mockservice to simulate your API.
This sample application is the one that was used to simulate a “Wishlist service”, and it contains the Mendix app as well as the SOAPUI project (you can find it in the resources folder)
With this app you can reproduce the example case yourself. The SOAPUI project contains all the groovy scripts that were shown in action, allowing you to implement API simulations in your own projects
Sample application as demonstrated in the Mendix community meetup “Fake it till you make it”, hosted by CLEVR and Stella on December 22nd, 2021. See https://www.youtube.com/watch?v=NyVK3dt6tNQ for the meetup recording.
Typical usage scenario
The app itself is fairly straightforward. The homepage shows a list of wishlists. The “Instructions” button gives a quick overview on how to configure the mockservice. After entering the wishlist and clicking the Submit button the app will show a window containing the raw request/response data regarding the communication with the mockservice. The ‘wishlist’ mockservice provides both a synchronous and an asynchronous response
Features and limitations
- Ready-to-use example of a Mendix app integrated with an application simulator
- Contains SOAPUI project with scripts to generate dynamic responses, including automated asynchronous response
- Should only be used to analyze the provided code snippets, so you can use them in your own projects
- Studio Pro v 8.18.10
- SOAPUI 5.6.1 installed locally in order to make use of the mockservice demo
After downloading the project, open the project directory in Windows Explorer. The “resources” folder will contain an .xml file which is the SOAPUI project. Import this in SOAPUI (v5.6.1) and make sure the mockservice “wishlistProvider8089” is running, then start the app locally.
See the “Instructions” page inside the app to find out more