mirror of
https://github.com/apache/archiva.git
synced 2025-02-28 05:29:07 +00:00
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:
parent
c9b788afb9
commit
005b157da7
@ -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;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user