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 | |
Child Resources |
Links¶
Name |
Method |
Resource |
---|---|---|
commit_validation | GET |
|
diff_validation | GET |
|
self | GET |
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: 894771e6d1ba8c617386a96e8e1b0b499e2eb415
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"
}