We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06a4327 commit 79f435bCopy full SHA for 79f435b
Design_Patterns.md
@@ -66,7 +66,7 @@ page token的内容应该是基于一个url安全的protocol buffer进行base64
66
某些时候,API需要让客户端对子集合进行`List/Search`操作。例如,图书馆(Library)API可能有一个书架(shelves)集合,每个书架里面有一个书本(books)集合,假如某个客户想要在所有的书架里面搜索一本书,在这种情形下,最推荐的做法是在子资源里面使用标准的`List`方法并为父级集合指定通配集合id`"-"`。对于这个API库的例子,我们可以使用以下的REST API请求:
67
68
```
69
-GET https://library.googleapis.com/v1/shelves/-/books/{id}
+GET https://library.googleapis.com/v1/shelves/-/books?filter=xxx
70
71
72
提示:选择`"-"`替代`"*"`的原因是为了避免URL escaping。
0 commit comments