@RequestMapping(value = "/verenekle/", method = RequestMethod.PUT) public ResponseEntity<AidatVerenEntity> setVerenEkle( @RequestBody AidatVerenEntity aidatVerenEntity) { aidatlarService.aidatVerenEkle(aidatVerenEntity); return new ResponseEntity<AidatVerenEntity>(HttpStatus.OK); }
@RequestMapping(value = "/update/", method = RequestMethod.PUT) public ResponseEntity<AidatlarEntity> update(@RequestBody AidatlarEntity aidatlar) { aidatlarService.update(aidatlar); return new ResponseEntity<AidatlarEntity>(aidatlar, HttpStatus.OK); }
@RequestMapping(value = "/getAll/", method = RequestMethod.GET) public ResponseEntity<List<AidatlarEntity>> getAll(@RequestParam String tableName) { return new ResponseEntity<List<AidatlarEntity>>( aidatlarService.getAll(tableName), HttpStatus.OK); }
@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); }
@RequestMapping(value = "/delete/", method = RequestMethod.DELETE) public ResponseEntity<AidatlarEntity> delete(@RequestBody AidatlarEntity aidatlar) { aidatlarService.delete(aidatlar); return new ResponseEntity<AidatlarEntity>(aidatlar, HttpStatus.OK); }