Skip to content

Commit

Permalink
feat: small adjustments (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter authored Mar 13, 2024
1 parent 14e1109 commit 6690939
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public Response createImageInfo(ImageInfoDTO imageInfoDTO) {
}
Image imageInfo = imageMapper.map(imageInfoDTO, image);
var createdImageInfo = imageInfoDAO.create(imageInfo);
return Response.created(uriInfo.getAbsolutePathBuilder().path(createdImageInfo.getId()).build()).build();
return Response.created(uriInfo.getAbsolutePathBuilder().path(createdImageInfo.getId()).build())
.entity(imageMapper.map(createdImageInfo)).build();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ default ImageData update(ImageData imageToUpdate, Integer contentLength, byte[]
ImageDataResponseDTO mapResponse(ImageData image);

List<ImageInfoDTO> mapInfoList(List<Image> list);

}
4 changes: 4 additions & 0 deletions src/main/openapi/onecx-welcome-internal-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ paths:
responses:
"201":
description: CREATED
content:
application/json:
schema:
$ref: '#/components/schemas/ImageInfo'
"400":
description: BAD REQUEST
content:
Expand Down

0 comments on commit 6690939

Please sign in to comment.