Class ImageController
- java.lang.Object
-
- edu.cnm.deepdive.dominionendpointtestspring.controller.ImageController
-
@RestController @RequestMapping("/pics") public class ImageController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ImageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource>
getImage(java.lang.String cardType)
This returns an image of a given card.
-
-
-
Method Detail
-
getImage
@RequestMapping(value="/{cardType}", method=GET, produces="image/jpeg") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getImage(@PathVariable("cardType") java.lang.String cardType) throws java.io.IOException
This returns an image of a given card.- Parameters:
cardType
-- Returns:
- Throws:
java.io.IOException
-
-