summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-09-20 19:42:46 +0000
committerOlivier Lamy <olamy@apache.org>2012-09-20 19:42:46 +0000
commitc747a1ffe82ee83d005cf3fb32a5146591d906b5 (patch)
treec000e3304733c860409757d86d1a9e559b089324 /archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src
parent8f64c48ccf5e38a6deb483e2d3b64f06d7cb875b (diff)
downloadarchiva-c747a1ffe82ee83d005cf3fb32a5146591d906b5.tar.gz
archiva-c747a1ffe82ee83d005cf3fb32a5146591d906b5.zip
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
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/BrowseService.java7
1 files changed, 4 insertions, 3 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 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<Artifact> getArtifacts( @PathParam ( "r" ) String repositoryId )
throws ArchivaRestServiceException;
}