diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-05 15:16:21 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-05 15:16:21 +0000 |
commit | feec99a308549901f0ad927e0d7a88956444cd9f (patch) | |
tree | 62bba08897d60f2a51503d7f543c0685334ee6e7 /sonar-server/src | |
parent | 35c9e60c985300140cf1a3899f85a537e519a9cc (diff) | |
download | sonarqube-feec99a308549901f0ad927e0d7a88956444cd9f.tar.gz sonarqube-feec99a308549901f0ad927e0d7a88956444cd9f.zip |
SONAR-1897 URL /api/plugins conflicts with existing web service extension point. Rename to /api/updatecenter/installed_plugins
Diffstat (limited to 'sonar-server/src')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/api/updatecenter_controller.rb (renamed from sonar-server/src/main/webapp/WEB-INF/app/controllers/api/plugins_controller.rb) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/plugins_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/updatecenter_controller.rb index 147f8ca7071..dbbaa13598f 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/plugins_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/updatecenter_controller.rb @@ -20,15 +20,15 @@ require 'json' -class Api::PluginsController < Api::ApiController +class Api::UpdatecenterController < Api::ApiController before_filter :admin_required # - # GET /api/plugins - # curl http://localhost:9000/api/plugins -v -u admin:admin + # GET /api/updatecenter/installed_plugins + # curl http://localhost:9000/api/updatecenter/installed_plugins -v -u admin:admin # - def index + def installed_plugins respond_to do |format| format.json { render :json => jsonp(plugins_to_json(Plugin.user_plugins)) } format.xml { render :xml => plugins_to_xml(Plugin.user_plugins) } |