@UserResource @RestController @RequestMapping(path="/api/v1/image") public class ImageController extends BaseController
| Constructor and Description |
|---|
ImageController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> |
getImage(String imageName)
Loading an image to display to the user.
|
org.springframework.http.HttpEntity<?> |
patchImage(String imageName) |
org.springframework.http.HttpEntity<?> |
putImage(String imageName,
org.springframework.web.multipart.MultipartFile imageFile) |
loadBytesForWeb, loadBytesForWeb, resourceNotFound, returnDocument, returnDocument, userDataLocationHeader, userId, yamlObjectMapperpublic static final String BASE_PATH
@GetMapping(value="/{imageName}",
produces="image/png")
@ResponseBody
public org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> getImage(@PathVariable
String imageName)
throws IOException
imageName - IOException@RequestMapping(path="/{imageName}",
method=PUT,
consumes="image/png")
public org.springframework.http.HttpEntity<?> putImage(@PathVariable
String imageName,
@RequestParam
org.springframework.web.multipart.MultipartFile imageFile)
@RequestMapping(path="/{imageName}/release",
method=POST)
public org.springframework.http.HttpEntity<?> patchImage(@PathVariable
String imageName)
Copyright © 2018. All rights reserved.