IBM Watson Discovery - 如何列出上传的文档?

IBM Watson Discovery - How to list uploaded documents?

我正在尝试获取上传到 IBM Watson Discovery API

的所有文档的 ID-s

从文档上看不太明显,但我想这一定是可能的吧?

结构为:

+--------------------------------------------------+
| Environment                                      |
|                                                  |
|              +--------------------------------+  |
|              | Collection                     |  |
|              |                                |  |
|              |              +--------------+  |  |
|              |              | Document     |  |  |
|              |              |              |  |  |
|              |              +--------------+  |  |
|              |                                |  |
|              +--------------------------------+  |
|                                                  |
+--------------------------------------------------+

如何获取集合中所有文档的列表?

.

我试过:

Collections -> List collection fields

curl -u "apikey":"{apikey}" "{url}/v1/environments/{environment_id}/collections/{collection_id}/fields?version=2019-04-30"

Queries -> Query a collection (GET)

curl -u "apikey":"{apikey}" "{url}/v1/environments/{environment_id}/collections/{collection_id}/query?version=2019-04-30"

Environments -> Get environment info

curl -u "apikey":"{apikey}" "{url}/v1/environments/{environment_id}?version=2019-04-30"

Training data -> List training data

curl -u "apikey":"{apikey}" "{url}/v1/environments/{environment_id}/collections/{collection_id}/training_data?version=2019-04-30"

None 其中给出了文件列表。

.

更新:

感谢,获取文档列表的正确方法是:

curl -u "apikey":"{apikey}" "{url}/v1/environments/{environment_id}/collections/{collection_id}/query?version=2019-04-30&return=id

查询端点是执行此操作的唯一方法 - 如果您将 return 值设置为 id,您将只能返回 ID。 (我是 IBM Watson 员工)