Skip to content

Fix API Explorer dropping query parameters on proxied requests#44

Merged
reverentgeek merged 1 commit intomainfrom
dn-fix-api-explorer-query-params
Feb 26, 2026
Merged

Fix API Explorer dropping query parameters on proxied requests#44
reverentgeek merged 1 commit intomainfrom
dn-fix-api-explorer-query-params

Conversation

@reverentgeek
Copy link
Collaborator

Summary

  • The /api-call proxy handler was stripping query strings (e.g. ?limit=3&offset=0) from the endpoint URL before forwarding to the API server
  • This caused pagination parameters like limit and offset to be silently ignored — the API always returned all results using the default limit of 100
  • The validation schema already strips query params for allow-list matching, so removing them again at fetch time was redundant and broke pagination

Test plan

  • Start the dev server (pnpm dev)
  • Open the API Explorer at https://app.localtest.me/api-explorer
  • Select the "List Accounts" endpoint and set limit to 3
  • Verify only 3 accounts are returned in the response
  • Verify other endpoints with query params (e.g. transactions with startTime/endTime) also work correctly

🤖 Generated with Claude Code

The /api-call proxy handler was stripping query strings from the
endpoint URL before forwarding to the API server, causing pagination
parameters like limit and offset to be silently ignored. The validation
schema already handles stripping query params for allow-list matching,
so removing them again at fetch time was both redundant and broken.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@reverentgeek reverentgeek merged commit 5e7122d into main Feb 26, 2026
3 checks passed
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