Skip to content

Instantly share code, notes, and snippets.

@sidcool1234
Created January 22, 2019 11:29
Show Gist options
  • Save sidcool1234/9c1767ed9a2585a0feb90264ba173ac4 to your computer and use it in GitHub Desktop.
Save sidcool1234/9c1767ed9a2585a0feb90264ba173ac4 to your computer and use it in GitHub Desktop.
@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