könemer

mail@pastecode.io avatar
unknown
java
3 years ago
573 B
1
Indexable
Never
    ObjectMapper objectMapper = new ObjectMapper();

    @PostMapping("/v1/applikation/{applikationID}/{sprache}/import")
    public ResponseEntity<Void> createApplikation(@RequestParam("json") MultipartFile file, @PathVariable long applikationID, @PathVariable Sprache sprache) throws IOException {
        
        
        Map<?,?> keyValue = objectMapper.readValue(file.getInputStream(), Map.class);

        //applikationRepository.save(ApplikationConverter.toEntity(applikationFromFrontDto));
        return new ResponseEntity<>(HttpStatus.CREATED);
    }