我可以通过浏览器 UI 查看 Cloudant 本地文档吗
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本地文档在 UI 中不可见,只有在您知道文档密钥的情况下才能通过 API 访问。例如,如果您创建了此文档:
...您实际上只能通过执行以下操作来检索它:
OR
您可以通过修改仪表板 URL 在 UI 中看到它,如下所示:
使用本地文档是一个相当小众的用例。 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:
... you can really only retrieve it by doing:
OR
you can see it in the UI by modifying the dashboard url like this:
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.