Skip to content
Example of Wiremock JAX-RS usage to create stub in runnable standalone jar.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Wiremock JAX-RS Example

Build Status

Example of:

See also:

This demonstrates a structure like:

  • module - Parent pom.
  • module-api - JAX-RS annotated API. Very slim API jar.
  • module-api-mock - Runnable mock-server based on Wiremock JAX-RS.


You can get the example runnable jar from:

And run it like this:

java -jar wiremock-jaxrs-example-api-mock-1.6-jar-with-dependencies.jar 

You can try it out by invoking with curl like:

curl -v -H "Accept: application/json" http://localhost:8080/get?filter1=abc
curl -v -H "Accept: application/json" http://localhost:8080/get?filter1=some+attr+value
You can’t perform that action at this time.