Styling tweaking

This commit is contained in:
verboomp
2026-02-02 14:52:33 +01:00
parent e0279a4d26
commit f9ca668b39
4 changed files with 18 additions and 14 deletions

View File

@@ -37,8 +37,13 @@
</build>
<dependencies>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>3.0.5</version>
</dependency>
<!-- Elytron secrity used for username/password login -->
<dependency>
<groupId>org.wildfly.security</groupId>

View File

@@ -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);