From c747a1ffe82ee83d005cf3fb32a5146591d906b5 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 20 Sep 2012 19:42:46 +0000 Subject: change method to be able to retrieve artifacts git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1388175 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/archiva/rest/api/services/BrowseService.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src') 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 ef7b16117..5d518009a 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 @@ -21,6 +21,7 @@ package org.apache.archiva.rest.api.services; import org.apache.archiva.admin.model.beans.ManagedRepository; import org.apache.archiva.maven2.model.Artifact; import org.apache.archiva.maven2.model.TreeEntry; +import org.apache.archiva.metadata.model.ArtifactMetadata; import org.apache.archiva.metadata.model.ProjectVersionMetadata; import org.apache.archiva.redback.authorization.RedbackAuthorization; import org.apache.archiva.rest.api.model.ArtifactContent; @@ -192,18 +193,18 @@ public interface BrowseService @PathParam ("v") String version, @QueryParam ("repositoryId") String repositoryId ) throws ArchivaRestServiceException; - @Path ("artifactsNumber/{r}") + @Path ("artifacts/{r}") @GET @Produces ({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) @RedbackAuthorization (noPermission = true, noRestriction = true) /** * - * return artifacts number in a repository + * return List of all artifacts from this repository * @param repositoryId * @return * @throws ArchivaRestServiceException * @since 1.4-M3 */ - Integer getArtifactsNumber( @PathParam ( "r" ) String repositoryId ) + List getArtifacts( @PathParam ( "r" ) String repositoryId ) throws ArchivaRestServiceException; } -- cgit v1.2.3