RestController to manage ajax calls to send smses