Created
May 16, 2019 01:04
-
-
Save sohangp/a4b074c54cd8f45fc6509a178679d107 to your computer and use it in GitHub Desktop.
Controller
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 | |
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