This documentation relates to an earlier version of Crucible.
View

Unknown macro: {spacejump}

or visit the current documentation home.

The content on this page is deprecated. Please see the separate documentation space for developer reference material about FishEye and Crucible.

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