summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest/archiva-rest-api
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-03-16 14:03:33 +0000
committerOlivier Lamy <olamy@apache.org>2012-03-16 14:03:33 +0000
commit8c4dbe2fc99fb70d925f4cdf6fce333c755daa56 (patch)
tree4f50b9c400ef26eeef717a2d8155a8106d2c2ec6 /archiva-modules/archiva-web/archiva-rest/archiva-rest-api
parent08bd0acb74ff73e2165c95a9109caa97b2e88eaf (diff)
downloadarchiva-8c4dbe2fc99fb70d925f4cdf6fce333c755daa56.tar.gz
archiva-8c4dbe2fc99fb70d925f4cdf6fce333c755daa56.zip
implements browsing root for a selected repository.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1301528 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/BrowseService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java
index 77e251a11..64996c6ae 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java
@@ -28,6 +28,7 @@ import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import java.util.List;
@@ -42,14 +43,15 @@ public interface BrowseService
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
@RedbackAuthorization( noPermission = true, noRestriction = true )
- BrowseResult getRootGroups()
+ BrowseResult getRootGroups( @QueryParam( "repositoryId" ) String repositoryId )
throws ArchivaRestServiceException;
@Path( "browseGroupId/{groupId}" )
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
@RedbackAuthorization( noPermission = true, noRestriction = true )
- BrowseResult browseGroupId( @PathParam( "groupId" ) String groupId )
+ BrowseResult browseGroupId( @PathParam( "groupId" ) String groupId,
+ @QueryParam( "repositoryId" ) String repositoryId )
throws ArchivaRestServiceException;
@Path( "versionsList/{g}/{a}" )