示例#1
0
 /** DELETE /accountings/:id -> delete the "id" accounting. */
 @RequestMapping(
     value = "/accountings/{id}",
     method = RequestMethod.DELETE,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @Timed
 public ResponseEntity<Void> deleteAccounting(@PathVariable Long id) {
   log.debug("REST request to delete Accounting : {}", id);
   accountingRepository.delete(id);
   return ResponseEntity.ok()
       .headers(HeaderUtil.createEntityDeletionAlert("accounting", id.toString()))
       .build();
 }