Jump to >

Repository Info Resource

Provides server-side information on a repository.

Some repositories can return custom server-side information. This is not available for all types of repositories. The information will be specific to that type of repository.

Details

Name info
URI /api/repositories/{repository_id}/info/
Token Policy ID repository_info
HTTP Methods
  • GET - Returns repository-specific information from a server.
Parent Resource Repository Resource
Child Resources None
Anonymous Access Yes, if anonymous site access is enabled

HTTP GET

Returns repository-specific information from a server.

Errors

100 - Does Not ExistHTTP 404 - Not Found Object does not exist
101 - Permission DeniedHTTP 403 - Forbidden You don’t have permission for this
103 - Not Logged InHTTP 401 - Unauthorized You are not logged in
209 - Repository Action Not SupportedHTTP 501 - Not Implemented The specified repository is not able to perform this action.
210 - Repository Information ErrorHTTP 500 - Internal Server Error There was an error fetching extended information for this repository.

Examples

application/vnd.reviewboard.org.repository-info+json

$ curl http://reviews.example.com/api/repositories/1/info/ -H "Accept: application/json"
Vary: Accept, Cookie
Content-Type: application/vnd.reviewboard.org.repository-info+json
X-Content-Type-Options: nosniff
{
  "info": {
    "root_url": "https://svn.riouxsvn.com/reviewboard", 
    "url": "https://svn.riouxsvn.com/reviewboard", 
    "uuid": "6dd5fff1-c404-44b7-96bd-27455c1d535d"
  }, 
  "stat": "ok"
}