Commit graph

4 commits

Author SHA1 Message Date
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
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
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