new api server with groovy scripting engine