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.sg.addressbookmvc.HomeController.java
@RequestMapping(value = "/address/{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT)//from w ww .j av a 2 s.co m public void deleteAddress(@PathVariable("id") int id) { dao.removeAddress(id); }
From source file:lk.hadamu.controller.CustomerController.java
@RequestMapping(value = "/delete/{username}", method = RequestMethod.DELETE) public boolean delete(@PathVariable(value = "username") String username) { return false; }
From source file:es.fdi.reservas.reserva.web.FacultadRestController.java
@RequestMapping(value = "/facultad/{idFacultad}", method = RequestMethod.DELETE) public void eliminarFacultad(@PathVariable("idFacultad") long idFacultad) { facultad_service.editarFacultadDeleted(idFacultad); }
From source file:monkeys.web.BananasController.java
@RequestMapping(method = RequestMethod.DELETE, value = "/{id}") public ResponseEntity<Void> deleteBanana(@PathVariable Long id) { bananaRepository.delete(id);//from ww w. j a v a 2 s.c o m HttpHeaders headers = new HttpHeaders(); return new ResponseEntity<>(headers, HttpStatus.OK); }
From source file:com.mycompany.comerciobici.controlador.PayTypeController.java
@RequestMapping(value = "/eliminar/{id}", method = RequestMethod.DELETE, produces = { MediaType.APPLICATION_JSON }, consumes = { MediaType.APPLICATION_JSON }) public @ResponseBody Pago EliminarFormaPago(@RequestBody Pago producto) { Pago data = producto;/*from ww w . j ava 2 s . c om*/ return data; }
From source file:org.lamop.riche.webservices.WorkRESTWS.java
@DELETE @Path("{id}") @Produces(MediaType.APPLICATION_JSON)//from www . java2s . c o m @RequestMapping(method = RequestMethod.DELETE) public void remove(@PathParam("id") int id) { serviceWork.removeEntity(new Long(id)); }
From source file:com.dickthedeployer.dick.web.controller.GroupController.java
@RequestMapping(method = RequestMethod.DELETE, value = "/{groupId}") public void deleteGroup(@PathVariable("groupId") Long groupId) { groupService.deleteGroup(groupId);//from w w w. ja v a 2s.c o m }
From source file:id.qwack.controller.UserInterestController.java
@RequestMapping(path = "participant/{id}", method = RequestMethod.DELETE) public String delete(@PathVariable("id") long id, @RequestBody UserInterest ui) { UserInterestService userInterest = new UserInterestService(); userInterest.delete(ui);//from w ww . java2s.c om return "Tag ID " + id + " deleted"; }
From source file:com.github.lynxdb.server.api.http.handlers.EpTree.java
@RequestMapping(path = "/", method = { RequestMethod.GET, RequestMethod.POST, RequestMethod.DELETE, RequestMethod.PUT }, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity root() { return ResponseEntity.status(HttpStatus.NOT_IMPLEMENTED).build(); }
From source file:com.parivero.swagger.demo.controller.PaisController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT)/*from w w w. j ava 2 s . co m*/ public void borrarPorId(@PathVariable("id") Long id) { if (id == 0) { throw new NotFoundException(); } }