Skip to content

Commit

Permalink
doc(readme) fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion authored and gszr committed Jun 17, 2021
1 parent b23f6e8 commit 0411a1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -45,15 +45,15 @@ $ # add an http route
$ curl -XPOST localhost:8001/services/grpc/routes \
--data protocols=http \
--data name=web-service \
--data paths=/
--data paths[]=/

$ # add the plugin to the route
$ curl -XPOST localhost:8001/routes/web-service/plugins \
--data name=grpc-gateway
```

The proto file must contain the
[HTTP REST to gRPC mapping rule](https://github.com/googleapis/googleapis/blob/fc37c47e70b83c1cc5cc1616c9a307c4303fe789/google/api/http.proto)
[HTTP REST to gRPC mapping rule](https://github.com/googleapis/googleapis/blob/fc37c47e70b83c1cc5cc1616c9a307c4303fe789/google/api/http.proto).

In the example we use the following mapping (note the `option (google.api.http) = {}` section):

Expand Down Expand Up @@ -87,7 +87,7 @@ message HelloReply {
}
```

In this example, we can send following requests to Kong that translates to corredsponding gRPC requests:
In this example, we can send following requests to Kong that translates to corresponding gRPC requests:

```shell
# grpc-go/examples/features/reflection/server $ go run main.go &
Expand Down

0 comments on commit 0411a1f

Please sign in to comment.