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:rest.TorneoRestController.java
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public void deleteTorneo(@PathVariable int id) { logicaTorneo.deleteTorneo(id); }
From source file:com.baidu.stqa.signet.web.action.AuthorityAction.java
/** * ??//from w ww .j av a2s. c o m * * @param projectId * @param storyId * @return */ @RequestMapping(value = "/project/{projectId}/story/{storyId}/authority", method = RequestMethod.DELETE) @ResponseBody public ResponseEntity<Boolean> relaseAuthorityAction(@PathVariable long projectId, @PathVariable long storyId) { doLog(projectId); String user = getUser(); Boolean result = caseSuiteService.releaseCardEditLock(projectId, storyId, user); return new ResponseEntity<Boolean>(result, HttpStatus.OK); }
From source file:com.springsource.html5expense.controllers.ExpenseController.java
@RequestMapping(value = "/expense/{expenseId}", method = RequestMethod.DELETE, produces = "application/json") @ResponseStatus(HttpStatus.OK)//from w w w.ja v a 2s . co m public void deleteExpense(@PathVariable("expenseId") Long expenseId) { expenseService.deleteExpense(expenseId); }
From source file:pitayaa.nail.msg.core.license.controller.LicenseController.java
@RequestMapping(value = "licenses/{ID}", method = RequestMethod.DELETE) public @ResponseBody ResponseEntity<?> deleteLicense(@PathVariable("ID") UUID uid) throws Exception { // Find license Optional<License> optionalLicense = licenseService.findOne(uid); if (!optionalLicense.isPresent()) { return new ResponseEntity<>(HttpStatus.NOT_FOUND); }/*from ww w .j ava 2 s . c om*/ // Delete license boolean isDelete = licenseService.deleteLicense(uid); // Get status HttpStatus status = (isDelete) ? HttpStatus.NO_CONTENT : HttpStatus.EXPECTATION_FAILED; // Return return new ResponseEntity<>(status); }
From source file:com.artivisi.salary.payroll.system.controller.KaryawanController.java
@RequestMapping(value = "/karyawan/{id}", method = RequestMethod.DELETE) public void deleteKaryawan(@PathVariable(value = "id") String id) throws Exception { if (id == null) { throw new Exception("id tidak ada"); }/*from www . j av a 2 s. c o m*/ Karyawan karyawan = karyawanService.findOne(id); if (karyawan == null) { throw new Exception("Data tidak ditemukan"); } karyawanService.delete(karyawan); }
From source file:org.easy.scrum.service.TeamService.java
@RequestMapping(value = "/teams/{id}", method = RequestMethod.DELETE) @ResponseBody public void deleteTeam(@PathVariable Long id) { teamDao.delete(id); }
From source file:cz.fi.muni.pa036.airticketbooking.rest.SeatRest.java
@RequestMapping(method = RequestMethod.DELETE) public void deleteSeat(@RequestBody @Valid Long seat) { SeatDto p = seatService.getById(seat); seatService.delete(p); }
From source file:com.example.security.UserController.java
@RequestMapping(value = "/user", method = RequestMethod.DELETE, produces = "application/json") public @ResponseBody User deleteUserById(@RequestParam(value = "id", required = true) long id) { return userDetailsService.deleteUserById(id); }
From source file:edu.unc.lib.dl.cdr.sword.server.servlets.ContainerServlet.java
@RequestMapping(value = { "/{pid}", "/{pid}/*" }, method = RequestMethod.DELETE) public void deleteContainer(HttpServletRequest req, HttpServletResponse resp) { try {/* w w w .jav a 2 s.c om*/ this.api.delete(req, resp); } catch (Exception e) { log.error("Failed to delete container " + req.getQueryString(), e); resp.setStatus(HttpStatus.SC_INTERNAL_SERVER_ERROR); } }
From source file:edu.mum.waa.webstore.controller.CartRestController.java
@RequestMapping(value = "/{cartId}", method = RequestMethod.DELETE) @ResponseStatus(value = HttpStatus.NO_CONTENT) public void delete(@PathVariable(value = "cartId") String cartId) { cartService.delete(cartId);/*from www.j ava 2s . co m*/ }