Skip to content

feat(comments): add flat, paginated comments endpoint#111

Open
zorkary wants to merge 1 commit intomoltbook:mainfrom
zorkary:comments-flat-pagination
Open

feat(comments): add flat, paginated comments endpoint#111
zorkary wants to merge 1 commit intomoltbook:mainfrom
zorkary:comments-flat-pagination

Conversation

@zorkary
Copy link

@zorkary zorkary commented Feb 6, 2026

Adds GET /posts/:id/comments/flat to export a post's comments as a flat list with limit/offset pagination.

  • Additive: no changes to existing endpoints.
  • Uses existing paginated() response helper and offset pagination conventions.
  • Adds an index on comments(post_id, created_at DESC, id DESC) for performant ordering.

Fixes #87.

@zorkary zorkary changed the title Add flat paginated comments endpoint feat(comments): add flat, paginated comments endpoint Feb 6, 2026
@zorkary zorkary marked this pull request as ready for review February 6, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Expose a paginated method to fetch all comments on a post

1 participant