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.solace.demos.cloudfoundry.scaling.aggregator.controller.AggregatorController.java
@RequestMapping(value = "/jobs", method = RequestMethod.DELETE) public ResponseEntity<String> deleteJobs() { log.warn("Entering deleteJobs"); solaceController.deleteJobs();// www.j a v a2s. co m return new ResponseEntity<>("{}", HttpStatus.OK); }
From source file:org.openbaton.nfvo.api.RestConfiguration.java
/** * Removes the Configuration from the Configurations repository * * @param id : the id of configuration to be removed *//*from w w w.j a v a 2 s .co m*/ @RequestMapping(value = "{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT) public void delete(@PathVariable("id") String id, @RequestHeader(value = "project-id", required = false) String projectId) { log.debug("removing Configuration with id " + id); configurationManagement.delete(id); }
From source file:org.springframework.samples.petclinic.rest.OwnerRestController.java
/** * Custom handler for remove an owner./*from www . j a v a2 s.c o m*/ * * @param ownerId the ID of the owner to remove */ @RequestMapping(value = "/{ownerId}", method = RequestMethod.DELETE) public void removeOwner(@PathVariable("ownerId") int ownerId) { this.clinicService.removeOwner(ownerId); }
From source file:com.alexshabanov.springrestapi.support.ProfileController.java
@RequestMapping(value = CONCRETE_PROFILE_RESOURCE, method = RequestMethod.DELETE) @ResponseBody//from ww w. jav a 2 s .c o m @ResponseStatus(HttpStatus.NO_CONTENT) public void deleteProfile(@PathVariable("id") long id) { throw new AssertionError(); // should be mocked }
From source file:com.restfiddle.controller.rest.PermissionController.java
@RequestMapping(value = "/api/permissions/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json") public @ResponseBody Permission delete(@PathVariable("id") String id) { logger.debug("Deleting permission with id: " + id); Permission deleted = permissionRepository.findOne(id); permissionRepository.delete(deleted); return deleted; }
From source file:com.capside.pokemondemo.PokemonCtrl.java
@RequestMapping(value = "/", method = RequestMethod.DELETE) @ResponseBody// w ww . ja va 2 s .c o m Pokemon shutdown() { log.warning(MessageFormat.format("{0} doesn''t want to fight, leaves the host now.", pokemon.getName())); new Thread(new Runnable() { @Override @SneakyThrows public void run() { Thread.sleep(1000); ctx.close(); } }).start(); return this.pokemon; }
From source file:com.xpanxion.userprojecthibernate.controllers.RESTController.java
@RequestMapping(value = "user/{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT)// w w w .j a va 2 s .com public void deleteUser(@PathVariable("id") int id) { userService.deleteUser(id); }
From source file:com.consol.citrus.admin.web.EndpointController.java
@RequestMapping(value = "/{id}", method = { RequestMethod.DELETE }) @ResponseBody//from w w w . j av a2 s. c om public void deleteEndpoint(@PathVariable("id") String id) { springBeanService.removeBeanDefinition(projectService.getProjectContextConfigFile(), projectService.getActiveProject(), id); }
From source file:org.opentestsystem.shared.permissions.rest.PresentationHandler.java
@RequestMapping(value = "role", method = RequestMethod.DELETE) @ResponseBody/*from w ww . j av a 2 s . co m*/ //@Secured({ "ROLE_Administrator Modify" }) public ReturnStatus<String> deleteRole(@RequestParam("role") String roleId, HttpServletResponse response) throws PermissionsRetrievalException, PermissionsPersistException { getPersister().deleteRole(roleId); ReturnStatus<String> status = new ReturnStatus<String>(StatusEnum.SUCCESS, null); status.setValue(roleId); return status; }
From source file:com.blstream.patronage.ctf.common.web.controller.RestController.java
/** * This method removes existing document based on id. * @param id/* w w w. j a v a 2s . com*/ */ @RequestMapping(value = "{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT) void delete(@PathVariable ID id);