You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/06 17:20:33 UTC

[GitHub] [apisix] Yiyiyimu commented on a change in pull request #4546: docs: update CN getting-started

Yiyiyimu commented on a change in pull request #4546:
URL: https://github.com/apache/apisix/pull/4546#discussion_r664738499



##########
File path: docs/zh/latest/getting-started.md
##########
@@ -21,17 +21,33 @@ title: 快速入门指南
 #
 -->
 
-本指南旨在让大家入门 Apache APISIX,我们将配置一个对外提供公共 API 的服务,并由 API key 进行访问保护。
+## 概述
 
-另外,我们将以下面的 `echo` 端点为例,它将返回我们传递的参数。
+本文是 Apache APISIX 的快速入门指南。快速入门分为三个步骤:
 
-**Request**
+1. 通过[Docker](https://www.docker.com/) 和 [Docker Compose](https://docs.docker.com/compose/) 安装 Apache APISIX。
+1. 创建路由并绑定后端服务。
+1. 使用命令行语句 `curl` 验证绑定之后返回的结果是否符合预期。
+
+除此之外,本文也提供了 Apache APISIX 的一些进阶操作技巧,包括:添加身份验证、为路由添加前缀、使用 APISIX Dashboard 以及常见问题排查。
+
+我们将以下面的 `echo` 端点为例,它将返回我们传递的参数。
+
+**请求内容**
+
+请求 URL 由以下这些参数构成:
+
+- Protocol:即网络传输协议,这里使用的是最常见的HTTP协议。
+- Port:即端口,这里使用的 `80` 端口。
+- Host:即宿主机,这里的主机是 `httpbin.org`。
+- Path:`/get`。

Review comment:
       ```suggestion
   - Path:即路径,这里是`/get`。
   ```

##########
File path: docs/zh/latest/getting-started.md
##########
@@ -50,39 +66,39 @@ $ curl --location --request GET "http://httpbin.org/get?foo1=bar1&foo2=bar2"
 }
 ```
 
-让我们来分析一下上面的请求 URL:
-
-- Protocol: HTTP
-- Port: 80
-- Host: `httpbin.org`
-- URI/Path: `/get`
-- Query Parameters: foo1, foo2
+## 前提条件
 
-## 前提
+- 已安装[Docker](https://www.docker.com/) 和 [Docker Compose 组件](https://docs.docker.com/compose/)。
 
-> 如果您已经安装了 Apache APISIX,请直接阅读 [第二步](getting-started.md#第二步:-创建一个-Route)
+- 熟悉`curl`命令。本文使用 [curl](https://curl.se/docs/manpage.html) 命令行进行 API 测试。您也可以使用其他工具例如 [Postman](https://www.postman.com/)等,进行测试。

Review comment:
       seems we don't need to be familiar with `curl`, run the command is enough

##########
File path: docs/zh/latest/getting-started.md
##########
@@ -50,39 +66,39 @@ $ curl --location --request GET "http://httpbin.org/get?foo1=bar1&foo2=bar2"
 }
 ```
 
-让我们来分析一下上面的请求 URL:
-
-- Protocol: HTTP
-- Port: 80
-- Host: `httpbin.org`
-- URI/Path: `/get`
-- Query Parameters: foo1, foo2
+## 前提条件
 
-## 前提
+- 已安装[Docker](https://www.docker.com/) 和 [Docker Compose 组件](https://docs.docker.com/compose/)。

Review comment:
       ditto

##########
File path: docs/zh/latest/getting-started.md
##########
@@ -21,17 +21,33 @@ title: 快速入门指南
 #
 -->
 
-本指南旨在让大家入门 Apache APISIX,我们将配置一个对外提供公共 API 的服务,并由 API key 进行访问保护。
+## 概述
 
-另外,我们将以下面的 `echo` 端点为例,它将返回我们传递的参数。
+本文是 Apache APISIX 的快速入门指南。快速入门分为三个步骤:
 
-**Request**
+1. 通过[Docker](https://www.docker.com/) 和 [Docker Compose](https://docs.docker.com/compose/) 安装 Apache APISIX。

Review comment:
       Maybe `docker compose` is enough here, since it seems impossible to only install docker-compose but not docker

##########
File path: docs/zh/latest/getting-started.md
##########
@@ -21,17 +21,33 @@ title: 快速入门指南
 #
 -->
 
-本指南旨在让大家入门 Apache APISIX,我们将配置一个对外提供公共 API 的服务,并由 API key 进行访问保护。
+## 概述
 
-另外,我们将以下面的 `echo` 端点为例,它将返回我们传递的参数。
+本文是 Apache APISIX 的快速入门指南。快速入门分为三个步骤:
 
-**Request**
+1. 通过[Docker](https://www.docker.com/) 和 [Docker Compose](https://docs.docker.com/compose/) 安装 Apache APISIX。
+1. 创建路由并绑定后端服务。
+1. 使用命令行语句 `curl` 验证绑定之后返回的结果是否符合预期。
+
+除此之外,本文也提供了 Apache APISIX 的一些进阶操作技巧,包括:添加身份验证、为路由添加前缀、使用 APISIX Dashboard 以及常见问题排查。
+
+我们将以下面的 `echo` 端点为例,它将返回我们传递的参数。
+
+**请求内容**
+
+请求 URL 由以下这些参数构成:
+
+- Protocol:即网络传输协议,这里使用的是最常见的HTTP协议。
+- Port:即端口,这里使用的 `80` 端口。
+- Host:即宿主机,这里的主机是 `httpbin.org`。

Review comment:
       ```suggestion
   - Host:即宿主机,这里是 `httpbin.org`。
   ```




-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org