fix function documentation for rest gateway