RestFul groovy for user add and chat Api