只能从文件夹中检索 20 个文档
Can retrieve only 20 documents from a folder
我有一个 Spring CM 文件夹,里面有 1000 多个小文件。我是这样检索的:
GET /v201411/folders/{id}/documents
但是当它执行时,我只得到 20 个文件。它们所有大小的总和为:1.8 MB
并且响应的内容长度 -> 内容 -> headers 仅为 3.8 MB
.
我在他们的文档中没有发现任何提及通过 api 检索文档的限制的内容。
这真的是spring CM 的限制吗?
来自 API Collections 上的文档:
Limit (integer): The maximum number of elements retrieved per request.
Default limit is 20. Maximum limit is 100
When there are more items in the collection than the specified limit,
the application can page through the collection, retrieving the
objects in chunks by specifying the limit and/or offset on the query
string when the collection is requested. The first, previous, next,
and last properties are added as a convenience by appending the
appropriate limit and offset to the URI and a GET request can be done
to this URIs specified by these properties to navigate the collection.
为了尽量减少您需要进行的顺序调用的次数,您可以将限制 属性 调整到最大值 100。
我有一个 Spring CM 文件夹,里面有 1000 多个小文件。我是这样检索的:
GET /v201411/folders/{id}/documents
但是当它执行时,我只得到 20 个文件。它们所有大小的总和为:1.8 MB
并且响应的内容长度 -> 内容 -> headers 仅为 3.8 MB
.
我在他们的文档中没有发现任何提及通过 api 检索文档的限制的内容。
这真的是spring CM 的限制吗?
来自 API Collections 上的文档:
Limit (integer): The maximum number of elements retrieved per request. Default limit is 20. Maximum limit is 100
When there are more items in the collection than the specified limit, the application can page through the collection, retrieving the objects in chunks by specifying the limit and/or offset on the query string when the collection is requested. The first, previous, next, and last properties are added as a convenience by appending the appropriate limit and offset to the URI and a GET request can be done to this URIs specified by these properties to navigate the collection.
为了尽量减少您需要进行的顺序调用的次数,您可以将限制 属性 调整到最大值 100。