aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

Add cursor support to `/accounts/<addr>/resources`

Open banool opened this issue 2 years ago • 0 comments

Description

This PR makes /accounts/<addr>/resources return the cursor in the header. This is the easiest way to mitigate this issue quickly in a backwards compatible way.

Test Plan

Run a local testnet:

cargo run -p aptos -- node run-local-testnet --force-restart --assume-yes --with-faucet

Get account resources with a limit:

curl 'http://127.0.0.1:8080/v1/accounts/0x1/resources?limit=1'

This change is Reviewable

banool avatar Oct 26 '22 22:10 banool