This documentation relates to 1.6.x
If you are using an earlier version, please view the previous versions of the Crucible documentation and select the relevant version.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Provides information about the repositories configured in a Crucible instance.

Get Repositories


Method: GET
URL:

/repositories-v1

Description:
Get a list of all the repositories.

Status Code:
200 (OK) on success.

Example XML:

<repositories>
  <repoData>
    <enabled>true</enabled>
    <name>local</name>
    <type>svn</type>
  </repoData>
  <repoData>
    <enabled>true</enabled>
    <name>test</name>
    <type>cvs</type>
  </repoData>
</repositories>

Example JSON:

{"repositories": {
  "repoData": [
    {"@type":"svnRepositoryData",
    "enabled":true,
    "name":"Local",
    "type":"svn",
    "path":"",
    "url":"file:\/\/\/Users\/erik\/var\/repo"},
    {"@type":"svnRepositoryData",
    "enabled":true,
    "name":"Local2",
    "type":"svn",
    "path":"",
    "url":"file:\/\/\/Users\/erik\/var\/repo"}]
}}



Get Repository By Name


Method: GET
URL:

/repositories-v1/<repositoryName>

Description:
Returns the repository of which the name attribute equals repositoryName.

Status Code:
200 (OK) on success

Example XML:

<svnRepositoryData>
  <enabled>true</enabled>
  <name>local</name>
  <type>svn</type>
  <path></path>
  <url>file:///Users/tomd/dev/svn/</url>
</svnRepositoryData>

Example JSON:

{"svnRepositoryData": {
  "enabled":true,
  "name":"Local",
  "type":"svn",
  "path":"",
  "url":"file:\/\/\/Users\/ervzijst\/var\/repo"
}}



  • No labels