This is an automated email from the ASF dual-hosted git repository.

guoqi 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 a943c0369 docs: add Protos endpoint to Admin API (#9515)
a943c0369 is described below

commit a943c036987aa2e9a34f05060015ff65b8913345
Author: Traky Deng <[email protected]>
AuthorDate: Sun May 21 22:38:26 2023 +0800

    docs: add Protos endpoint to Admin API (#9515)
---
 docs/en/latest/admin-api.md | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/docs/en/latest/admin-api.md b/docs/en/latest/admin-api.md
index 6c40c412c..f8fe8c6ea 100644
--- a/docs/en/latest/admin-api.md
+++ b/docs/en/latest/admin-api.md
@@ -1453,3 +1453,31 @@ HTTP/1.1 200 OK
 ### Response Parameters
 
 Currently, the response is returned from etcd.
+
+## Proto
+
+Proto is used to store protocol buffers so that APISIX can communicate in gRPC.
+
+See [grpc-transcode plugin](./plugins/grpc-transcode.md#enabling-the-plugin) 
doc for more examples.
+
+### Proto API
+
+Proto resource request address: /apisix/admin/protos/{id}
+
+### Request Methods
+
+| Method | Request URI                      | Request Body | Description       
                              |
+| ------ | -------------------------------- | ------------ | 
----------------------------------------------- |
+| GET    | /apisix/admin/protos      | NULL         | List all Protos.  |
+| GET    | /apisix/admin/protos/{id} | NULL         | Get a Proto by id.     |
+| PUT    | /apisix/admin/protos/{id} | {...}        | Create or update a Proto 
with the given id.        |
+| POST   | /apisix/admin/protos      | {...}        | Create a Proto with a 
random id.         |
+| DELETE | /apisix/admin/protos/{id} | NULL         | Delete Proto by id.      
           |
+
+### Request Body Parameters
+
+| Parameter   | Required | Type     | Description                              
                           | Example                       |
+| ----------- | -------- | -------- | 
------------------------------------------------------------------- | 
----------------------------- |
+| content   | True    | String | content of `.proto` or `.pb` files | See 
[here](./plugins/grpc-transcode.md#enabling-the-plugin)         |
+| create_time | False    | Epoch timestamp (in seconds) of the created time. 
If missing, this field will be populated automatically.             | 
1602883670                                       |
+| update_time | False    | Epoch timestamp (in seconds) of the updated time. 
If missing, this field will be populated automatically.             | 
1602883670                                       |

Reply via email to