fix: Resource collection path for List/ListAll/Iter #5

Merged
Virgil merged 1 commit from dev into main 2026-03-22 14:01:40 +00:00

1 commit

Author SHA1 Message Date
Snider
c7c279fc17 fix: Resource.List/ListAll/Iter use collection path, not item path
All checks were successful
Security Scan / security (push) Successful in 8s
Test / test (push) Successful in 44s
Security Scan / security (pull_request) Successful in 8s
Test / test (pull_request) Successful in 46s
The Resource path like /repos/{owner}/{repo}/issues/{index} is the
item path. List operations need the collection path (without the
trailing /{placeholder}). Fixed by deriving the collection path at
construction time — only strips the last segment if it's a pure
placeholder like /{index}, not mixed segments like /repos.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 14:01:14 +00:00