@RequestMapping(value = "/invoice", method = RequestMethod.GET) public InvoiceList getInvoiceByCustomerId(@RequestParam("customerId") int customerId) { return addLinks(invoiceService.getInvoiceByCustomerId(customerId), customerId); }