39 Commits
Author SHA1 Message Date
Stevan Freeborn 40471e1ede chore: update workflow [skip ci] 2026-03-28 19:46:45 -05:00
Stevan Freeborn d197149d76 chore: update workflow [skip ci] 2026-03-28 19:28:35 -05:00
Stevan Freeborn 653d8228ba chore: update workflows v0.0.0 2026-03-26 17:43:09 -05:00
Stevan Freeborn 748db478e5 chore: update workflows 2026-03-26 17:39:39 -05:00
Stevan Freeborn cdfc818429 Merge pull request #9 from StevanFreeborn/stevanfreeborn/chore/setup-automated-publishing
chore: add workflows for releasing
2026-03-26 17:28:20 -05:00
Stevan Freeborn 9d187ae538 docs: add badges to readme 2026-03-26 17:27:17 -05:00
Stevan Freeborn dea7424d8d chore: add workflows for releasing 2026-03-26 17:23:17 -05:00
Stevan Freeborn 87175e1260 Merge pull request #8 from StevanFreeborn/stevanfreeborn/tests/add-integration-tests
tests: add integration tests
2026-03-26 17:01:37 -05:00
Stevan Freeborn d1f57f77a5 tests: add integration tests 2026-03-26 16:59:49 -05:00
Stevan Freeborn 6c5b225d97 Merge pull request #7 from StevanFreeborn/stevanfreeborn/feat/add-record-endpoints
feat: implement records endpoints
2026-03-26 15:27:43 -05:00
Stevan Freeborn 9cd555b69f feat: implement records endpoints 2026-03-26 15:25:25 -05:00
Stevan Freeborn a698caed96 Merge pull request #6 from StevanFreeborn/stevanfreeborn/feat/add-files-endpoints
feat: implement files endpoint
2026-03-26 12:56:15 -05:00
Stevan Freeborn cb02d545bd feat: implement files endpoint 2026-03-26 11:46:30 -05:00
Stevan Freeborn 8981971133 Merge pull request #5 from StevanFreeborn/stevanfreeborn/feat/add-reports-endpoints
feat: add reports endpoints
2026-03-26 11:04:11 -05:00
Stevan Freeborn d76761dad3 feat: implement report endpoints 2026-03-26 11:01:08 -05:00
Stevan Freeborn 96db9bce8c docs: update README.md with missing list endpoints examples 2026-03-26 10:48:01 -05:00
Stevan Freeborn e1065c57bc Merge pull request #4 from StevanFreeborn/stevanfreeborn/feat/add-lists-endpoints
feat: implement list endpoints
2026-03-26 10:44:05 -05:00
Stevan Freeborn 9bbff08f14 feat: implement list endpoints 2026-03-26 10:41:52 -05:00
Stevan Freeborn ce85b08fbc feat: implement field endpoints 2026-03-25 16:36:53 -05:00
Stevan Freeborn 0063830cfb Merge pull request #2 from StevanFreeborn/stevanfreeborn/feat/implement-apps-endpoints
feat: implement apps endpoints
2026-03-23 16:46:46 -05:00
Stevan Freeborn e032d0927c tests: fix errcheck violations 2026-03-23 16:45:57 -05:00
Stevan Freeborn bd3b84db32 tests: fix errcheck violations 2026-03-23 16:42:12 -05:00
Stevan Freeborn 23ab108dd5 chore: add git attributes file 2026-03-23 16:35:15 -05:00
Stevan Freeborn 2ee3506bb3 docs: add examples for apps endpoints to README.md 2026-03-23 16:31:08 -05:00
Stevan Freeborn a543de60db feat: add get by id method for apps endpoint 2026-03-23 16:30:52 -05:00
Stevan Freeborn 6361e41cf3 refactor: correct method names 2026-03-23 10:30:35 -05:00
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
Stevan Freeborn 1f6218416c feat: add Apps endpoint and query parameter support
- add `Apps` endpoint to the `Client` struct and initialize it in
`NewClient`
- implement `doWithJsonResponse` helper to handle request execution and
JSON decoding in one step
- update `newRequest` to support passing and encoding query parameters
via `net/url`
- rename `Option` to `ClientOption` for better clarity in the
`NewClient` signature
- refactor `Ping` tests to use a more structured nested layout
- remove `option.go` and `option_test.go` as part of the configuration
refactor
2026-01-15 16:38:47 -06:00
Stevan Freeborn 62426530bd Merge pull request #1 from StevanFreeborn/stevanfreeborn/feat/implement-ping-endpoint
feat: implement ping endpoint
2026-01-12 18:21:17 -06:00
Stevan Freeborn 60bb3954c5 chore: fix workflow file 2026-01-12 18:20:35 -06:00
Stevan Freeborn 08eb65c8ad fix: properly discard resp.Body.Close to avoid lint error 2026-01-12 18:18:57 -06:00
Stevan Freeborn 6e35c0a787 chore: fix workflow file 2026-01-12 18:15:38 -06:00
Stevan Freeborn 311acd4d26 docs: update README.md 2026-01-12 18:14:20 -06:00
Stevan Freeborn 54865ba64c tests: use proper context in test + add pull request workflow 2026-01-12 17:59:46 -06:00
Stevan Freeborn a9e49906e0 feat: initialize client core and ping endpoint
establishes the foundational architecture for the Onspring Go SDK.

changes included:
- add `Client` struct and `NewClient` constructor with authentication.
- implement functional options pattern (WithHTTPClient, WithBaseURL, etc.).
- add `OnspringAPIError` type for handling non-2xx responses.
- implement internal request construction and execution logic.
- add `Ping` service for API health check verification.
- add comprehensive unit tests and mock server infrastructure.
2025-12-05 21:33:23 -06:00
Stevan Freeborn 3098779596 chore: initial commit 2025-12-05 10:42:32 -06:00