RepositoriesResource

RepositoriesResource REST endpoint to access and manipulate collections of Repository data. Copyright 2012 WANdisco.

The following resources are part of this group:

/repositories

Mount Point: /api/repositories

GET

Find all repositories. Can specify optional parameters to get a filtered, sorted and paged list of repositories.

Parameters

name description type default
offset index into the result set query
numberToGet maximum number of results to return query
filterValue a pattern to match repository names by query
sortField name of the attribute to sort the results by query
sortAscending whether the results are sorted ascending or descending query true
excludes a list of repository IDs to exclude from the results query
state The state the repository currently is in query ALL
includeTransactions Indicate if we should retrieve the pending transactions for the repositories query false

Response Body

element: svn-repositories
media types: application/xml

the list of repositories that matches the search criteria

Status Codes

code description
200 Ok
400 Bad Request - see Exception

/repositories/count

Mount Point: /api/repositories/count

GET

Finds the number of repositories that match the specified filter.

Parameters

name description type default
filterValue a pattern to match repository names by query
replicationGroupId (no documentation provided) query
excludes a list of repository IDs to exclude from the results query
state The state the repository currently is in query ALL

Response Body

element: (custom)
media types: text/plain

the list of repositories that matches the search criteria

Status Codes

code description
200 Ok
400 Bad Request - see Exception

/repositories/failed

Mount Point: /api/repositories/failed

DELETE

removes repositories that have failed to deploy.

Response Body

element: (custom)
media types: */*
application/xml

(no documentation provided)

Status Codes

code description
200 Ok
404 Not Found - see Exception

/repositories/search

Mount Point: /api/repositories/search

GET

Find all repositories. Can specify optional param to reduce the number of repos depending on different criteria

Parameters

name description type default
replicationGroupId (no documentation provided) query
offset (no documentation provided) query
numberToGet (no documentation provided) query
filterValue (no documentation provided) query
sortField (no documentation provided) query
sortAscending (no documentation provided) query true
excludes (no documentation provided) query
includeTransactions (no documentation provided) query false

Response Body

element: svn-repositories
media types: application/xml

(no documentation provided)

Status Codes

code description
200 Ok
400 Bad Request - see Exception

/repositories/stats

Mount Point: /api/repositories/stats

DELETE

Reset stats for all the repositories a node knows about

Response Body

element: (custom)
media types: */*
application/xml

(no documentation provided)

Status Codes

code description
200 Ok
404 Not Found - see Exception