add size and type to get /images
This commit is contained in:
1 parent
297e2af0be
commit
8dfcf764df
1 file changed
+2
@@ -87,6 +87,8 @@ public class ImageController {
|
|||||||
ObjectNode objectNode = mapper.createObjectNode();
|
ObjectNode objectNode = mapper.createObjectNode();
|
||||||
objectNode.put("id", image.getId());
|
objectNode.put("id", image.getId());
|
||||||
objectNode.put("name", image.getName());
|
objectNode.put("name", image.getName());
|
||||||
|
objectNode.put("size", image.getSize());
|
||||||
|
objectNode.put("type", image.getMediaType().toString());
|
||||||
nodes.add(objectNode);
|
nodes.add(objectNode);
|
||||||
}
|
}
|
||||||
return nodes;
|
return nodes;
|
||||||
|
|||||||
Reference in new issue
Block a user