Commit Graph
7 Commits
Author SHA1 Message Date
github-actions[bot] 09f77e1fee chore(release): v0.0.1 2026-03-26 02:01:47 +00:00
Stevan Freeborn df648d924e chore: setup project info in cargo.toml and update links in README.md 2026-03-25 20:39:57 -05:00
Stevan Freeborn f30ad7dd97 tests: fix flaky tests 2026-03-25 20:14:24 -05:00
Stevan Freeborn 9a5e00c560 fix: load .env file in integration tests and examples
Add dotenvy to dev-dependencies and call dotenvy::dotenv().ok() in
the integration test common module and all examples so env vars can
be loaded from a .env file.
2026-03-25 19:06:25 -05:00
Stevan Freeborn a517aef3bd feat: add integration tests and runnable examples
Add 91 integration tests (all #[ignore]) mirroring the JavaScript SDK's
integration test suite. Tests cover all endpoints: ping, apps, fields,
records, files, lists, and reports with success, auth, access, and
not-found scenarios.

Add 7 runnable examples (cargo run --example <name>) for quick manual
smoke testing against a real Onspring instance.

Both use env vars (API_BASE_URL, SANDBOX_API_KEY, TEST_*) matching the
JavaScript SDK setup.

Also rename crate to onspring-api-sdk-rust with [lib] name = "onspring"
so imports remain `use onspring::*`.
2026-03-25 18:57:45 -05:00
Stevan Freeborn b4813dfd07 chore: fix things up 2026-03-25 14:01:11 -05:00
Stevan Freeborn 7f2209af1c feat: add project scaffold with core client, error types, and models
Set up Cargo.toml with dependencies (reqwest, serde, thiserror, tokio,
uuid, chrono). Implement OnspringClient with builder pattern and HTTP
helper methods. Define error types, enums, and paging models.
2026-03-25 13:34:02 -05:00