Styling tweaking
This commit is contained in:
@@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.responses.ApiResponse;
|
||||
import jakarta.ejb.EJB;
|
||||
import jakarta.enterprise.context.RequestScoped;
|
||||
import jakarta.ws.rs.*;
|
||||
import jakarta.ws.rs.core.CacheControl;
|
||||
import jakarta.ws.rs.core.Response;
|
||||
import jakarta.ws.rs.core.Response.ResponseBuilder;
|
||||
import jakarta.ws.rs.core.Response.Status;
|
||||
@@ -64,9 +65,9 @@ public class PictureResource {
|
||||
@GZIP
|
||||
@GET
|
||||
@Path("image/{id}")
|
||||
@Produces(JSON_OUT)
|
||||
@Operation(summary = "Get customer value")
|
||||
@ApiResponse(responseCode = "200", description = "Successfully retrieved picture value")
|
||||
@Produces({ "image/png", "image/jpg" })
|
||||
@Operation(summary = "Get picture")
|
||||
@ApiResponse(responseCode = "200", description = "Successfully retrieved picture")
|
||||
public Response doGetPictureImage(@PathParam("id") Long id, @QueryParam("size") int size) {
|
||||
LOG.debug("Get Picture for id " + id + " with size " + size);
|
||||
byte[] retVal = pictureService.getImage(id, size);
|
||||
|
||||
Reference in New Issue
Block a user