docs: add Carousel dashboard implementation plan

This commit is contained in:
john-okeefe committed 2026-02-17 17:00:46 -05:00
1 parent fce16b53f7
commit 96730d9475
407 files changed
+10834 -10983

No files matched your search

-90
View File
@@ -1,90 +0,0 @@
meta {
name: Sync from Bookhoard to Kobo
type: http
seq: 1
}
post {
url: {{baseURL}}/api/sync/kobo/sync-from-server
body: json
auth: inherit
}
headers {
Authorization: Bearer {{koboToken}}
Content-Type: application/json
x-kobo-device: {"DeviceId":"kobo-clara-test","Model":"Kobo Clara","SerialNumber":"N123456789"}
}
body:json {
[
{
"ContentId": "{{bookUUID}}",
"PercentRead": 65.4,
"LastModified": "2026-01-31T12:00:00Z",
"Bookmarks": [
{
"BookmarkId": "bookmark-123",
"ContentId": "{{bookUUID}}",
"BookmarkText": "This is an important note",
"BookmarkType": "bookmark",
"BookmarkTitle": "Chapter 5 Note"
}
],
"Highlights": [
{
"BookmarkId": "highlight-456",
"ContentId": "{{bookUUID}}",
"BookmarkText": "highlighted passage text",
"BookmarkType": "annotation",
"BookmarkTitle": "Chapter 3 Highlight"
}
]
}
]
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Sync from Bookhoard to Kobo
Server-initiated sync pushing progress, bookmarks, and highlights from Bookhoard to Kobo device. Two-way sync endpoint.
**Method:** POST
**Endpoint:** /api/sync/kobo/sync-from-server
**Authentication:** Bearer token with Kobo device identification
**Headers:**
- `x-kobo-device` (string): JSON string containing Kobo device info
- `DeviceId`: Kobo device ID
- `Model`: Kobo device model
- `SerialNumber`: Kobo device serial number
**Request Body:** Array of sync data objects
- `ContentId` (string): Book UUID
- `PercentRead` (number): Reading progress percentage (0-100)
- `LastModified` (string): ISO 8601 timestamp
- `Bookmarks` (array, optional): Array of bookmark objects
- `BookmarkId`: Unique bookmark ID
- `ContentId`: Book UUID
- `BookmarkText`: Bookmark text/note
- `BookmarkType`: Type (bookmark, annotation, etc.)
- `BookmarkTitle`: Bookmark title
- `Highlights` (array, optional): Array of highlight objects (same structure as bookmarks)
**Response:**
- Sync result confirmation
**Status Codes:**
- 200: Success
- 401: Unauthorized
- 500: Internal server error
**Note:** Allows Bookhoard server to push updates to Kobo device, including reading progress, bookmarks, and highlights.
}
-75
View File
@@ -1,75 +0,0 @@
meta {
name: Kobo Bookmark Sync
type: http
seq: 3
}
post {
url: {{base_url}}/api/v1/kobo/bookmark
body: json
auth: inherit
}
headers {
Authorization: Bearer {{device_token}}
Content-Type: application/json
}
body:json {
{
"BookmarkSync": [
{
"BookmarkId": "bookmark_2",
"ContentId": "kobo_xyz789",
"BookmarkText": "Important note",
"BookmarkType": "bookmark",
"DateCreated": "2026-01-31T12:00:00Z"
}
]
}
}
script:post-response {
function onResponse(res) {
if (res.getStatus() === 200) {
const body = res.getBody();
tests('Status is Success', body.Status === "Success");
tests('BookmarksSynced >= 0', body.BookmarksSynced >= 0);
}
}
onResponse(res);
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Kobo Bookmark Sync
Synchronizes bookmarks from a Kobo device to the Bookhoard server.
**Method:** POST
**Endpoint:** /api/v1/kobo/bookmark
**Authentication:** Bearer token (device token)
**Request Body:**
- `BookmarkSync` (array): Array of bookmark objects
- `BookmarkId` (string): Unique bookmark ID
- `ContentId` (string): Book/content ID
- `BookmarkText` (string): Bookmark text or note
- `BookmarkType` (string): Type (bookmark, highlight, note)
- `DateCreated` (string): ISO 8601 timestamp
**Response:**
- `Status` (string): Sync status (Success, Partial)
- `BookmarksSynced` (number): Number of bookmarks synced
**Status Codes:**
- 200: Success
- 401: Unauthorized
- 500: Internal server error
}
-55
View File
@@ -1,55 +0,0 @@
meta {
name: Kobo Initialization
type: http
seq: 1
}
get {
url: {{base_url}}/api/v1/kobo/initialization
body: none
auth: inherit
}
headers {
Authorization: Bearer {{device_token}}
Content-Type: application/json
}
script:post-response {
function onResponse(res) {
if (res.getStatus() === 200) {
const body = res.getBody();
tests('Has ContentId', body.ContentId !== undefined);
tests('Has Categories', body.Categories !== undefined);
tests('Has BookhoardUUID', body.BookhoardUUID !== undefined);
}
}
onResponse(res);
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Kobo Initialization
Initializes Kobo device sync, returning device resources and account information.
**Method:** GET
**Endpoint:** /api/v1/kobo/initialization
**Authentication:** Bearer token (device token)
**Response:**
- `ContentId` (string): Device content ID
- `Categories` (array): Available categories/collections
- `BookhoardUUID` (string): Bookhoard instance UUID
**Status Codes:**
- 200: Success
- 401: Unauthorized
- 500: Internal server error
}
-95
View File
@@ -1,95 +0,0 @@
meta {
name: Kobo Markup Sync
type: http
seq: 2
}
post {
url: {{base_url}}/api/v1/kobo/markup
body: json
auth: inherit
}
headers {
Authorization: Bearer {{device_token}}
Content-Type: application/json
}
body:json {
{
"ReadingSync": [
{
"ContentId": "kobo_abc123def456",
"PercentRead": 60.0,
"RemainingTimeMin": 120,
"ReadingEvent": "BookRead",
"LastModified": "2026-01-31T12:00:00Z"
}
],
"BookmarkSync": [
{
"BookmarkId": "bookmark_1",
"ContentId": "kobo_abc123def456",
"BookmarkText": "Great quote",
"BookmarkType": "annotation",
"DateCreated": "2026-01-31T12:00:00Z"
}
],
"Metadata": true
}
}
script:post-response {
function onResponse(res) {
if (res.getStatus() === 200) {
const body = res.getBody();
const validStatus = body.Status === "Success" || body.Status === "Partial";
tests('Status is Success or Partial', validStatus);
tests('MarkupsSynced >= 0', body.MarkupsSynced >= 0);
tests('BookmarksSynced >= 0', body.BookmarksSynced >= 0);
}
}
onResponse(res);
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Kobo Markup Sync
Synchronizes reading progress and markup (highlights, bookmarks) from a Kobo device.
**Method:** POST
**Endpoint:** /api/v1/kobo/markup
**Authentication:** Bearer token (device token)
**Request Body:**
- `ReadingSync` (array, optional): Reading progress data
- `ContentId` (string): Book/content ID
- `PercentRead` (number): Percentage read (0-100)
- `RemainingTimeMin` (number): Remaining time in minutes
- `ReadingEvent` (string): Event type (BookRead, etc.)
- `LastModified` (string): ISO 8601 timestamp
- `BookmarkSync` (array, optional): Bookmark/highlight data
- `BookmarkId` (string): Unique bookmark ID
- `ContentId` (string): Book/content ID
- `BookmarkText` (string): Highlighted/bookmarked text
- `BookmarkType` (string): Type (annotation, bookmark)
- `DateCreated` (string): ISO 8601 timestamp
- `Metadata` (boolean): Whether to include metadata
**Response:**
- `Status` (string): Sync status (Success, Partial)
- `MarkupsSynced` (number): Number of markups synced
- `BookmarksSynced` (number): Number of bookmarks synced
**Status Codes:**
- 200: Success
- 401: Unauthorized
- 500: Internal server error
}