connecting client to rest api grails