This is an automated email from the ASF dual-hosted git repository. membphis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push: new 4e185bb doc: fix doc style of plugin grpc-transcoding (#1324) 4e185bb is described below commit 4e185bb1020c7718b0ddf59b4e724a237eefb1f4 Author: kv <gxt...@163.com> AuthorDate: Sun Mar 22 19:49:40 2020 +0800 doc: fix doc style of plugin grpc-transcoding (#1324) --- doc/plugins/grpc-transcoding.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/plugins/grpc-transcoding.md b/doc/plugins/grpc-transcoding.md index 9813a2f..870f9c5 100644 --- a/doc/plugins/grpc-transcoding.md +++ b/doc/plugins/grpc-transcoding.md @@ -17,7 +17,7 @@ # --> -[Chinese](grpc-transcoding-cn.md) +# [Chinese](grpc-transcoding-cn.md) ## Name @@ -26,6 +26,7 @@ HTTP(s) -> APISIX -> gRPC server ### Proto #### Attributes + * `content`: `.proto` file's content. #### Add a proto @@ -49,7 +50,7 @@ curl http://127.0.0.1:9080/apisix/admin/proto/1 -H 'X-API-KEY: edd1c9f034335f136 }' ``` -## Attributes +## Attribute List |Name |Requirement |Description| |--------- |--------|-----------| @@ -86,16 +87,17 @@ curl http://127.0.0.1:9080/apisix/admin/routes/111 -H 'X-API-KEY: edd1c9f034335f }' ``` - ## Test Plugin The above configuration proxy : + ```shell curl -i http://127.0.0.1:9080/grpctest?name=world ``` response: -``` + +```shell HTTP/1.1 200 OK Date: Fri, 16 Aug 2019 11:55:36 GMT Content-Type: application/json @@ -108,4 +110,3 @@ Proxy-Connection: keep-alive ``` This means that the proxying is working. -