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 eea5cd0 docs: correct example and description (#5031)
eea5cd0 is described below
commit eea5cd02fc9209eee9d169bbb0bb1d45678226ce
Author: okaybase <[email protected]>
AuthorDate: Sun Sep 12 19:37:07 2021 +0800
docs: correct example and description (#5031)
Co-authored-by: Alex Zhang <[email protected]>
---
docs/en/latest/discovery/nacos.md | 8 ++++----
docs/en/latest/internal/testing-framework.md | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/en/latest/discovery/nacos.md
b/docs/en/latest/discovery/nacos.md
index de996eb..ade649f 100644
--- a/docs/en/latest/discovery/nacos.md
+++ b/docs/en/latest/discovery/nacos.md
@@ -58,7 +58,7 @@ discovery:
### Upstream setting
-Here is an example of routing a request with a URL of "/nacos/*" to a service
which named
"http://192.168.33.1:8848/nacos/v1/ns/instance/list?serviceName=APISIX-NACOS"
and use nacos discovery client in the registry:
+Here is an example of routing a request with an URI of "/nacos/*" to a service
which named
"http://192.168.33.1:8848/nacos/v1/ns/instance/list?serviceName=APISIX-NACOS"
and use nacos discovery client in the registry:
```shell
$ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY:
edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
@@ -108,7 +108,7 @@ The formatted response as below:
#### Specify the namespace
-Example of routing a request with a URL of "/nacosWithNamespaceId/*" to a
service which name, namespaceId
"http://192.168.33.1:8848/nacos/v1/ns/instance/list?serviceName=APISIX-NACOS&namespaceId=test_ns"
and use nacos discovery client in the registry:
+Example of routing a request with an URI of "/nacosWithNamespaceId/*" to a
service which name, namespaceId
"http://192.168.33.1:8848/nacos/v1/ns/instance/list?serviceName=APISIX-NACOS&namespaceId=test_ns"
and use nacos discovery client in the registry:
```shell
$ curl http://127.0.0.1:9080/apisix/admin/routes/2 -H 'X-API-KEY:
edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
@@ -157,7 +157,7 @@ The formatted response as below:
#### Specify the group
-Example of routing a request with a URL of "/nacosWithGroupName/*" to a
service which name, groupName
"http://192.168.33.1:8848/nacos/v1/ns/instance/list?serviceName=APISIX-NACOS&groupName=test_group"
and use nacos discovery client in the registry:
+Example of routing a request with an URI of "/nacosWithGroupName/*" to a
service which name, groupName
"http://192.168.33.1:8848/nacos/v1/ns/instance/list?serviceName=APISIX-NACOS&groupName=test_group"
and use nacos discovery client in the registry:
```shell
$ curl http://127.0.0.1:9080/apisix/admin/routes/3 -H 'X-API-KEY:
edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
@@ -206,7 +206,7 @@ The formatted response as below:
#### Specify the namespace and group
-Example of routing a request with a URL of
"/nacosWithNamespaceIdAndGroupName/*" to a service which name, namespaceId,
groupName
"http://192.168.33.1:8848/nacos/v1/ns/instance/list?serviceName=APISIX-NACOS&namespaceId=test_ns&groupName=test_group"
and use nacos discovery client in the registry:
+Example of routing a request with an URI of
"/nacosWithNamespaceIdAndGroupName/*" to a service which name, namespaceId,
groupName
"http://192.168.33.1:8848/nacos/v1/ns/instance/list?serviceName=APISIX-NACOS&namespaceId=test_ns&groupName=test_group"
and use nacos discovery client in the registry:
```shell
$ curl http://127.0.0.1:9080/apisix/admin/routes/4 -H 'X-API-KEY:
edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
diff --git a/docs/en/latest/internal/testing-framework.md
b/docs/en/latest/internal/testing-framework.md
index e025405..325b89a 100644
--- a/docs/en/latest/internal/testing-framework.md
+++ b/docs/en/latest/internal/testing-framework.md
@@ -164,7 +164,7 @@ Sending multiple requests concurrently:
local t = {}
local ports_count = {}
for i = 1, 180 do
- local th = assert(ngx.thread.spawn(function(i))
+ local th = assert(ngx.thread.spawn(function(i)
local httpc = http.new()
local res, err = httpc:request_uri(uri..i, {method =
"GET"})
if not res then