This repository was archived by the owner on Sep 22, 2022. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
[ ![ Stability: Maintenance] ( https://masterminds.github.io/stability/maintenance.svg )] ( https://masterminds.github.io/stability/maintenance.html )
2
2
[ ![ Docker Cloud Build Status] ( https://img.shields.io/docker/cloud/build/adven27/grpc-wiremock?label=build&logo=docker )] ( https://hub.docker.com/repository/docker/adven27/grpc-wiremock/builds )
3
- [ ![ Docker Image Version (tag latest semver)] ( https://img.shields.io/docker/v/adven27/grpc-wiremock/1.3.0 ?logo=docker )] ( https://hub.docker.com/repository/docker/adven27/grpc-wiremock/general )
3
+ [ ![ Docker Image Version (tag latest semver)] ( https://img.shields.io/docker/v/adven27/grpc-wiremock/1.3.1 ?logo=docker )] ( https://hub.docker.com/repository/docker/adven27/grpc-wiremock/general )
4
4
5
5
# Overview
6
6
grpc-wiremock is a ** mock server** for ** GRPC** services implemented as a wrapper around the [ WireMock] ( http://wiremock.org ) http server.
@@ -18,7 +18,7 @@ docker run -p 8888:8888 -p 50000:50000 -v $(pwd)/example/proto:/proto -v $(pwd)/
18
18
```
19
19
20
20
2 ) Stub
21
- ``` json
21
+ ``` posh
22
22
curl -X POST http://localhost:8888/__admin/mappings \
23
23
-d '{
24
24
"request": {
@@ -42,7 +42,7 @@ curl -X POST http://localhost:8888/__admin/mappings \
42
42
```
43
43
44
44
3 ) Check
45
- ``` json
45
+ ``` posh
46
46
grpcurl -H 'withAmount: 100.0' -plaintext -d '{"id": 1, "currency": "EUR"}' localhost:50000 api.wallet.BalanceService/getUserBalance
47
47
```
48
48
@@ -154,7 +154,7 @@ how many responses should be returned during the stream (`1` - if absent).
154
154
155
155
The current response iteration number is available in ` request.headers.streamCursor ` :
156
156
157
- ``` json
157
+ ``` posh
158
158
curl -X POST http://localhost:8888/__admin/mappings \
159
159
-d '{
160
160
"request": {
You can’t perform that action at this time.
0 commit comments