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.mycompany.springboot.controller.IndexRestController.java
@RequestMapping(value = "/", method = { RequestMethod.POST, RequestMethod.DELETE }) private List<Comment> post(@Validated @RequestBody Comment comment) { return commentService.saveComment(comment); }
From source file:com.baidu.terminator.manager.action.RecordAction.java
@RequestMapping(value = "/{linkId}/{version}", method = RequestMethod.DELETE) public ResponseEntity<?> deleteRecord(@PathVariable int linkId, @PathVariable int version) { try {//from www . j a va2 s. com recordService.deleteRecord(linkId, version); return new ResponseEntity<String>(HttpStatus.NO_CONTENT); } catch (LinkStatusException e) { return new ResponseEntity<String>(e.getMessage(), HttpStatus.METHOD_NOT_ALLOWED); } }
From source file:lydichris.smashbracket.controllers.EntrantController.java
@RequestMapping(value = "/entrants", method = RequestMethod.DELETE) boolean deleteEntrant(@RequestParam String uuid) { entrantService.deleteEntrant(uuid); return true; }
From source file:com.swcguild.group3capstone.controller.Admin2Controller.java
@RequestMapping(value = "deleteDraft/{id}", method = RequestMethod.DELETE) public void deleteDraft(@PathVariable("id") int blogId) { }
From source file:br.unicesumar.escoladeti2015base.cores.CorController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public void excluirCor(@PathVariable String id) { service.remove(id); }
From source file:org.wallride.web.controller.admin.analytics.GoogleAnalyticsDeleteController.java
@RequestMapping(method = RequestMethod.DELETE) public String delete(@PathVariable String language, RedirectAttributes redirectAttributes) { GoogleAnalytics deletedGoogleAnalytics = blogService.deleteGoogleAnalytics(Blog.DEFAULT_ID); redirectAttributes.addFlashAttribute("deletedGoogleAnalytics", deletedGoogleAnalytics); return "redirect:/_admin/{language}/analytics"; }
From source file:org.obiba.rserver.rest.RServerController.java
@RequestMapping(method = RequestMethod.DELETE) @ResponseBody public RServerState stop() { rServerService.stop(); return rServerService; }
From source file:reconf.server.services.property.DeletePropertyService.java
@RequestMapping(value = "/product/{prod}/component/{comp}/property/{prop}", method = RequestMethod.DELETE) @Transactional//from w ww. ja va 2s . c o m public ResponseEntity<PropertyResult> global(@PathVariable("prod") String product, @PathVariable("comp") String component, @PathVariable("prop") String property, Authentication auth) { PropertyKey key = new PropertyKey(product, component, property); Property reqProperty = new Property(key, null); List<String> errors = DomainValidator.checkForErrors(key); if (!errors.isEmpty()) { return new ResponseEntity<PropertyResult>(new PropertyResult(reqProperty, errors), HttpStatus.BAD_REQUEST); } if (!properties.exists(key)) { return new ResponseEntity<PropertyResult>(new PropertyResult(reqProperty, Property.NOT_FOUND), HttpStatus.NOT_FOUND); } properties.delete(key); return new ResponseEntity<PropertyResult>(HttpStatus.OK); }
From source file:programacaovi.todo.ItemController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public void deleteItem(@PathVariable Integer id) { repo.delete(id); }
From source file:com.xinferin.controller.CustomerController.java
@RequestMapping(value = "/{customerId}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.OK)//from ww w . j a v a2 s. c o m public void deleteCustomer(@PathVariable int customerId) { daoCustomer.delete(customerId); }