File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,6 @@ API接口里的单个操作。在Protocol Buffers中定义为`rpc`,通常对
38
38
一群服务器以及实现API业务逻辑的相关基础设施。一个单独的的API后端服务器通常被称为一个API服务器。
39
39
40
40
## API前端
41
- 一群服务器以及为不同API服务提供通用功能的相关基础设施,例如负载均衡和鉴权等。一个单独的API服务器通常就被称为一个API代理 。
41
+ 一群服务器以及为不同API服务提供通用功能的相关基础设施,例如负载均衡和鉴权等。一个单独的API前端服务器通常就被称为一个API代理 。
42
42
43
43
提示:API前端和后端可能跑在两个距离很近的地方或者是两个距离很远的地方。在某些情况下,它们可以被编译成一个二进制程序并跑在同一个进程上。
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ Delete | DELETE <resource URL> | N/A | google.proto
27
27
28
28
批量获取(该方法可以携带多个资源ID并且返回对应的每一个对象)应该被实现为自定义方法` BatchGet ` ,而不是使用` List ` 。但是,如果你的` List ` 方法已经提供了类似的功能,那么你可能可以复用` List ` 来实现这个意图。如果你正在使用自定义方法` BatchGet ` ,它应该被映射到` HTTP GET ` 。
29
29
30
- 适合的通用模式:[ 分页] ( https://cloud.google.com/apis/design/design_patterns#list_pagination ) ,[ 结果排序] ( https://cloud.google.com/apis/design/design_patterns#sorting_order ) 。
31
- 适合的命名约定:[ 过滤字段] ( https://cloud.google.com/apis/design/naming_convention#list_filter_field ) ,[ 结果字段] ( https://cloud.google.com/apis/design/naming_convention#list_response ) 。
30
+ 适合的通用模式:[ 分页] ( ./Design_Patterns.md#列表分页 ) ,[ 结果排序] ( ./Design_Patterns.md#排列顺序 ) 。
31
+ 适合的命名约定:[ 过滤字段] ( ./Naming_Conventions.md#列表过滤器字段 ) ,[ 结果字段] ( ./Naming_Conventions.md#列表响应 ) 。
32
32
33
33
HTTP映射:
34
34
* ` List ` 方法必须使用HTTP` GET ` 动词
You can’t perform that action at this time.
0 commit comments