aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/WEB-INF/config
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-06-23 17:50:52 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-06-27 20:26:26 +0400
commit595485bb2bf8b327cb50e24597894d97d28c178d (patch)
treea2cd2ba9563e2baf5e043a4ef64923a067be6817 /sonar-server/src/main/webapp/WEB-INF/config
parent7be54b4df2a55f180620775659bcd888f5249183 (diff)
downloadsonarqube-595485bb2bf8b327cb50e24597894d97d28c178d.tar.gz
sonarqube-595485bb2bf8b327cb50e24597894d97d28c178d.zip
SONAR-2404 Refactor reviews API - web-service and sonar-ws-client
* Remove ability to edit and delete comments. * Fix bug - comment should be transferred in body. * Fix XML/JSON output - new attribute 'resolution'.
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/config')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/config/routes.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/config/routes.rb b/sonar-server/src/main/webapp/WEB-INF/config/routes.rb
index 6f4aafef2a0..ba3c53ba26b 100644
--- a/sonar-server/src/main/webapp/WEB-INF/config/routes.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/config/routes.rb
@@ -11,7 +11,12 @@ ActionController::Routing::Routes.draw do |map|
api.resources :events, :only => [:index, :show, :create, :destroy]
api.resources :user_properties, :only => [:index, :show, :create, :destroy], :requirements => { :id => /.*/ }
api.resources :favorites, :only => [:index, :show, :create, :destroy], :requirements => { :id => /.*/ }
- api.resources :reviews, :only => [:index, :create, :update, :destroy], :requirements => { :id => /.*/ }
+ api.resources :reviews, :only => [:index, :show, :create], :member => {
+ :add_comment => :put,
+ :reassign => :put,
+ :resolve => :put,
+ :reopen => :put
+ }
end
map.connect 'api/metrics', :controller => 'api/metrics', :action => 'index', :conditions => { :method => :get }