Skip to content

Architecture: Pagination Support #16

@CodeKeanu

Description

@CodeKeanu

Ask

Add pagination parameters to endpoints that currently truncate results, allowing users to retrieve complete data sets.

Technical Description

Several endpoints cap results (friends: 50, achievements: 30). Add limit/offset parameters.

Endpoints to Update

  1. get_friend_list

    • Current: Max 50 friends displayed
    • Add: limit (default: 50), offset (default: 0)
  2. get_player_achievements

    • Current: Max 30 per section
    • Add: limit, offset
  3. get_owned_games

    • Current: Shows all but could be large
    • Add: limit for response size control
  4. get_wishlist

    • Current: Fetches all pages
    • Add: limit to cap response

Implementation

  • Add parameters to @endpoint decorator
  • Slice results after fetching (API doesn't always support pagination)
  • Include total count in output for UI hints

Acceptance Criteria

  • limit and offset on truncated endpoints
  • Total count included in responses
  • Default behavior unchanged
  • Documentation updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions