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.arya.latihan.controller.SalesOrderController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @Transactional(readOnly = false)/*from www . j a v a2 s . c o m*/ @ResponseStatus(HttpStatus.NO_CONTENT) public void deleteSalesOrder(@PathVariable("/{id}") String id) { salesOrderRepository.delete(id); }
From source file:com.restfiddle.controller.rest.ModuleController.java
@RequestMapping(value = "/api/modules/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") public @ResponseBody Module delete(@PathVariable("id") String id) { logger.debug("Deleting module with id: " + id); Module deleted = moduleRepository.findOne(id); moduleRepository.delete(deleted);//from www . ja va2 s . c o m return deleted; }
From source file:com.springsource.html5expense.controllers.ExpenseReportingApiController.java
@RequestMapping(method = RequestMethod.DELETE, value = "/{reportId}") @ResponseStatus(HttpStatus.OK)/*from ww w . j av a 2s . c o m*/ public void deleteReport(@PathVariable("reportId") Long reportId) { this.service.deleteExpenseReport(reportId); }
From source file:com.cxplonka.feature.service.controller.CustomerController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public void delete(@PathVariable long id) { Assert.isTrue(id > 0, "No valid primary key."); repository.delete(id);// w w w .ja v a2s .c o m }
From source file:org.callistasoftware.netcare.api.rest.CommentsApi.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @ResponseBody/*from w w w. jav a 2s . c om*/ public ServiceResult<ActivityComment> remove(@PathVariable(value = "id") final Long id) { logAccessWithoutPdl("remove", "comment"); return service.deleteComment(id); }
From source file:com.arya.latihan.controller.CustomerController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @Transactional(readOnly = false)/* www .jav a 2 s . c om*/ @ResponseStatus(HttpStatus.NO_CONTENT) public void deleteCustomer(@PathVariable("id") String id) { customerRepository.delete(id); }
From source file:org.openbaton.nfvo.api.RestVNFFG.java
/** * Removes the VNF software VNFFG from the VNFFG repository * * @param id : The VNFFG's id to be deleted *//* ww w. ja v a 2 s .com*/ @RequestMapping(value = "{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT) public void delete(@PathVariable("id") String id) { vnffgManagement.delete(id); }
From source file:com.activiti.web.rest.client.JobClientResource.java
/** * DELETE /rest/activiti/jobs/{jobId} -> delete job *///from w w w. ja va 2 s . c om @RequestMapping(value = "/rest/activiti/jobs/{jobId}", method = RequestMethod.DELETE, produces = "application/json") @ResponseStatus(value = HttpStatus.OK) public void deleteJob(@PathVariable String jobId) throws BadRequestException { ServerConfig serverConfig = retrieveServerConfig(); try { clientService.deleteJob(serverConfig, jobId); } catch (ActivitiServiceException e) { throw new BadRequestException(e.getMessage()); } }
From source file:gumga.framework.security.GumgaSecurityProxy.java
@ApiOperation(value = "delete", notes = "Faz logout do usurio fazendo o token informado expirar.") @RequestMapping(value = "/{token}", method = RequestMethod.DELETE) public Map delete(@PathVariable String token) { String url = gumgaValues.getGumgaSecurityUrl() + "/token/" + token; restTemplate.delete(url);// ww w . j a v a 2 s. c o m return GumgaSecurityCode.OK.response(); }
From source file:eu.griend.grpf.controller.NodeController.java
@RequestMapping(value = "/nodes/{id}", method = RequestMethod.DELETE) public void deleteNode(@PathVariable String id) { UUID uuid = UUID.fromString(id); this.nodeService.deleteNode(uuid); }