Skip to content

Commit 5b1c818

Browse files
author
wlanboy
committed
added mirrorservice examples
1 parent ea63eea commit 5b1c818

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,30 @@ curl -L -X POST 'http://127.0.0.1:8080/client' -H 'Content-Type: application/jso
2020
```
2121

2222
# swagger uri
23-
- http://localhost:8080/swagger-ui/index.html#/http-client-controller/postMapping
23+
- http://localhost:8080/swagger-ui/index.html#/http-client-controller/postMapping
24+
25+
# curl calls for mirrorservice
26+
* see: https://github.com/wlanboy/MirrorService
27+
```bash
28+
curl -X 'POST' \
29+
'http://localhost:8080/client' \
30+
-H 'accept: */*' \
31+
-H 'Content-Type: application/json' \
32+
-d '{
33+
"url": "http://gmk:8003/resolve/google.com",
34+
"method": "GET",
35+
"body": "",
36+
"copyHeaders": false
37+
}'
38+
39+
curl -X 'POST' \
40+
'http://localhost:8080/client' \
41+
-H 'accept: */*' \
42+
-H 'Content-Type: application/json' \
43+
-d '{
44+
"url": "http://gmk:8003/mirror?request=HalloWelt&statuscode=200&wait=4",
45+
"method": "GET",
46+
"body": "",
47+
"copyHeaders": true
48+
}'
49+
```

0 commit comments

Comments
 (0)