Class AttachAgent


  • @EndPoint
    @Path("/api")
    public class AttachAgent
    extends Object
    • Constructor Detail

      • AttachAgent

        public AttachAgent()
    • Method Detail

      • upload

        @Path("/file/upload/{identifier}")
        @POST
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u03c0\u03b5\u03c1\u03b9\u03b2\u03ac\u03bb\u03bb\u03c9\u03bd/X-UPLOAD")
        public io.vertx.core.json.JsonObject upload​(@PathParam("identifier")
                                                    String identifier,
                                                    @QueryParam("category")
                                                    String category,
                                                    @StreamParam
                                                    io.vertx.ext.web.FileUpload fileUpload)
      • download

        @Path("/file/download/{fileKey}")
        @GET
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u03c0\u03b5\u03c1\u03b9\u03b2\u03ac\u03bb\u03bb\u03c9\u03bd/X-DOWNLOAD")
        @Produces("application/octet-stream")
        @Consumes("application/octet-stream")
        public io.vertx.core.json.JsonObject download​(@PathParam("fileKey")
                                                      String key)