everest/README.md
2015-06-11 16:34:35 +02:00

960 B

what is it?

Simple universal mocking tool for http requests

  • requires java 8
  • set up expectations using json files in $PROJECT/everest_data directory
  • or start java with -Deverest.data=[..] for a different data directory
  • start using gradlew run
  • replay

Sample json

{
"name": "wehkamp.nl",
"url": "http://www.wehkamp.nl",
"method": "GET",
"requestHeaders": {
  "Accept": ["application/json"]
  },
"response": "<html>",
"responseStatus": 200
"responseHeaders":
  "Accept": ["application/json"]
  },
}
  • url can be java regex expression

api for json upload

- the JSON above can be uploaded to a running server using a POST to http://[server]:[port]/__api/upload - use Content-Type=application/json

TODO's

- reload json files on the fly - build a proxy that generates the json from actual requests/responses