Validation List Resource¶
Added in 2.0
Links to validation resources.
Details¶
Name | validation |
URI | /api/validation/ |
Token Policy ID | validation |
HTTP Methods |
|
Parent Resource | Root List Resource |
Child Resources |
Links¶
Name | Method | Resource |
---|---|---|
commit_validation | GET | Validate Diff Commit List Resource |
diff_validation | GET | Validate Diff List Resource |
self | GET | Validation List Resource |
HTTP GET¶
Retrieves links to all the validation resources.
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. |
Examples¶
application/vnd.reviewboard.org.validation+json¶
$ curl https://reviews.example.com/api/validation/ -H "Accept: application/json"
HTTP 200 OK
Content-Length: 309
Content-Type: application/vnd.reviewboard.org.validation+json
ETag: aa8b4f74db93871bdb8064f9b61dd63b1650fa3d
Vary: Accept, Cookie
X-Content-Type-Options: nosniff
{
"links": {
"commit_validation": {
"href": "https://reviews.example.com/api/validation/commits/",
"method": "GET"
},
"diff_validation": {
"href": "https://reviews.example.com/api/validation/diffs/",
"method": "GET"
},
"self": {
"href": "https://reviews.example.com/api/validation/",
"method": "GET"
}
},
"stat": "ok"
}