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 24a45d03..9190f1a8 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; @@ -162,7 +166,10 @@ public Response queryResult( + "returned by the /query endpoint as the \"picsureResultId\" in the response object" ) @PathParam("queryId") UUID queryId, @Parameter QueryRequest credentialsQueryRequest, @Context HttpHeaders headers ) { - return queryService.queryResult(queryId, credentialsQueryRequest, headers); + Response response = queryService.queryResult(queryId, credentialsQueryRequest, headers); + logger.info(response.getMediaType().toString()); + logger.info(response.getEntity().toString()); + return response; } @POST