- @RequestMapping(value = { "/getlabs/" }, method = RequestMethod.GET)
- public ResponseEntity<Set<Lab>> getLabs() {
- try {
- return new ResponseEntity<>(resultService.getLabsFromDb(), HttpStatus.OK);
- } catch (Exception e) {
- LOGGER.error(EELFLoggerDelegate.errorLogger, "Error when retrieving labs. " + UserUtils.getStackTrace(e));
- }
- return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
- }
-