| 125 | } |
| 126 | |
| 127 | @PostMapping(path = "/wild-card-map", consumes = APPLICATION_FORM_URLENCODED_VALUE) |
| 128 | public ResponseEntity<Integer> wildCardMap( |
| 129 | @RequestParam("key1") String key1, @RequestParam("key2") String key2) { |
| 130 | var status = key1.equals(key2) ? OK : I_AM_A_TEAPOT; |
| 131 | return ResponseEntity.status(status).body(null); |
| 132 | } |
| 133 | |
| 134 | @PostMapping(path = "/upload/with_dto", consumes = MULTIPART_FORM_DATA_VALUE) |
| 135 | public ResponseEntity<Long> uploadWithDto(Dto dto, @RequestPart("file") MultipartFile file) |