Author: olamy
Date: Wed Aug 31 07:11:55 2011
New Revision: 1163508
URL: http://svn.apache.org/viewvc?rev=1163508&view=rev
Log:
use QueryParam rather than PathParam to have a more human readable url :
deleteManagedRepository?repositoryId=&deleteContent
rather than deleteManagedRepository/foo/true
Modified:
archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java
Modified:
archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java
URL:
http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java?rev=1163508&r1=1163507&r2=1163508&view=diff
==============================================================================
---
archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java
(original)
+++
archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java
Wed Aug 31 07:11:55 2011
@@ -56,12 +56,12 @@ public interface RepositoriesService
ManagedRepository getManagedRepository( @PathParam( "repositoryId" )
String repositoryId )
throws RepositoryAdminException;
- @Path( "deleteManagedRepository/{repositoryId}/{deleteContent}" )
+ @Path( "deleteManagedRepository" )
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML,
MediaType.TEXT_PLAIN } )
@RedbackAuthorization( permission =
ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION )
- Boolean deleteManagedRepository( @PathParam( "repositoryId" ) String
repositoryId,
- @PathParam( "deleteContent" ) boolean
deleteContent )
+ Boolean deleteManagedRepository( @QueryParam( "repositoryId" ) String
repositoryId,
+ @QueryParam( "deleteContent" ) boolean
deleteContent )
throws Exception;