简体   繁体   中英

How to send large json data as response in Python rest API?

Sending the last amount of data as API response can create problems sometimes. So I want to send data in parts. Ex: I have 450 rows of data then I want to send response in 5 parts

  1. Part 1 = Row 1- 100
  2. Part 2 = Row 101- 200
  3. Part 3 = Row 201- 300
  4. Part 4 = Row 301- 400
  5. Part 5 = Row 400- 450

Sending the last amount of data as API response can create problems sometimes. So I want to send data in parts. Ex: I have 450 rows of data then I want to send response in 5 parts

  1. Part 1 = Row 1- 100
  2. Part 2 = Row 101- 200
  3. Part 3 = Row 201- 300
  4. Part 4 = Row 301- 400
  5. Part 5 = Row 400- 450

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM