How to consume an API in a grails application
Assuming all the configuration are there for rest client builder, you would end up with 2 lines of code consuming the service as:
//controller/service/POGO
def resp = rest.get("http://localhost:8888/colors?colorname=red&shade=dark")
resp.json //would give the response JSON
where
//resources.groovy
beans = {
rest(grails.plugins.rest.client.RestBuilder)
}