/** DELETE /prices/:id -> delete the "id" price. */ @RequestMapping( value = "/prices/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public void delete(@PathVariable Long id) { log.debug("REST request to delete Price : {}", id); priceRepository.delete(id); priceSearchRepository.delete(id); }