From 8d23ab9eecd3570bd47c39d86fe8cb6cf274542b Mon Sep 17 00:00:00 2001 From: ramari16 Date: Mon, 19 Aug 2024 09:56:31 -0400 Subject: [PATCH] ALS-6511: Set async query result to application/octet content type (#201) --- .../src/main/java/edu/harvard/dbmi/avillach/PicsureRS.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/PicsureRS.java b/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/PicsureRS.java index 9eb6527e..9eb58a36 100644 --- a/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/PicsureRS.java +++ b/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/PicsureRS.java @@ -18,6 +18,8 @@ import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.parameters.RequestBody; import io.swagger.v3.oas.annotations.responses.ApiResponse; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; @OpenAPIDefinition(info = @Info(title = "Pic-sure API", version = "1.0.0", description = "This is the Pic-sure API.")) @Path("/") @@ -25,6 +27,8 @@ @Consumes("application/json") public class PicsureRS { + private final Logger logger = LoggerFactory.getLogger(PicsureRS.class); + @Inject PicsureInfoService infoService; @@ -155,6 +159,7 @@ public QueryStatus queryStatus( responseCode = "200", description = "Query result", content = @Content(schema = @Schema(implementation = Response.class)) )} ) + @Produces(MediaType.APPLICATION_OCTET_STREAM) public Response queryResult( @Parameter( description = "The UUID of the query to fetch the status of. The UUID is "