Introduction

The library provides a single JAR that can be used to define and run an HTTP stub server using a declarative API definition file in YAML format.

The API definition file allows developers to specify expected HTTP requests and their corresponding responses.

The library also supports template rendering using Groovy, allowing developers to dynamically generate responses based on incoming requests.

The library includes a file watch feature that automatically reloads the API definition file when it changes, making it easier to make changes to the API during development.

Some key features of the library include:

  • A single JAR for easy integration into Java projects

  • Declarative API definition using YAML for easy configuration of expected requests and responses

  • Support for rendering and pattern selection using Groovy to dynamically generate responses

  • A file watcher to automatically reload the API definition file during development

  • With the reverse proxy feature, requests can be intercepted at the application level for further use

  • 'VCR' recording. Record HTTP interactions that can be played back in the future

Overall, the library is a useful tool for Java developers who need to test HTTP client code on an HTTP stub server or simulate remote API behavior during integration/system testing.

The declarative API definition and template rendering features of the library make it easy to set up expected queries and responses, and the file watch feature simplifies the development process by automatically reloading the API definition file.

Last updated