Commit Graph
4 Commits
Author SHA1 Message Date
Stevan Freeborn 02351d89db feat: finish implementing GetAll and GetBatch for apps endpoint 2026-03-23 10:15:12 -05:00
Stevan Freeborn c00998eed6 docs: add documentation comments for apps and paging types
- add doc comments to `AppsEndpoint`, `App` struct, and the `Get` method
in `apps.go`.
- add doc comments to the `Page` struct in `page.go`.
- add doc comments to `PagingRequest`, `PagingOption`, and paging helper
functions in `pagingRequest.go`.
2026-01-15 17:10:41 -06:00
Stevan Freeborn 126b027a81 fix: correct paging parameter logic and add paging options
- fix bug where `pageNumber` and `pageSize` were swapped during default
initialization in `apps.go`.
- fix bug in `pagingRequest.go` where `ToParams` mapped keys to the
incorrect struct fields.
- add `ForPageNumber` and `WithPageSize` functional options to allow
custom paging configuration.
- enhance `Apps` endpoint tests to verify that `pageNumber` and
`pageSize` query parameters are correctly passed to the API.
- add test case for verifying non-default paging options.
2026-01-15 17:03:59 -06:00
Stevan Freeborn bfa1b06a83 refactor: remove paging types from apps endpoint
- remove `PagingRequest`, `PagingOption`, and `Page` struct from
`apps.go`
- remove unused `strconv` import
2026-01-15 16:46:37 -06:00