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.
This commit is contained in:
Oliver Jakoubek 2026-01-30 09:55:44 +01:00
commit 0a1cd5ef38
6 changed files with 201 additions and 5 deletions

View file

@ -34,6 +34,7 @@ type Client struct {
Attachments *AttachmentsService
Books *BooksService
Chapters *ChaptersService
Comments *CommentsService
Pages *PagesService
Search *SearchService
Shelves *ShelvesService
@ -74,6 +75,7 @@ func NewClient(cfg Config) (*Client, error) {
c.Attachments = &AttachmentsService{client: c}
c.Books = &BooksService{client: c}
c.Chapters = &ChaptersService{client: c}
c.Comments = &CommentsService{client: c}
c.Pages = &PagesService{client: c}
c.Search = &SearchService{client: c}
c.Shelves = &ShelvesService{client: c}