Skip to content

feat(commerce): added CommerceListingsPagination and genArgsPagination for pagination handling#8

Open
zombozo12 wants to merge 1 commit into
MrGunflame:masterfrom
zombozo12:master
Open

feat(commerce): added CommerceListingsPagination and genArgsPagination for pagination handling#8
zombozo12 wants to merge 1 commit into
MrGunflame:masterfrom
zombozo12:master

Conversation

@zombozo12
Copy link
Copy Markdown

@zombozo12 zombozo12 commented May 4, 2026

Added CommerceListingsPagination and genArgsPagination for pagination handling. CommerceListingsPagination is a separated function because we cannot combine ids query with page & pageSize queries, it will ignore pagination and returns list of listing items.

Examples

/api/commerce/listings?ids=1,2,3&page=0&pageSize=1

Expected:
Returns 1 item each page

Got:
List of 1,2, and 3 item listings, pagination ignored.

Thus, the function is separated due to Guild Wars 2 API not supporting combining ids and pagination.

@zombozo12 zombozo12 changed the title feat(commerce): added CommerceListingsPagination and genArgsPaginatinn for pagination handling feat(commerce): added CommerceListingsPagination and genArgsPagination for pagination handling May 4, 2026
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.

1 participant