Provides information about the repositories configured in a Crucible instance.
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"}] }}
/repositories-v1/<repositoryName>
Description: Returns the repository of which the name attribute equals repositoryName.
Status Code: 200 (OK) on success
<svnRepositoryData> <enabled>true</enabled> <name>local</name> <type>svn</type> <path></path> <url>file:///Users/tomd/dev/svn/</url> </svnRepositoryData>
{"svnRepositoryData": { "enabled":true, "name":"Local", "type":"svn", "path":"", "url":"file:\/\/\/Users\/ervzijst\/var\/repo" }}