此内容没有您所选择的语言版本。

17.21. Return a List of Workspaces for a Repository


Once you know the name of an accessible repository, you can retrieve a list of its workspaces:
GET http://www.example.com/modeshape-rest/eds
Copy to Clipboard Toggle word wrap
This request (and all of the following requests) actually create a JCR session (javax.jcr.Session) to service the request and require that security be configured. The response looks similar to the following:
{
   "default" : {
      "workspace" : {
         "name" : "default",
         "resources" : { 
            "items":"/modeshape-rest/eds/default/items", 
            "query":"/modeshape-rest/eds/default/query"
         },
      }
   }
}
Copy to Clipboard Toggle word wrap
Like the first response, this response consists of a list of workspace names mapped to metadata about the workspaces. The example above only lists one workspace for simplicity, but there could be many different workspaces returned in a real deployment. Note that the "items" resource builds the full URI to the root of the items hierarchy, including the encoding of the repository name and the workspace name and the "query" resource builds the full URI needed to execute queries.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat