Skip to content

Commit

Permalink
Added DELETE for Customer
Browse files Browse the repository at this point in the history
  • Loading branch information
BH-Sergey committed Dec 8, 2015
1 parent a219e7f commit 5f8c1f0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ public Integer updateCustomer(@PathVariable Integer id, @RequestBody Customer c
customerService.updateCustomer(id, customer.getName(), customer.getPhone(), customer.getTStamp());
return id;
}

@RequestMapping(value = GET_CUSTOMERS_BY_ID, method = RequestMethod.DELETE)
public void deleteCustomer(@PathVariable Integer id) {
customerService.deleteCustomer(id);
}
}

0 comments on commit 5f8c1f0

Please sign in to comment.