Extension List Resource¶
Review Board’s extension resource.
This resource special-cases the one in Djblets to provide API token and OAuth token access.
Details¶
Name | extensions |
URI | /api/extensions/ |
Token Policy ID | extension |
HTTP Methods |
|
Parent Resource | Root List Resource |
Child Resources | |
Anonymous Access | No |
Links¶
Name | Method | Resource |
---|---|---|
self | GET | Extension List Resource |
HTTP GET¶
Returns the list of known extensions.
Each extension in the list has been installed, but may not be enabled.
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.extensions+json¶
$ curl http://reviews.example.com/api/extensions/ -H "Accept: application/json"
Vary: Accept, Cookie
Item-Content-Type: application/vnd.reviewboard.org.extension+json
Content-Type: application/vnd.reviewboard.org.extensions+json
X-Content-Type-Options: nosniff
{
"extensions": [
{
"author": null,
"author_url": null,
"can_disable": false,
"can_enable": false,
"class_name": "rbe.extension.EnterpriseExtension",
"enabled": false,
"installed": false,
"links": {
"self": {
"href": "http://reviews.example.com/api/extensions/rbe.extension.EnterpriseExtension/",
"method": "GET"
},
"update": {
"href": "http://reviews.example.com/api/extensions/rbe.extension.EnterpriseExtension/",
"method": "PUT"
}
},
"load_error": "This extension is not installed or could not be found. Try re-installing it and then click \"Scan for installed extensions.\"",
"loadable": false,
"name": "ReviewBoardPowerPack",
"summary": null,
"version": null
},
{
"author": null,
"author_url": null,
"can_disable": false,
"can_enable": false,
"class_name": "rbpdf.extension.PDFReviewExtension",
"enabled": false,
"installed": false,
"links": {
"self": {
"href": "http://reviews.example.com/api/extensions/rbpdf.extension.PDFReviewExtension/",
"method": "GET"
},
"update": {
"href": "http://reviews.example.com/api/extensions/rbpdf.extension.PDFReviewExtension/",
"method": "PUT"
}
},
"load_error": "This extension is not installed or could not be found. Try re-installing it and then click \"Scan for installed extensions.\"",
"loadable": false,
"name": "ReviewBoardPowerPack",
"summary": null,
"version": null
}
],
"links": {
"self": {
"href": "http://reviews.example.com/api/extensions/",
"method": "GET"
}
},
"stat": "ok",
"total_results": 2
}