You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2020/10/04 05:52:12 UTC

[apisix] branch master updated: doc: update router variable example (#2351)

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

spacewander 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 2f3d678  doc: update router variable example (#2351)
2f3d678 is described below

commit 2f3d6786e21016d594bf62763c3ff5fdc0de74cc
Author: diaosj <gr...@gmail.com>
AuthorDate: Sun Oct 4 13:52:04 2020 +0800

    doc: update router variable example (#2351)
---
 doc/router-radixtree.md | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/doc/router-radixtree.md b/doc/router-radixtree.md
index ef825c6..ac3b5ac 100644
--- a/doc/router-radixtree.md
+++ b/doc/router-radixtree.md
@@ -78,9 +78,11 @@ $ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f
 {
     "uri": "/index.html",
     "vars": [
-        ["http_host", "iresty.com"],
-        ["cookie__device_id", "a66f0cdc4ba2df8c096f74c9110163a9"],
-        ["arg_name", "jack"]
+        ["http_host", "==", "iresty.com"],
+        ["cookie_device_id", "==", "a66f0cdc4ba2df8c096f74c9110163a9"],
+        ["arg_name", "==", "json"],
+        ["arg_age", ">", "18"],
+        ["arg_address", "~~", "China.*"]
     ],
     "upstream": {
         "type": "roundrobin",