Application server based REST protocol