Fixed REST API on client side.