groovy rest service