Merge "Extend the PluginRestApi"
diff --git a/polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-rest-api.js b/polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-rest-api.js
index eb0c7e0..aac6550 100644
--- a/polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-rest-api.js
+++ b/polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-rest-api.js
@@ -42,6 +42,23 @@
getRestApi().invalidateReposCache();
};
+ GrPluginRestApi.prototype.getAccount = function() {
+ return getRestApi().getAccount();
+ };
+
+ GrPluginRestApi.prototype.getAccountCapabilities = function(capabilities) {
+ return getRestApi().getAccountCapabilities(capabilities);
+ };
+
+ GrPluginRestApi.prototype.fetchJSON = function(req) {
+ return getRestApi()._fetchJSON(req);
+ };
+
+ GrPluginRestApi.prototype.getRepos =
+ function(filter, reposPerPage, opt_offset) {
+ return getRestApi().getRepos(filter, reposPerPage, opt_offset);
+ };
+
/**
* Fetch and return native browser REST API Response.
* @param {string} method HTTP Method (GET, POST, etc)