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 d2ddb3369 docs: update getting started doc (#8738)
d2ddb3369 is described below
commit d2ddb336972acbd7bbf080223d8fd476ea30a751
Author: Liu Wei <[email protected]>
AuthorDate: Tue May 16 17:28:38 2023 +0800
docs: update getting started doc (#8738)
---
docs/zh/latest/getting-started.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/docs/zh/latest/getting-started.md
b/docs/zh/latest/getting-started.md
index e42c35049..287d1f890 100644
--- a/docs/zh/latest/getting-started.md
+++ b/docs/zh/latest/getting-started.md
@@ -207,8 +207,9 @@ curl "http://127.0.0.1:9180/apisix/admin/upstreams/1" -X
PUT -d '
```bash
curl "http://127.0.0.1:9180/apisix/admin/routes/1" -X PUT -d '
{
- "uri": "/get",
- "host": "httpbin.org",
+ "methods": ["GET"],
+ "host": "example.com",
+ "uri": "/anything/*",
"upstream_id": "1"
}'
```
@@ -216,7 +217,7 @@ curl "http://127.0.0.1:9180/apisix/admin/routes/1" -X PUT
-d '
我们已经创建了路由与上游服务,现在可以通过以下命令访问上游服务:
```bash
-curl -i -X GET "http://127.0.0.1:9080/get?foo1=bar1&foo2=bar2" -H "Host:
httpbin.org"
+curl -i -X GET "http://127.0.0.1:9080/anything/foo?arg=10" -H "Host:
example.com"
```
该请求将被 APISIX 转发到 `http://httpbin.org:80/anything/foo?arg=10`。