Interface ArtifactApi


  • @Path("/")
    public interface ArtifactApi
    • 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)