Skip to content

Commit

Permalink
ALS-6511: Set async query result to application/octet content type (#201
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ramari16 authored Aug 19, 2024
1 parent b330f2a commit 8d23ab9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@
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("/")
@Produces("application/json")
@Consumes("application/json")
public class PicsureRS {

private final Logger logger = LoggerFactory.getLogger(PicsureRS.class);

@Inject
PicsureInfoService infoService;

Expand Down Expand Up @@ -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 "
Expand Down

0 comments on commit 8d23ab9

Please sign in to comment.