xiaofan2022 commented on PR #5561:
URL: https://github.com/apache/seatunnel/pull/5561#issuecomment-1761016357

   > > Is it to eliminate the 'max_page_size' configuration and use 
'json_verify_expression' + 'json_verify_value' + 'batch_size' to achieve 
pagination when there is no 'total page' field?
   > 
   > I think use batch_size(or call page_size)/page_field/page_size_field is 
already enough. eg:
   > 
   > ```hocon
   > {
   >   page_size = 100
   >   page_field = page
   >   page_size_field = page_size
   > }
   > http://localhost:8080/people?page=1&page_size = 100
   > http://localhost:8080/people?page=2&page_size = 100
   > ```
   > 
   > So we don't need to parse json response body to check value.
   
   If the returned JSON structure is as follows, what should be done?
   ```
   {
           "status": null,
           "msg": null,
           "data": [。。。 ],
           "currentPageIndex": 1,
           "hasNext": true,
            "currentPageNum":10
    }
   ```
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to