我可以通过浏览器 UI 查看 Cloudant 本地文档吗

发布于 2025-01-16 22:43:38 字数 114 浏览 0 评论 0原文

我正在使用 IBM Cloudant,一些配置数据存储在本地文档中。

我可以通过 REST API 访问这些内容,但是是否可以从 IBM 提供的浏览器 GUI 界面查看它们?

I'm using IBM Cloudant, with some config data stored in local documents.

I can access these via the REST API, but is it possible to view them from the Browser GUI interface that IBM provides?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最单纯的乌龟 2025-01-23 22:43:38

本地文档在 UI 中不可见,只有在您知道文档密钥的情况下才能通过 API 访问。例如,如果您创建了此文档:

{"_id":"_local/bob",
  "name":"Bob",
  "surname":"TheBuilder"}

...您实际上只能通过执行以下操作来检索它:

https://<service_url>/<dbname>/_local/bob

OR
您可以通过修改仪表板 URL 在 UI 中看到它,如下所示:

https://<service_url>/dashboard.html#database/<dbname>/_local/bob

使用本地文档是一个相当小众的用例。 Cloudant 复制器使用它们来存储不需要复制的状态。

使用 PouchDB 时,使用浏览器内 PouchDB 数据库中的本地文档来存储您不想复制到云的本地状态/配置可能会很有用。

The local documents are invisible from the UI and are only accessible via the API if you know the document key. For example, if you created this document:

{"_id":"_local/bob",
  "name":"Bob",
  "surname":"TheBuilder"}

... you can really only retrieve it by doing:

https://<service_url>/<dbname>/_local/bob

OR
you can see it in the UI by modifying the dashboard url like this:

https://<service_url>/dashboard.html#database/<dbname>/_local/bob

Using local documents is quite a niche use case. They are used by the Cloudant replicator to store state that doesn't need to be replicated.

When using PouchDB it can be useful to use local documents in an in-browser PouchDB database to store local state/config that you don't want replicated to the Cloud.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文