@@ -0,0 +1,839 @@
+package asa.controller;%0A%0Aimport asa.bean.Appointment;%0Aimport asa.service.AppointmentService;%0Aimport org.springframework.web.bind.annotation.*;%0Aimport org.springframework.http.MediaType;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport java.util.*;%0A%0A@RestController%0A@RequestMapping(%22/appt%22)%0Apublic class AppointmentController %7B%0A%0A%09@Autowired%0A%09private AppointmentService appointmentService;%0A%09%0A%09@RequestMapping(method = RequestMethod.GET)%0A%09public void view()%7B%0A%09%09System.out.println(%22Inside AppointmentController%22);%0A%09%7D%0A%09%0A    @RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)%0A    public @ResponseBody Map%3CString,String%3E add(@RequestBody Appointment appointment)%7B%0A        %0A%09%09  Map%3CString,String%3E map=new HashMap%3C%3E();%0A%09%09  %0A      map.put(%22result%22,%22success%22);%0A%09%09  return map;%0A    %7D%0A%09%0A%09%0A%0A%7D%0A

Create AppointmentController.java