@UserResource @RestController @RequestMapping(path="api/v1/images") public class ImageController extends Object
| Constructor and Description |
|---|
ImageController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpEntity<byte[]> |
getImage(String imageName) |
org.springframework.http.HttpEntity<Void> |
uploadImages(org.springframework.web.multipart.MultipartFile imagesFile) |
@GetMapping(path="/{imageName}",
produces="image/jpeg")
public org.springframework.http.HttpEntity<byte[]> getImage(@PathVariable
String imageName)
@PostMapping(path="/upload") public org.springframework.http.HttpEntity<Void> uploadImages(@RequestParam org.springframework.web.multipart.MultipartFile imagesFile)
Copyright © 2019. All rights reserved.