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.pablinchapin.planz.dailytaskmanager.controller.TaskController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public void delete(@PathVariable Long id) { service.delete(id); }
From source file:com.appdynamics.cloudfoundry.appdservicebroker.provisioning.ProvisioningController.java
@RequestMapping(method = RequestMethod.DELETE, value = "/v2/service_instances/*") Map<?, ?> delete(@RequestParam("service_id") String serviceId, @RequestParam("plan_id") String planId) { this.logger.info("De-provisioning Request Received: service_id: {}, plan_id: {}", serviceId, planId); return Collections.emptyMap(); }
From source file:org.elasticstore.server.controller.ItemController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @ResponseBody/*from w w w .j a va2 s . c om*/ public void deleteItem(@PathVariable("id") final String itemId) throws ElasticStoreException { this.itemService.delete(itemId); }
From source file:id.qwack.controller.RoleController.java
@RequestMapping(path = "/{id}", method = RequestMethod.DELETE) public String delete(@PathVariable("id") long id, @RequestBody Roles rl) { RolesService role = new RolesService(); role.delete(rl);// w w w . j ava2s .c o m return "Role ID " + id + " deleted"; }
From source file:com.consol.citrus.demo.voting.web.VotingServiceController.java
@RequestMapping(method = RequestMethod.DELETE) @ResponseBody public ResponseEntity clear() { votingService.clear(); return ResponseEntity.ok().build(); }
From source file:com.stronquens.control.ProfesorController.java
@RequestMapping(value = "/remove/{id}", method = RequestMethod.DELETE) public @ResponseBody HashMap<String, Object> remove(@PathVariable("id") int id) { HibernateUtil.createSessionFactory(); ProfesorBean oProfesor = new ProfesorBean(id, null, null, null); return profesorService.delete(oProfesor); }
From source file:com.tsg.cms.TagController.java
@RequestMapping(value = "/tag/{tagName}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT)/*from w w w. j a va 2 s . com*/ public void deleteTag(@PathVariable("tagName") String tagName) { tagDao.removeTag(tagName); }
From source file:com.swcguild.vendingmachinemvc.controller.UserController.java
@RequestMapping(value = "/item/{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT)//from w w w . j a v a 2 s . com public void deleteItem(@PathVariable("id") int id) { dao.removeItem(id); }
From source file:co.agileventure.cloud.product.rest.ProductController.java
@RequestMapping(value = "{id}", method = RequestMethod.DELETE) public void delete(@PathVariable("id") Long id) { productService.delete(id); }
From source file:com.artivisi.salary.payroll.system.controller.GajiController.java
@RequestMapping(value = "/gaji/{id}", method = RequestMethod.DELETE) public void deleteGaji(@PathVariable(value = "id") String id) throws Exception { if (id == null) { throw new Exception("id tidak boleh kosong atau null"); }/*from w w w .j a va2 s .co m*/ Gaji gaji = gajiService.findOne(id); if (gaji == null) { throw new Exception("User tidak ditemukan"); } gajiService.delete(gaji); }