Skip to content

feat(api): add pagination page for v3 api#1869

Open
laviniat1996 wants to merge 3 commits intomainfrom
v3-pagination
Open

feat(api): add pagination page for v3 api#1869
laviniat1996 wants to merge 3 commits intomainfrom
v3-pagination

Conversation

@laviniat1996
Copy link
Collaborator

closes #1043

This PR adds a new page which contains in-depth details about how API v3 pagination works.

@laviniat1996 laviniat1996 self-assigned this Feb 19, 2026
@laviniat1996 laviniat1996 added the scope: api OpenAPI specs and relevant sub-directories in the /ecosystem/api/toncenter folder label Feb 19, 2026
@github-actions

This comment has been minimized.

@laviniat1996
Copy link
Collaborator Author

/review

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clear pagination docs in ecosystem/api/toncenter/v3-pagination.mdx: I’ve left one inline suggestion to keep the JSON examples syntactically valid and easy to reuse. Please apply the inline suggestion.

"now": 1771226782
}
],
"address_book": { ... }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] JSON examples use invalid ellipsis

In the first “Response (abbreviated)” JSON example, the line at L85 uses "address_book": { ... } inside a json code block, which is not valid JSON and cannot be parsed or copy‑pasted safely. This violates the style rule against literal ellipses that change code syntax while hiding content, and can mislead readers about what constitutes valid JSON. The same non‑syntactic ellipsis pattern appears in subsequent examples on this page (e.g., the next page response around L125 and the sort=asc example around L235), so the issue repeats across multiple snippets. Per the extended style guide on comments and omissions (https://github.com/ton-org/docs/blob/main/contribute/style-guide-extended.mdx?plain=1#L627-L632), examples should remain syntactically correct even when abbreviated.

Suggested change
"address_book": { ... }
"address_book": {}

Please leave a reaction 👍/👎 to this suggestion to improve future reviews for everyone!

@reveloper reveloper marked this pull request as ready for review March 6, 2026 06:38
@reveloper reveloper requested a review from aigerimu March 6, 2026 06:40
Copy link
Collaborator

@reveloper reveloper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pagination docs update; I’ve left a couple of suggestions in ecosystem/api/toncenter/v3-pagination.mdx—please apply the inline suggestions to tidy up the table formatting and JSON examples.

Comment on lines +12 to +13
| Endpoint | Default limit | Max limit | Sortable |
| --------------------------------------------------------------------------------------------------------------------- | :-----------: | :-------: | :------: |
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] Numeric columns in pagination table are not right-aligned

The pagination endpoints table defines Default limit, Max limit, and Sortable columns whose values are numeric or boolean-like, but the alignment row centers these columns (:-----------:, :-------:, :------:). This makes it harder to scan and compare numbers vertically and conflicts with the style guidance that numeric columns should be right-aligned. Correcting the alignment improves readability and consistency across documentation tables.

Suggested change
| Endpoint | Default limit | Max limit | Sortable |
| --------------------------------------------------------------------------------------------------------------------- | :-----------: | :-------: | :------: |
| Endpoint | Default limit | Max limit | Sortable |
| --------------------------------------------------------------------------------------------------------------------- | -----------: | -------: | ------: |

Please leave a reaction 👍/👎 to this suggestion to improve future reviews for everyone!

"now": 1771226782
}
],
"address_book": { ... }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] JSON responses use literal ellipses that break syntax

The JSON example at L85 uses "address_book": { ... }, which is not valid JSON and will fail if copied into tools, tests, or scripts. The same invalid ellipsis pattern is repeated in the later JSON examples at L125 and L235 in the same file, so all three response blocks are non–copy-pasteable. The extended style guide (see https://github.com/ton-org/docs/blob/main/contribute/style-guide-extended.mdx?plain=1#L620-L633) forbids ellipses that change code syntax and requires examples to be executable as written, making this a HIGH-severity documentation defect. Keeping these examples syntactically valid reduces friction and prevents readers from silently adopting broken payloads.

Suggested change
"address_book": { ... }
"address_book": {}

Please leave a reaction 👍/👎 to this suggestion to improve future reviews for everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: api OpenAPI specs and relevant sub-directories in the /ecosystem/api/toncenter folder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TON Center > API/v3 > Pagination]

3 participants