-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pagination documentation for stellar-rpc (#1363)
- Loading branch information
Showing
10 changed files
with
49 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 3 additions & 12 deletions
15
openrpc/src/stellar-rpc/contentDescriptors/Pagination.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
{ | ||
"EventsPagination": { | ||
"Pagination": { | ||
"name": "pagination", | ||
"summary": "pagination options", | ||
"description": "Pagination in stellar-rpc is similar to pagination in Horizon. See [Pagination](https://developers.stellar.org/docs/data/rpc/api-reference/pagination).", | ||
"description": "Pagination in stellar-rpc is similar to pagination in Horizon. See [Pagination](/docs/data/rpc/api-reference/structure/pagination).", | ||
"required": false, | ||
"schema": { | ||
"$ref": "#/components/schemas/EventsPagination" | ||
} | ||
}, | ||
"TransactionsPagination": { | ||
"name": "pagination", | ||
"summary": "pagination options", | ||
"description": "Pagination in RPC is similar to pagination in Horizon. See [Pagination](https://developers.stellar.org/docs/data/rpc/api-reference/pagination).", | ||
"required": false, | ||
"schema": { | ||
"$ref": "#/components/schemas/TransactionsPagination" | ||
"$ref": "#/components/schemas/Pagination" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,16 @@ | ||
{ | ||
"EventsPagination": { | ||
"Pagination": { | ||
"type": "object", | ||
"properties": { | ||
"cursor": { | ||
"$ref": "#/components/schemas/Cursor" | ||
"type": "string", | ||
"description": "An opaque string which acts as a paging token. To obtain the next page of results occurring after a given response set this value to the `cursor` field of the response." | ||
}, | ||
"limit": { | ||
"type": "number", | ||
"description": "The maximum number of records returned. The limit for getEvents can range from 1 to 10000 - an upper limit that is hardcoded in Stellar-RPC for performance reasons. If this argument isn't designated, it defaults to 100." | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"TransactionsPagination": { | ||
"type": "object", | ||
"properties": { | ||
"cursor": { | ||
"$ref": "#/components/schemas/Cursor" | ||
}, | ||
"limit": { | ||
"type": "number", | ||
"description": "The maximum number of records returned by the endpoint." | ||
} | ||
}, | ||
"required": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters