add server api to expose REST functionality useful for custom server