import groovyx.net.http.RESTClient
def uri = "my_DB/_design/event/_view/last"
def query = [reduce:true, group:true]
path : uri
,contentType : "application/json" //when I run without this line, the error does not occur => out: 200
,query : query)
println response.status