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 |
|
Parent Resource | |
Child Resources | None |
Links¶
Name |
Method |
Resource |
---|---|---|
self | GET |
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 |
112 - OAuth2 Missing Scope ErrorHTTP 403 - Forbidden | Your OAuth2 token lacks the necessary scopes for this request. |
113 - OAuth2 Access Denied ErrorHTTP 403 - Forbidden | OAuth2 token access for this resource is prohibited. |
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 https://reviews.example.com/api/repositories/1/info/ -H "Accept: application/json"
HTTP 200 OK
Content-Length: 171
Content-Type: application/vnd.reviewboard.org.repository-info+json
ETag: a410e6c186eace61349bcced4845ee7f71c14f93
Vary: Accept, Cookie
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"
}