This is an automated email from the ASF dual-hosted git repository.
monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 3b9fbb742 docs: add example for protos (#9902)
3b9fbb742 is described below
commit 3b9fbb742941efec0181239e76ea649ca4386653
Author: Abhishek Choudhary <[email protected]>
AuthorDate: Wed Jul 26 14:35:22 2023 +0545
docs: add example for protos (#9902)
---
docs/en/latest/deployment-modes.md | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/docs/en/latest/deployment-modes.md
b/docs/en/latest/deployment-modes.md
index c5687d84b..9f75a1d99 100644
--- a/docs/en/latest/deployment-modes.md
+++ b/docs/en/latest/deployment-modes.md
@@ -434,3 +434,25 @@ upstreams:
id: 1
#END
```
+
+### How to configure protos
+
+```yaml
+protos:
+ - id: helloworld
+ desc: hello world
+ content: >
+ syntax = "proto3";
+ package helloworld;
+
+ service Greeter {
+ rpc SayHello (HelloRequest) returns (HelloReply) {}
+ }
+ message HelloRequest {
+ string name = 1;
+ }
+ message HelloReply {
+ string message = 1;
+ }
+#END
+```