Merge branch 'master' of https://github.com/shautvast/everest
This commit is contained in:
commit
506bea5d0e
1 changed files with 26 additions and 4 deletions
30
README.md
30
README.md
|
|
@ -1,5 +1,27 @@
|
||||||
Simple universal mocking tool for http requests
|
<h3>what is it?</h3>
|
||||||
|
|
||||||
-set up expectations using json files in $PROJECT/everest directory
|
Simple universal mocking tool for http requests
|
||||||
-start using gradlew run
|
- requires java 8
|
||||||
-replay
|
- 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
|
||||||
|
|
||||||
|
<h3>Sample json</h3>
|
||||||
|
{<br/>
|
||||||
|
"id": "91f83cd9-a0a5-49f5-b740-78ba8f504797",<br/>
|
||||||
|
"name": "wehkamp.nl",<br/>
|
||||||
|
"url": "http://www.wehkamp.nl",<br/>
|
||||||
|
"method": "GET",<br/>
|
||||||
|
"requestHeaders": {<br/>
|
||||||
|
"Accept": ["application/json"]<br/>
|
||||||
|
},<br/>
|
||||||
|
"response": "<html>",<br/>
|
||||||
|
"responseStatus": 200<br/>
|
||||||
|
}<br/>
|
||||||
|
|
||||||
|
- url can be java regex expression
|
||||||
|
|
||||||
|
<h3>TODO's</h3>
|
||||||
|
- implement response headers
|
||||||
|
- build a proxy that generates json
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue