Added pagination support for generated REST endpoints