Commit Graph
9 Commits
Author SHA1 Message Date
Stevan Freeborn 9cd555b69f feat: implement records endpoints 2026-03-26 15:25:25 -05:00
Stevan Freeborn cb02d545bd feat: implement files endpoint 2026-03-26 11:46:30 -05:00
Stevan Freeborn d76761dad3 feat: implement report endpoints 2026-03-26 11:01:08 -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 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 08eb65c8ad fix: properly discard resp.Body.Close to avoid lint error 2026-01-12 18:18:57 -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