Use this API to get a list of available repository templates, post a new template, or update an existing template.
HTTP method and URL | GET /csvn/api/1/template?format=json&showInactive=true |
Parameters |
|
Authentication / Authorization | Repository administrators (ROLE_ADMIN_REPO) and the super user (ROLE_ADMIN) |
Response | GET retrieves the list of repository templates in the Subversion Edge instance,
providing the ID, name, and description for each. The list of active templates is
returned; to have hidden templates returned as well, set the
showInactive parameter in the query string to true. If the
showInactive parameter is set to true, the results indicate whether
each template is active or not. Example: |
HTTP method and URL |
PUT /csvn/api/1/template/2?format=json |
Authentication / Authorization | Repository administrators (ROLE_ADMIN_REPO) and the super user (ROLE_ADMIN) |
Response | PUT returns the template ID and name. Example: |
HTTP method and URL |
POST /csvn/api/1/template?format=json&name=My%20New%20Template&active=true |
Authentication / Authorization | Repository administrators (ROLE_ADMIN_REPO) and the super user (ROLE_ADMIN) |
Response | POST returns the template ID and name. Example: |