import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/meeting")
public class MeetingSchedulerController {

    //Establish Database connection here



		@RequestMapping(value = "/{timeSlot}/employee/{ID}", method = RequestMethod.GET)
		public String employeeCheck(Employee employee,@PathVariable("timeSlot") Date timeSlot, @PathVariable("ID") int ID, ModelMap model) {
		String status ;
		//Check the availibility of Each Employee in meeting table and EmployeeMeeting table with particular Time Slots and EmployeeId
		
		//store the result of the Employee status in status variable.
		
		
			model.addAttribute("status", status);
			return "EmployeeStatus";
		}
		
		@RequestMapping(value = "/{timeSlot}/room/{ID}", method = RequestMethod.GET)
		public String roomCheck(Room room,@PathVariable("timeSlot")  Date timeSlot,@PathVariable("ID") int ID, ModelMap model) {
		String status;
		//Check the availibility of Room in meeting table  with particular Time Slot and room number.
		
            //store the status of Room availibility status in status variable
			model.addAttribute("status", status);
			return "RoomStatus";
		}
		
		@RequestMapping(value = "/schedule", method = RequestMethod.POST)
		public String schedulemeeting(Meeting meeting,Employee employee,Room room,ModelMap model) {
			//Parse the JSON from the body of the post
			//get the timeslot,Employee ID's and Room number to schedule a meeting
			//Before scheduling a meeting check the availibility of Room and Employees
				//Book a time slot .create a new row in meeting table and EmployeeMeetingwith meeting id.
		
		
			model.addAttribute("status", meeting.msg.success);
			return "Resource created";
		}
		
		
		
		
		
	}

@@ -1407,16 +1407,25 @@
 lue = %22/
+employee/
 schedule
@@ -1825,16 +1825,17 @@
 eMeeting
+ 
 with mee
@@ -1936,24 +1936,1125 @@
 ed%22;%0A%09%09%7D%0A%09%09%0A
+%09%09@RequestMapping(value = %22/%7BtimeSlot%7D/team/%7BID%7D%22, method = RequestMethod.GET)%0A%09%09public String teamCheck(Team team,@PathVariable(%22timeSlot%22) Date timeSlot, @PathVariable(%22ID%22) int ID, ModelMap model) %7B%0A%09%09String status ;%0A%09%09//Check the availibility of Entire team from team table and meeting table%0A%09%09%0A%09%09//store the result of the team availibility status in status variable.%0A%09%09%0A%09%09%0A%09%09%09model.addAttribute(%22status%22, status);%0A%09%09%09return %22TeamStatus%22;%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%09@RequestMapping(value = %22/team/schedule%22, method = RequestMethod.POST)%0A%09%09public String teamCheck(Team team,@PathVariable(%22timeSlot%22) Date timeSlot, @PathVariable(%22ID%22) int ID, ModelMap model) %7B%0A%09%09String status ;%0A%09%09//Parse the JSON from the body of the post%0A%09%09%09//get the timeslot,team ID,Employee ID's and Room number to schedule a meeting%0A%09%09%09//Before scheduling a meeting check the availibility of all the Employees in the team and also check availibility of Room %0A%09%09%09//Book a time slot .create a new row in meeting table and EmployeeMeeting with meeting id.%0A%09%09%0A%09%09%09model.addAttribute(%22status%22, status);%0A%09%09%09return %22Resource created%22;%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%09%0A
 %09%09%0A%09%09%0A%09%09%0A%09%09%0A

Update MeetingSchedulerController.java