// create a guest and an itinary first // then try // http://localhost:8080/staff/occupancy?guestId=1&itinaryId=1&roomId=3&checkinDate=2015-11-22&checkoutDate=2015-11-24 @RequestMapping(value = "/staff/occupancy", method = RequestMethod.POST) public @ResponseBody ResponseEntity<?> createOcc(@RequestBody Occupancy occ) { // return new ResponseEntity<>(occupancyservice.createOccupancy(guestId,itiId,roomId,num, // inDate,outDate), HttpStatus.OK);} return new ResponseEntity<>(occupancyservice.createOccupancy(occ), HttpStatus.OK); }