moonming commented on a change in pull request #2943:
URL: https://github.com/apache/apisix/pull/2943#discussion_r536519115



##########
File path: doc/zh-cn/admin-api.md
##########
@@ -76,6 +76,7 @@
 |filter_func|可选|匹配规则|用户自定义的过滤函数。可以使用它来实现特殊场景的匹配要求实现。该函数默认接受一个名为 vars 
的输入参数,可以用它来获取 Nginx 变量。|function(vars) return vars["arg_name"] == "json" end|
 |labels   |可选 
|匹配规则|标识附加属性的键值对|{"version":"v2","build":"16","env":"production"}|
 |enable_websocket|可选 |辅助| 是否启用 `websocket`(boolean), 缺省 `false`.||
+|status          |可选 |辅助| 是否启用此路由, 缺省 `1`。|`1` 表示启用,`0` 表示禁用|
 |create_time|可选|辅助|单位为秒的 epoch 时间戳,如果不指定则自动创建|1602883670|

Review comment:
       Why the default time is not "now"? @nic-chen @membphis 

##########
File path: doc/admin-api.md
##########
@@ -72,6 +72,7 @@
 |service_protocol|False|Upstream protocol type|only `grpc` and `http` are 
supported|`http` is the default value; Must set `grpc` if using `gRPC proxy` or 
`gRPC transcode`|
 |labels   |False |Match Rules|Key/value pairs to specify 
attributes|{"version":"v2","build":"16","env":"production"}|
 |enable_websocket|False|Auxiliary| enable `websocket`(boolean), default 
`false`.||
+|status          |False|Auxiliary| enable this route, default `1`.|`1` to 
enable, `0` to disable|

Review comment:
       Need to add examples for how to use this.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to