Summary :
Upload a image file together with the details of item with the POST request.
Resize the image if it exceed certain resolution, save as xxx.extension and second resize on the image the resize the image to thumbnail size the save as xxx-thumbnail.extension
Example: (Flow of the feature)
[POST] to API endpoint "baseURL/inventory/item"
item details ( contains SKU) and image
resize ( if image too large) and also create a thumbnail size image
save as xxx.extension and xxx-thumbnail.extension
save path to database "/images/item/xxx.extension" only
Add a new item in the itemlisting ( database table )
image upload directory : src/main/resource/static/images/item/xxx.extension
Feature request: (in imageUpload.java)
Summary : Upload a image file together with the details of item with the POST request.
Resize the image if it exceed certain resolution, save as xxx.extension and second resize on the image the resize the image to thumbnail size the save as xxx-thumbnail.extension
Example: (Flow of the feature)
[POST] to API endpoint "baseURL/inventory/item" item details ( contains SKU) and image resize ( if image too large) and also create a thumbnail size image save as xxx.extension and xxx-thumbnail.extension save path to database "/images/item/xxx.extension" only