コード例 #1
0
 @RequestMapping(value = "/verenekle/", method = RequestMethod.PUT)
 public ResponseEntity<AidatVerenEntity> setVerenEkle(
     @RequestBody AidatVerenEntity aidatVerenEntity) {
   aidatlarService.aidatVerenEkle(aidatVerenEntity);
   return new ResponseEntity<AidatVerenEntity>(HttpStatus.OK);
 }
コード例 #2
0
 @RequestMapping(value = "/update/", method = RequestMethod.PUT)
 public ResponseEntity<AidatlarEntity> update(@RequestBody AidatlarEntity aidatlar) {
   aidatlarService.update(aidatlar);
   return new ResponseEntity<AidatlarEntity>(aidatlar, HttpStatus.OK);
 }
コード例 #3
0
 @RequestMapping(value = "/getAll/", method = RequestMethod.GET)
 public ResponseEntity<List<AidatlarEntity>> getAll(@RequestParam String tableName) {
   return new ResponseEntity<List<AidatlarEntity>>(
       aidatlarService.getAll(tableName), HttpStatus.OK);
 }
コード例 #4
0
 @RequestMapping(value = "/getAidatlar/", method = RequestMethod.GET)
 public ResponseEntity<AidatlarEntity> getAidatlar(
     @RequestParam Integer aidatId, @RequestParam String tableName) {
   return new ResponseEntity<AidatlarEntity>(
       aidatlarService.getAidatlar(aidatId, tableName), HttpStatus.OK);
 }
コード例 #5
0
 @RequestMapping(value = "/delete/", method = RequestMethod.DELETE)
 public ResponseEntity<AidatlarEntity> delete(@RequestBody AidatlarEntity aidatlar) {
   aidatlarService.delete(aidatlar);
   return new ResponseEntity<AidatlarEntity>(aidatlar, HttpStatus.OK);
 }