Java Spring – GET Request with two parameters

Advertisements I want to make a GET request to my server that receives two parameters, uniqueConfig and commitHash. The code for this operation in my Controller class is as follows: @GetMapping("/statsUnique") public ResponseEntity<Object> hasEntry(@RequestParam("uniqueConfig") String uniqueConfig, @RequestParam("commitHash") String commitHash) { Optional<Stats> statsOptional = codecService.findByUniqueConfigAndCommitHash(uniqueConfig, commitHash); if (statsOptional.isPresent()) { return ResponseEntity.status(HttpStatus.OK).body(true); } return ResponseEntity.status(HttpStatus.OK).body(false); } The… Read More Java Spring – GET Request with two parameters

Gets error when getting data from API in Swift: "Expected to decode Dictionary<String, Any> but found an array instead."

Advertisements I am new to swift, and currently trying to get data from this API, but this error keeps popping up in the log: "Expected to decode Dictionary<String, Any> but found an array instead.". Pls help. See example of the array from website as a comment in the lower part of the code snippet. import… Read More Gets error when getting data from API in Swift: "Expected to decode Dictionary<String, Any> but found an array instead."