Created
May 24, 2016 10:41
-
-
Save HDBandit/489c4ec86b9d520edb0368b562b9bdb5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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("/{tenantId}/invoice") | |
public class InvoiceController { | |
@Autowired | |
private InvoiceRepository invoiceRepository; | |
@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) | |
public List<Invoice> invoices() { | |
return Lists.newArrayList(invoiceRepository.findAll()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment