Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public final void saveTransaction(@RequestBody Transaction transaction, HttpServ
response.setStatus(HttpStatus.NO_CONTENT.value());
}
}

// as the response has to be JSON, you have to return JSON format.. I suggestthat you create a toString() in the transactionService and build a JSON body there ..

@RequestMapping(method = RequestMethod.GET, path = "/statistics", produces = "application/json")
public final Statistics getTransactionServiceImpl() {
return transactionService.getStatistics();
Expand Down