Interface ArtifactApi
-
@Path("/") public interface ArtifactApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestStatuscopyArtifact(String sourceRepo, String sourcePath, String targetPath)booleandeleteArtifact(String repoKey, String itemPath)ArtifactdeployArtifact(String repoKey, String itemPath, Payload inputStream, Map<String,List<String>> properties)InputStreamdownloadArchiveEntry(String sourceRepo, String archivePath, String archiveEntryPath)InputStreamdownloadArtifact(String sourceRepo, String sourcePath, boolean skipUpdateStats)RequestStatusmoveArtifact(String sourceRepo, String sourcePath, String targetPath)
-
-
-
Method Detail
-
deployArtifact
@Named("artifact:deploy") @Consumes("application/json") @Path("/{repoKey}/{itemPath}") @PUT Artifact deployArtifact(@PathParam("repoKey") String repoKey, @PathParam("itemPath") String itemPath, Payload inputStream, @Nullable Map<String,List<String>> properties)
-
deleteArtifact
@Named("artifact:delete") @Path("/{repoKey}/{itemPath}") @Consumes("*/*") @DELETE boolean deleteArtifact(@PathParam("repoKey") String repoKey, @PathParam("itemPath") String itemPath)
-
copyArtifact
@Named("artifact:copy") @Consumes("application/json") @Path("/api/copy/{repoKey}/{itemPath}") @POST RequestStatus copyArtifact(@PathParam("repoKey") String sourceRepo, @PathParam("itemPath") String sourcePath, @QueryParam("to") String targetPath)
-
moveArtifact
@Named("artifact:move") @Consumes("application/json") @Path("/api/move/{repoKey}/{itemPath}") @POST RequestStatus moveArtifact(@PathParam("repoKey") String sourceRepo, @PathParam("itemPath") String sourcePath, @QueryParam("to") String targetPath)
-
downloadArtifact
@Named("artifact:download") @Path("/{repoKey}/{itemPath}") @Consumes("*/*") @GET InputStream downloadArtifact(@PathParam("repoKey") String sourceRepo, @PathParam("itemPath") String sourcePath, @QueryParam("skipUpdateStats") boolean skipUpdateStats)
-
downloadArchiveEntry
@Named("artifact:downloadArchiveEntry") @Path("/{repoKey}/{archivePath}/{archiveEntryPath}") @Consumes("*/*") @GET InputStream downloadArchiveEntry(@PathParam("repoKey") String sourceRepo, @PathParam("archivePath") String archivePath, @PathParam("archiveEntryPath") String archiveEntryPath)
-
-