API

1. RESTful API


Access Control offers increased control and flexibility through the support of a RESTful (Representational State Transfer) API for accessing a set of resources through a fixed set of operations.

Online documentation

You can review a copy of the bundled API documenation. This documentation is taken straight from a live installation. Given that the documentation is automatically generated, it frequently links to local files and resources that will not be available here.

Examples

Get Repository Information:

http://10.0.100.125:8082/api/repository/search?filesystemPath=/Users/<username>/Repositories/<repo-name>

http://10.0.100.125:8082/api/repository/0a00409e-5d64-4e64-8eb8-d325d62a9beb/replicationGroup
newReplicationGroupId = 1a015b69-8bee-11e2-a13e-087db5080829

POST command to add a repo to a replication group:
curl -u username:password -X POST -d "newReplicationGroupId=1a015b69-8bee-11e2-a13e-087db5080829"
http://10.0.100.125:8082/api/repository/0a00409e-5d64-4e64-8eb8-d325d62a9beb/replicationGroup

Take repository "Repo16" out of the global Read-only state:

http://10.0.100.117:8082/api/repository/65753499-098c-45cc-a243-d2eca54a988c/globalReadOnly

<RepositoryAPIDTO>
<FSPath>/opt/SVN/Repo16</FSPath>
<globalReadOnly>false</globalReadOnly>
<isLocal>false</isLocal>
<localReadOnly>false</localReadOnly>
<name>Repo0</name>
<repositoryIdentity>65753499-098c-45cc-a243-d2eca54a988c</repositoryIdentity>
<revisionNumber>0</revisionNumber>
</RepositoryAPIDTO>