def test_get_list_page(self):
        """
        REST Api: Test get list page params
        """
        page_size = 5
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        # test page zero
        arguments = {
            "page_size": page_size,
            "page": 0,
            "order_column": "field_integer",
            "order_direction": "asc",
        }
        uri = f"api/v1/model1api/?{API_URI_RIS_KEY}={prison.dumps(arguments)}"
        with model1_data(self.appbuilder.session, MODEL1_DATA_SIZE):
            rv = self.auth_client_get(client, token, uri)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(
                data[API_RESULT_RES_KEY][0],
                {
                    "field_date": None,
                    "field_float": 0.0,
                    "field_integer": 0,
                    "field_string": "test0",
                },
            )
            self.assertEqual(rv.status_code, 200)
            self.assertEqual(len(data[API_RESULT_RES_KEY]), page_size)
            # test page one
            arguments = {
                "page_size": page_size,
                "page": 1,
                "order_column": "field_integer",
                "order_direction": "asc",
            }
            uri = f"api/v1/model1api/?{API_URI_RIS_KEY}={prison.dumps(arguments)}"
            rv = self.auth_client_get(client, token, uri)

            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(
                data[API_RESULT_RES_KEY][0],
                {
                    "field_date": None,
                    "field_float": float(page_size),
                    "field_integer": page_size,
                    "field_string": "test{}".format(page_size),
                },
            )
            self.assertEqual(rv.status_code, 200)
            self.assertEqual(len(data[API_RESULT_RES_KEY]), page_size)

            # test simple page test, mainly because of MSSQL dialect
            arguments = {"page_size": page_size, "page": 1}
            uri = f"api/v1/model1api/?{API_URI_RIS_KEY}={prison.dumps(arguments)}"
            rv = self.auth_client_get(client, token, uri)
            self.assertEqual(rv.status_code, 200)

        REST Api: Test get list page params
        
tests/test_api.py