Sdaas / karate-mock-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WORK IN PROGRESS

Instructions

Start the mock server. The mock server will run in a docker container, and will load the rules specified in rules.json

docker-compose up

Execute a canned rule (that was loaded from rules.json)

curl -v http://localhost:9000/hello 

To see the current rules

curl -v http://localhost:9000/_rules | jsonpp
curl -v http://localhost:9000/rule/{id} | jsonpp

To see the call history

curl -v http://localhost:9000/_history | jsonpp

Run the client to exercise the mock-server

java -jar karate.jar static-demo.feature

References

About

License:MIT License


Languages

Language:Gherkin 94.3%Language:Shell 3.3%Language:Dockerfile 2.4%