A generic rest mock to simulate rest server using a simple configuration
- JSON Configuration
- Supports injection of values from the request to responses.
- Supports wildcards in responses.
- Supports method, body, headers, response codes.
- Supports multiple requests forwarding
- Supports in memory persistence
- Supports intercepting response using customized code
- Set config.properties server port and service configuration location
- Start from examples/simple.json to test the configured services.
- From any REST client (example : https://www.getpostman.com) try to GET http://localhost:6060/simple1 you should get the following response:
{ "message" : "response1 OK!" }
$ java -jar ./target/mock-rest-server-1.0.jar
Build
$ mvn clean install
Create Executable JAR container
$ mvn package