package in.gov.chennaicorporation.gccoffice.callcenter.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import in.gov.chennaicorporation.gccoffice.callcenter.service.WhatsappMsgService; @RestController @RequestMapping("/gcc/api/whatsapp") public class WhatsappController { @Autowired private WhatsappMsgService whatsappMsgService; @PostMapping("/send-whatsapp-message") public ResponseEntity sendWhatsAppMessage(@RequestParam String msgUrl) { String response = whatsappMsgService.sendMsg(msgUrl); return ResponseEntity.ok(response); } }