List of usage examples for org.springframework.web.bind.annotation RequestMethod DELETE
RequestMethod DELETE
To view the source code for org.springframework.web.bind.annotation RequestMethod DELETE.
Click Source Link
From source file:com.swcguild.dvdlibrarymvc.controller.HomeController.java
@RequestMapping(value = "/dvd/{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT)/*from ww w.ja v a 2 s . c o m*/ public void deleteDvd(@PathVariable("id") int id) { dao.removeDVD(id); }
From source file:com.restfiddle.controller.rest.StarController.java
@RequestMapping(value = "/api/stars/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") public @ResponseBody Star delete(@PathVariable("id") String id) { logger.debug("Deleting star with id: " + id); Star deleted = starRepository.findOne(id); starRepository.delete(deleted);/*from w w w .j av a2 s .c om*/ return deleted; }
From source file:org.openbaton.nfvo.api.RestProject.java
/** * Removes the Project from the Projects repository * * @param id : the id of project to be removed *//*from ww w. ja va 2 s .c om*/ @RequestMapping(value = "{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT) public void delete(@PathVariable("id") String id) throws NotAllowedException, NotFoundException, EntityInUseException { log.debug("removing Project with id " + id); projectManagement.delete(projectManagement.query(id)); }
From source file:com.budiana.irpan.belajar.controller.PesertaController.java
@RequestMapping(value = "/peserta/{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.OK)//from w ww.ja va 2 s . co m public void hapusPeserta(@PathVariable("id") String id) { pd.delete(id); }
From source file:no.nlf.rest.RestLicenseController.java
/** * //from w w w . ja va 2 s .c o m * @param id * @return */ @RequestMapping(value = "/licenses/{id} ", method = RequestMethod.DELETE) public @ResponseBody License deleteLicense(@PathVariable("id") int id) { return licenseLogic.delete(id); }
From source file:org.openbaton.nfvo.api.RestVirtualLink.java
/** * Removes the Configuration from the Configurations repository * * @param id : the id of virtualLinkDescriptor to be removed */// w ww .j a va2 s. c o m @RequestMapping(value = "{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT) public void delete(@PathVariable("id") String id) { log.debug("removing VirtualLink with id " + id); virtualLinkManagement.delete(id); }
From source file:com.diagrama.repository.PeriodoController.java
@RequestMapping(value = "/periodo/{periodo_id}", method = RequestMethod.DELETE) public ResponseEntity<?> eliminarPeriodo(@PathVariable int periodo_id) { periodoRepository.delete(periodo_id); return new ResponseEntity<>(HttpStatus.OK); }
From source file:com.bcknds.demo.mongo.controller.TodoController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public @ResponseBody boolean remove(@PathVariable final String id) { return todoService.remove(id); }
From source file:com.consol.citrus.samples.todolist.web.TodoListController.java
@RequestMapping(method = RequestMethod.DELETE) public String clear() { todoListService.clear(); return "redirect:todolist"; }
From source file:com.restfiddle.controller.rest.RoleController.java
@RequestMapping(value = "/api/roles/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") public @ResponseBody Role delete(@PathVariable("id") String id) { logger.debug("Deleting role with id: " + id); Role deleted = roleRepository.findOne(id); roleRepository.delete(deleted);// w w w .ja v a 2s . c o m return deleted; }