From 005b157da7a76221f8889a2564602eb394d30b1f Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 31 Aug 2011 07:11:55 +0000 Subject: [PATCH] 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 --- .../archiva/rest/api/services/RepositoriesService.java | 6 +++--- 1 file 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; -- 2.39.5