Commit graph

13 commits

Author SHA1 Message Date
43b8aac9a5 feat(bookstack-api-q8z): add unit tests for data types JSON unmarshaling
Verify Book, Page, and SearchResult correctly unmarshal from Bookstack
API JSON format including time.Time parsing.
2026-01-30 09:49:03 +01:00
9478a9d36e feat(bookstack-api-vl3): add unit tests for error types and APIError
Test APIError.Error() formatting, status code to sentinel error mapping
via Is(), and error matching through fmt.Errorf wrapping.
2026-01-30 09:48:32 +01:00
4875540f21 feat(bookstack-api-8ea): implement HTTP helper and request building
Implement do() method on Client with auth header, JSON marshaling,
error parsing into APIError, and context support. Add httptest-based
unit tests.
2026-01-30 09:48:01 +01:00
8223a37f53 Sync beads export state 2026-01-30 09:45:40 +01:00
b015f450c5 Add validation and error handling to NewClient
- NewClient now returns (*Client, error) instead of *Client
- Validate that BaseURL, TokenID, and TokenSecret are non-empty
- Strip trailing slash from BaseURL
- Add comprehensive unit tests for NewClient
2026-01-30 09:45:35 +01:00
342614b614 Sync beads export state 2026-01-30 09:39:25 +01:00
7db143aff8 Update beads export state metadata 2026-01-30 09:39:14 +01:00
886369df69 Sync beads final state 2026-01-30 09:39:01 +01:00
efb43f03d1 Final beads state sync 2026-01-30 09:38:54 +01:00
d1ac466b4c Update beads export state 2026-01-30 09:38:46 +01:00
9f613b1901 Add project documentation and beads configuration
- Added CLAUDE.md with project overview and architecture details
- Added PRD.md with product requirements
- Added AGENTS.md for agent workflow documentation
- Initialized beads issue tracking system
- Added .gitattributes for Git configuration
2026-01-30 09:38:32 +01:00
62e299192d Set up Go module and project structure
- Populated .gitignore with Go-specific patterns
- Created placeholder Go files with basic package structure:
  - bookstack.go: Client and Config setup
  - types.go: Data structures (Book, Page, Chapter, Shelf, SearchResult)
  - errors.go: Error handling types with sentinel errors
  - http.go: HTTP helper placeholder with ListOptions
  - books.go, pages.go, chapters.go, shelves.go, search.go: Service placeholders
- Verified build succeeds with go build ./...
- No external dependencies added (stdlib only)

All files compile successfully and follow flat package structure.
2026-01-30 09:36:58 +01:00
a6adae98dd Initial commit 2026-01-28 09:35:55 +01:00