Created
January 22, 2019 11:29
-
-
Save sidcool1234/9c1767ed9a2585a0feb90264ba173ac4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
@RequestMapping("/reports") | |
public class ReportsController { | |
@RequestMapping(method = RequestMethod.GET) | |
public ResponseEntity getReport(HttpRequestServlet request) { | |
ReportGenerator reportGenerator = new ReportGenerator(request); | |
Report report = reportGenerator.createReport(); | |
// ... | |
return report; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment