It is here: YAML DSL for API Simulation Modeling

December 31, 2017

 

What a great way to end 2017!

Modeling API Simulations via configuration for the Standalone API Simulator is now easier than ever with our new YAML-based DSL (Domain Specific Language).

YAML has gained wide acceptance as the language of choice for configuration. Concise and expressive, our YAML DSL is easy to learn and start using in no time. Here is a small example demonstrating possible configuration for matching HTTP requests that have “GET” HTTP method, and a particular URI path and “Accept” header:

matchers:
- method: GET

- where: UriPath
  equals: "/api/v2/products"

- header: "Accept"
  contains: "/json"

We have created a tutorial to get you quickly up to speed on modeling simulations with our YAML DSL.

Lower-level XML configuration is still supported but it we will be phased out in favor of the YAML, and soon perhaps JSON, DSL. Until the YAML DSL covers all features, XML configuration for the time being is still the way to go for more elaborated simlet configurations.

In addition, an option for visual modeling of API Simulations is our free web-based API Simulation Modeler tool. Its auto-discovery of data elements in JSON or XML can help tremendously, especially with HTTP requests and responses captured using our API Recorder.

 


We invite you to learn more about API Simulator, download and install it, and run the examples. Why not even create API simulations to help your own testing and development?

Let us know what you think at [feedback at APISimulator.com]. Many thanks for your interest and support!

 

Happy API Simulations!