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.mum.controller.CardRestController.java
@RequestMapping(value = "/{cardId}", method = RequestMethod.DELETE) @ResponseStatus(value = HttpStatus.NO_CONTENT) public void delete(@PathVariable(value = "cardId") String cardId) { System.out.println("Delete"); cardServiceImpl.delete(cardId);/*from w w w. j a v a 2s. com*/ }
From source file:com.example.posting.BlogController.java
@RequestMapping(value = "/post", method = RequestMethod.DELETE, produces = "application/json") public @ResponseBody BlogPost deletePost(@RequestParam(value = "id", required = true) long id) { return postService.deltePostById(id, (User) authentication.getPrincipal()); }
From source file:com.tsg.cms.BlogPostController.java
@RequestMapping(value = "/blogPost/{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT)/*from w w w.j a v a 2 s . c om*/ public void deleteBlogPost(@PathVariable("id") int id) { blogPostDao.removeBlogPost(id); }
From source file:bibibi.controllers.CitationsController.java
@Transactional @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public String deleteBook(@PathVariable Long id) { citationRepository.delete(id);/*from w ww. ja va2s.co m*/ return "redirect:/listcitations"; }
From source file:com.ebay.logstorm.server.controllers.ClusterController.java
@RequestMapping(path = "/{uuid}", method = RequestMethod.DELETE) @Transactional/* ww w. j a va 2 s. c o m*/ public @ResponseBody ResponseEntity<RestResponse<Integer>> deleteClusterByUuid(@PathVariable String uuid) { return RestResponse.async(() -> entityService.deleteClusterByUuid(uuid)).get(); }
From source file:com.orange.cloud.servicebroker.filter.core.service.ServiceInstanceBindingServiceClient.java
@RequestMapping(value = "/v2/service_instances/{instanceId}/service_bindings/{bindingId}", method = RequestMethod.DELETE, produces = { MediaType.APPLICATION_JSON_VALUE }) ResponseEntity<String> deleteServiceInstanceBinding(@PathVariable("instanceId") String serviceInstanceId, @PathVariable("bindingId") String bindingId, @RequestParam("service_id") String serviceDefinitionId, @RequestParam("plan_id") String planId);
From source file:com.orange.cloud.servicebroker.filter.core.service.ServiceInstanceServiceClient.java
@RequestMapping(value = "/v2/service_instances/{instanceId}", method = RequestMethod.DELETE, produces = { MediaType.APPLICATION_JSON_VALUE }) ResponseEntity<DeleteServiceInstanceResponse> deleteServiceInstance( @PathVariable("instanceId") String serviceInstanceId, @RequestParam("service_id") String serviceDefinitionId, @RequestParam("plan_id") String planId, @RequestParam(value = "accepts_incomplete", required = false) boolean acceptsIncomplete);
From source file:com.cloud.ops.resource.ResourcePackageController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public Boolean delete(@PathVariable String id) { service.delete(id); return Boolean.TRUE; }
From source file:org.ng200.openolympus.controller.contest.ContestUserRemovalController.java
@PreAuthorize(SecurityExpressionConstants.IS_ADMIN) @RequestMapping(value = "/api/contest/{contest}/removeUser", method = RequestMethod.DELETE) public void removeTask(@PathVariable(value = "contest") final Contest contest, @RequestParam(value = "user") final User user, final Model model) { Assertions.resourceExists(contest);// ww w . j a v a2 s. c o m Assertions.resourceExists(user); contestService.removeUserFromContest(contest, user); }
From source file:org.unitec.maven.ControladorGastos.java
@RequestMapping(value = "/gastos/{idGastos}", method = RequestMethod.DELETE, headers = { "Accept=text/html" }) @ResponseBody/*w w w . ja v a2 s .c om*/ String eliminar(@PathVariable Integer idGastos) throws Exception { DAOGastos dao = new DAOGastos(); dao.eliminar(idGastos); return "La gastos se eliminaron"; }