Rest api - xenji/crucible-websvn-plugin GitHub Wiki
The plugin provides a ReST interface for setting and retrieving the settings for any registered repository. All endpoints require you to be authenticated and authorized. Please read the corresponding documentation at Atlassian's documentation sites.
To make things easy you can retrieve the configuration in two different formats. Default is XML, but you can get JSON from both of the endpoints, too. The response format is determined from the accept header of your request. As a simplification you can add ".xml" or ".json" to the endpoints to get the desired response format.
Endpoint context:
GET http://crucible.example.com/fecru/rest/websvn-configuration/1.0/global
Response format:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<websvn-global-configuration>
<base-url>http://test.example.com</base-url>
<path>/websvn</path>
<query>?op=revision&peg=#revision#&rev=#revision#</query>
</websvn-global-configuration>
Endpoint context (replace MY-REPOSITORY with the desired one):
GET http://crucible.example.com/fecru/rest/websvn-configuration/1.0/repository/MY-REPOSITORY
Response format:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<websvn-repository-configuration repository-key="MY-REPOSITORY">
<context-path>/someContext</context-path>
</websvn-repository-configuration>
To make this as simple as possible, just use the same format as described above. Instead of GET requests you have to use PUT requests. The only limitation for storing configuration data is the format the PUT request accepts. Please use only XML for now. This might change in future.