Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 670 Bytes

README.adoc

File metadata and controls

28 lines (19 loc) · 670 Bytes

swagger-to-hoverfly

This is a spike Java project designed to generate Hoverfly simulations from Swagger definitions.

Usage

Run test and build shadow jar.

./gradlew clean build

If you are in the project root directory, you can try it with the pet-store Swagger specification json:

java -jar build/libs/swagger-to-hoverfly-1.0-SNAPSHOT-all.jar src/test/resources/petstore.json

This will print out the equivalent Hoverfly simulation data.

Or output to a json file:

java -jar build/libs/swagger-to-hoverfly-1.0-SNAPSHOT-all.jar src/test/resources/petstore.json > hoverfly-petstore.json