Skip to content

Commit

Permalink
chore: add documentation for paging caveats (#422)
Browse files Browse the repository at this point in the history
`store/list` and `upload/list` both accept paging parameters - document
them.
  • Loading branch information
travis authored Feb 7, 2023
1 parent 5cfe274 commit a68afd2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions spec/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ The `with` field of the invocation must be set to the DID of the memory space to

#### Caveats

None currently, but this is expected to change once pagination is fully implemented.
`cursor` can be set to start listing from an item in the middle of the list. Its value should be a `cursor` returned by a previous invocation of `store/list`
`size` can be set to change the number of items returned by an `store/list` invocation

| field | value | required? | context |
| ----------- | ------------------------ | --------- | --------------------------------------------------------------- |
| `nb.cursor` | string || A cursor returned by a previous invocation |
| `nb.size` | integer || The maximum number of results to return |

## `upload/` namespace

Expand Down Expand Up @@ -278,7 +284,13 @@ The `with` field of the invocation must be set to the DID of the memory space to

#### Caveats

None currently, but this is expected to change once pagination is fully implemented.
`cursor` can be set to start listing from an item in the middle of the list. Its value should be a `cursor` returned by a previous invocation of `upload/list`
`size` can be set to change the number of items returned by an `upload/list` invocation

| field | value | required? | context |
| ----------- | ------------------------ | --------- | --------------------------------------------------------------- |
| `nb.cursor` | string || A cursor returned by a previous invocation |
| `nb.size` | integer || The maximum number of results to return |

## `voucher/` namespace

Expand Down

0 comments on commit a68afd2

Please sign in to comment.