Commit graph

30 commits

Author SHA1 Message Date
abcbc6aa0b Added badges to README 2026-01-30 12:30:38 +01:00
6c050e2802 Updated REAMDE, added LICENSE 2026-01-30 10:04:58 +01:00
ce38e8b313 Sync beads export state 2026-01-30 09:57:38 +01:00
453011b002 feat(bookstack-api-bu8): add GoDoc documentation for all public APIs
Add package-level documentation with usage example. All exported types,
functions, and variables already have proper doc comments.
2026-01-30 09:57:28 +01:00
5185222577 feat(bookstack-api-02m): create example code in examples/ directory
Add three example programs: basic (list books, get page), search
(full-text search with CLI args), and export (markdown/PDF export).
2026-01-30 09:56:59 +01:00
e633fc2764 feat(bookstack-api-1us): write README with quick-start guide
Add comprehensive README with installation, authentication, usage
examples for all services, error handling, and available services table.
2026-01-30 09:56:19 +01:00
0a1cd5ef38 feat(bookstack-api-7qx): implement Comments CRUD
Add CommentsService with List, Get, Create, Update, Delete.
Support nested comments via parent_id. Register service on Client.
Add types and tests.
2026-01-30 09:55:44 +01:00
256361e90b feat(bookstack-api-5gi): implement Attachments CRUD
Add AttachmentsService with List, Get, Create, Update, Delete.
Support link attachments via JSON. Add Attachment type and request
types. Register service on Client. Add tests.
2026-01-30 09:55:02 +01:00
04cf1565fa feat(bookstack-api-9at): implement Pages Delete
Add Delete() to PagesService with tests for success, 404, and 403.
2026-01-30 09:54:09 +01:00
970699afe2 feat(bookstack-api-d2c): implement Pages Create and Update
Add PageCreateRequest and PageUpdateRequest types. Implement Create()
and Update() on PagesService with proper error handling. Add tests
including bad request validation.
2026-01-30 09:53:44 +01:00
13a952355e feat(bookstack-api-42g): implement ShelvesService List, Get, ListAll
Implement ShelvesService with List, Get, and ListAll iterator.
Add mock server tests.
2026-01-30 09:53:06 +01:00
ac29420b5f feat(bookstack-api-dd0): implement ChaptersService List, Get, ListAll
Implement ChaptersService with List, Get, and ListAll iterator.
Add mock server tests.
2026-01-30 09:52:38 +01:00
f2747adcaf feat(bookstack-api-jt9): implement pages export (Markdown, PDF)
Add doRaw() for non-JSON responses. Implement ExportMarkdown() and
ExportPDF() on PagesService returning raw bytes. Add tests.
2026-01-30 09:52:10 +01:00
6944d50512 feat(bookstack-api-m6n): implement pagination iterator with iter.Seq2
Add generic listAll helper using Go 1.23+ iter.Seq2 for memory-efficient
pagination. Implement ListAll() on BooksService and PagesService.
Tests cover multi-page iteration, early break, errors, and empty results.
2026-01-30 09:51:35 +01:00
1a26e9035a feat(bookstack-api-2x5): implement SearchService
Implement full-text search across all Bookstack content types with
pagination support via ListOptions. Add mock server tests.
2026-01-30 09:50:44 +01:00
5107bb8a84 feat(bookstack-api-cpg): implement PagesService List and Get
Implement PagesService.List with pagination and Get with full page
content including HTML/Markdown fields. Add mock server tests.
2026-01-30 09:50:18 +01:00
c241399cab feat(bookstack-api-9xo): implement BooksService List and Get
Add listResponse generic type and ListOptions.queryString() helper.
Implement BooksService.List with pagination support and Get with
proper error handling. Include mock server tests.
2026-01-30 09:49:49 +01:00
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