Skip to content

Instantly share code, notes, and snippets.

@sohangp
Created May 16, 2019 01:04
Show Gist options
  • Save sohangp/a4b074c54cd8f45fc6509a178679d107 to your computer and use it in GitHub Desktop.
Save sohangp/a4b074c54cd8f45fc6509a178679d107 to your computer and use it in GitHub Desktop.
Controller
@RestController
public class CustomerController {
@RequestMapping(value = "/customers", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public List<CustomerDetailsDTO> getCustomers() throws Exception {
return customerService.getCustomersAndOrderData();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment