kanboard-api is a type-safe, idiomatic Go client library for the Kanboard (https://kanboard.org) API.
Find a file
Oliver Jakoubek a486a73ce1 Implement JSON-RPC client foundation
Add core JSON-RPC 2.0 protocol implementation for Kanboard API:

- JSONRPCRequest/Response/Error structs with proper JSON tags
- Generic call() method for sending requests and parsing responses
- Thread-safe request ID generation using atomic.Int64
- Automatic /jsonrpc.php path appending to baseURL
- Support for subdirectory installations
- HTTP Basic Auth support (API token and username/password)
- Error handling for unauthorized/forbidden responses

Includes comprehensive tests with httptest mock server.

Closes: kanboard-api-2g1
2026-01-15 18:10:35 +01:00
.beads Implement JSON-RPC client foundation 2026-01-15 18:10:35 +01:00
.gitattributes Initial commit 2026-01-15 17:48:46 +01:00
.gitignore Initial commit 2026-01-15 17:48:46 +01:00
AGENTS.md Initial commit 2026-01-15 17:48:46 +01:00
auth.go Implement JSON-RPC client foundation 2026-01-15 18:10:35 +01:00
client.go Implement JSON-RPC client foundation 2026-01-15 18:10:35 +01:00
errors.go Implement JSON-RPC client foundation 2026-01-15 18:10:35 +01:00
go.mod Initial commit 2026-01-15 17:48:46 +01:00
jsonrpc.go Implement JSON-RPC client foundation 2026-01-15 18:10:35 +01:00
jsonrpc_test.go Implement JSON-RPC client foundation 2026-01-15 18:10:35 +01:00