diff options
author | Olivier Lamy <olamy@apache.org> | 2011-08-31 07:11:55 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-08-31 07:11:55 +0000 |
commit | 005b157da7a76221f8889a2564602eb394d30b1f (patch) | |
tree | 129a2c40556148c57c3df15b96554ea61d58679f /archiva-modules/archiva-web/archiva-rest/archiva-rest-api | |
parent | c9b788afb96d680903070a67e40a8e8e6dc78a63 (diff) | |
download | archiva-005b157da7a76221f8889a2564602eb394d30b1f.tar.gz archiva-005b157da7a76221f8889a2564602eb394d30b1f.zip |
use QueryParam rather than PathParam to have a more human readable url :
deleteManagedRepository?repositoryId=&deleteContent
rather than deleteManagedRepository/foo/true
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1163508 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-api')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java index e0cbf1ed2..0fb0b14ee 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java @@ -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; |