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

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