List of usage examples for org.springframework.web.bind.annotation RequestMethod PUT
RequestMethod PUT
To view the source code for org.springframework.web.bind.annotation RequestMethod PUT.
Click Source Link
From source file:com.promeets.controller.rest.MeetInfoController.java
@RequestMapping(value = "/{id}", method = RequestMethod.PUT) private UserMeetInfo update(@RequestBody UserMeetInfo meetInfo, @PathVariable("id") Long meetId) { return meetInfoService.update(meetInfo); }
From source file:net.paslavsky.springrest.TestClient1.java
@RequestMapping(value = "/test1", method = RequestMethod.PUT) void test1(@RequestBody String message);
From source file:com.escarabajo.controllers.LancheController.java
@RequestMapping(method = { RequestMethod.POST, RequestMethod.PUT }) public Lanche save(Lanche lanche) { return service.save(lanche); }
From source file:com.cemeterylistingsweb.presentation.rest.AdminRegisterListingController.java
@RequestMapping(value = "update", method = RequestMethod.PUT) //This the uri e.g http://localhost:8084/askweb/api/club/update @ResponseBody/* w ww . j a v a 2s . co m*/ public String update(@RequestBody PublishedDeceasedListing pdl) { aupls.updatePublishedlisting(pdl); System.out.println(" Update Called "); return "listing updated"; }
From source file:com.xinferin.controller.CustomerController.java
@RequestMapping(value = "/{customerId}", method = RequestMethod.PUT, consumes = "application/json") @ResponseStatus(HttpStatus.OK)//from ww w .ja va 2 s. c om public void editCustomer(@PathVariable int customerId, @RequestBody Customer customer) { customer.setId(customerId); daoCustomer.edit(customer); }
From source file:com.escarabajo.controllers.CardapioController.java
@RequestMapping(method = { RequestMethod.POST, RequestMethod.PUT }) public Cardapio save(Cardapio cardapio) { return service.save(cardapio); }
From source file:net.paslavsky.springrest.TestClient2.java
@RequestMapping(value = "/test8", method = RequestMethod.PUT) void test8();
From source file:com.hp.autonomy.frontend.find.core.configuration.ValidationController.java
@RequestMapping(value = "/config-validation", method = { RequestMethod.POST, RequestMethod.PUT }) @ResponseBody//from w ww. jav a2s . c o m public ValidationResults validConfig(@RequestBody final C config) { return validationService.validateConfig(config); }
From source file:programacaovi.todo.ItemController.java
@RequestMapping(value = "/{id}", method = RequestMethod.PUT) public Item updateItem(@RequestBody Item updatedItem, @PathVariable Integer id) { updatedItem.setId(id);/* www . ja va2 s . c o m*/ return repo.saveAndFlush(updatedItem); }
From source file:org.obiba.rserver.rest.RServerController.java
@RequestMapping(method = RequestMethod.PUT) @ResponseBody/*from w ww . jav a2 s . c o m*/ public RServerState start() { if (!rServerService.isRunning()) { rServerService.start(); } return rServerService; }