RTradeLtd / Temporal

☄️ Temporal is an easy-to-use, enterprise-grade interface into distributed and decentralized storage
https://temporal.cloud
MIT License
227 stars 40 forks source link

Enable Paginated Responses For Large Payload Calls #437

Closed bonedaddy closed 4 years ago

bonedaddy commented 4 years ago

:construction_worker: Purpose

Closes https://github.com/RTradeLtd/Temporal/issues/433

:rocket: Changes

The following calls now optional return paginated responses:

You can invoke paginated responses using ?paged=true url parameter. Additionally there are two "optional" parameters to control the response:

:warning: Breaking Changes

None this is backwards compatible. Note however this is an "experimental" feature, and the api is subject to change until finalized. That means although we probably wont change the paged, page and limit url params, it's possible.

codecov[bot] commented 4 years ago

Codecov Report

Merging #437 into master will decrease coverage by 0.54%. The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #437      +/-   ##
=========================================
- Coverage   53.14%   52.6%   -0.53%     
=========================================
  Files          43      43              
  Lines        4152    4194      +42     
=========================================
  Hits         2206    2206              
- Misses       1457    1495      +38     
- Partials      489     493       +4
Impacted Files Coverage Δ
api/v2/routes_frontend.go 34.93% <0%> (-1.74%) :arrow_down:
api/v2/routes_database.go 31.43% <0%> (-10.87%) :arrow_down:
api/v2/utils.go 50.7% <0%> (-11.69%) :arrow_down:
api/v2/routes_ipns.go 44.63% <0%> (-1.13%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f470504...44e1502. Read the comment docs.