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
This commit is contained in:
Olivier Lamy 2011-08-31 07:11:55 +00:00
parent c9b788afb9
commit 005b157da7

View File

@ -56,12 +56,12 @@ List<ManagedRepository> getManagedRepositories()
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;