April 19, 2021
We are excited to release API Simulator version 1.9!
- Stateful API Simulations! While it was possible to fake stateful APIs before, that had some limitations. Now it is more flexible and you are in control. “Get Customer” requests that follow a “Create Customer” call will return the Customer that was created; an “Update Customer” call sent later on will then have subsequent “Get Customer” requests return the updated Customer data. That is all dynamic and doesn’t require pre-configuring the actual Customer data in API Simulator. Functional testing with API Simulations just got better. Enjoy!
- New Admin APIs:
- “Get a Simlet” returns the DSL model (definition) for a simlet.
- “Reload Simulation” will, as the name suggests, reload the simulation and its simlets replacing any changed or new simlets that may have been added via the Admin APIs.
- The Admin APIs now automatically handle CORS (Cross-Origin Resource Sharing) requests.
- A new template function –
urlDecode– can be of help to easily deal with URL-encoded query string parameters or “application/x-www-form-urlencoded” request bodies.
- Upgraded Groovy to v3.0.7. No more scary warnings at startup time when using Java 9+: “WARNING: An illegal reflective access operation has occurred…”. There were no negative effects but, understandably, somebody could freak out seeing them. In the unlikely event it happens, let us know if previously working scripts or scriptlets now have problems.
- With this release, API Simulator ends support for Java 7. From now on, API Simulator requires Java 8 or later.
As usual, the documentation has more details.
We invite you to learn more about API Simulator, download and install it, and run the examples included in the download. Why not even create API simulations to help your own testing and development?
Let us know what you think at [contact at APISimulator.io]. Many thanks for your interest and support!
Happy API Simulating!