docs: update comprehensive API documentation and project guides
This commit updates all documentation files throughout the project: - Updated IMPLEMENTATION_PLAN.md with new implementation details - Updated PROJECT_GUIDELINES.md with coding standards and practices - Updated README.md with current project information - Updated SCREENSHOT_AUTOMATION.md with new automation details - Added TEST_DATA.md with test fixtures data - Updated cover_image_serving_plan.md with static URL patterns Documentation API updates: - Updated API reference documentation for all endpoints including: - Authentication (login, logout, register, refresh_token) - Book matching (auto_link, bulk_link, link_book, search) - Collections (CRUD operations, shelf mappings, auto-assign rules) - Conflicts (bulk operations, resolve/dismiss) - Devices (registration, approval, shelf management) - Highlights (create, update, delete, get) - Kobo sync (bookmark, markup, initialization, sync) - KOReader sync (library, metadata, bookmarks, progress) - Libraries (CRUD, folders, media items, stats) - Media items (bulk operations, CRUD) - Notes (CRUD operations) - OPDS (acquisition, feeds, publication) - Progress (reading progress tracking) - Queue (device queue management) - Ratings (star ratings) - Scanner (watch mode, scan operations) - Sync protocols (Kobo, KOReader) - Users (profile, password, admin operations) - WebSocket protocols - Updated user guides (admin, dashboard, settings, sync) - Updated device setup guides (Kobo, KOReader) - Updated developer guides (testing, contributing, operations) - Updated scripts/README.md
This commit is contained in:
@@ -9,6 +9,7 @@ Evaluates filter rules and returns matching items without saving the collection.
|
||||
**Endpoint:** `POST /api/collections/preview`
|
||||
|
||||
**Request Body:**
|
||||
|
||||
```json
|
||||
{
|
||||
"library_id": "uuid",
|
||||
@@ -28,23 +29,24 @@ Evaluates filter rules and returns matching items without saving the collection.
|
||||
|
||||
**Available Filter Fields:**
|
||||
|
||||
| Field | Type | Operators |
|
||||
|-------|------|-----------|
|
||||
| `title` | text | contains, equals, starts_with, ends_with, regex |
|
||||
| `author` | text | contains, equals |
|
||||
| `genre` | select | equals, not_equals, in, not_in |
|
||||
| `series` | text | is_set, is_not_set, equals, contains |
|
||||
| `progress` | number | equals, not_equals, greater_than, less_than, between, is_set, is_not_set |
|
||||
| `rating` | number | equals, not_equals, greater_than, less_than, is_set, is_not_set |
|
||||
| `date_added` | date | equals, not_equals, before, after, between, last_x_days |
|
||||
| `last_read` | date | equals, before, after, between, last_x_days, is_set, is_not_set |
|
||||
| `publisher` | text | contains, equals |
|
||||
| `language` | select | equals, not_equals, in |
|
||||
| `format` | select | equals, in |
|
||||
| `tags` | text | contains, not_contains, equals |
|
||||
| `narrators` | text | contains, equals, is_set, is_not_set |
|
||||
| Field | Type | Operators |
|
||||
| ------------ | ------ | ------------------------------------------------------------------------ |
|
||||
| `title` | text | contains, equals, starts_with, ends_with, regex |
|
||||
| `author` | text | contains, equals |
|
||||
| `genre` | select | equals, not_equals, in, not_in |
|
||||
| `series` | text | is_set, is_not_set, equals, contains |
|
||||
| `progress` | number | equals, not_equals, greater_than, less_than, between, is_set, is_not_set |
|
||||
| `rating` | number | equals, not_equals, greater_than, less_than, is_set, is_not_set |
|
||||
| `date_added` | date | equals, not_equals, before, after, between, last_x_days |
|
||||
| `last_read` | date | equals, before, after, between, last_x_days, is_set, is_not_set |
|
||||
| `publisher` | text | contains, equals |
|
||||
| `language` | select | equals, not_equals, in |
|
||||
| `format` | select | equals, in |
|
||||
| `tags` | text | contains, not_contains, equals |
|
||||
| `narrators` | text | contains, equals, is_set, is_not_set |
|
||||
|
||||
**Response:**
|
||||
|
||||
```json
|
||||
{
|
||||
"items": [
|
||||
@@ -65,6 +67,7 @@ Creates a new custom collection with filter rules and/or manual book selection.
|
||||
**Endpoint:** `POST /api/collections`
|
||||
|
||||
**Request Body:**
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "My Custom Section",
|
||||
@@ -89,6 +92,7 @@ Creates a new custom collection with filter rules and/or manual book selection.
|
||||
**TypeScript:** `web/src/custom-section-builder.ts`
|
||||
|
||||
Key features:
|
||||
|
||||
- 14 filter fields with various operators
|
||||
- Live preview functionality
|
||||
- Search + multi-select for manual book addition
|
||||
@@ -97,6 +101,7 @@ Key features:
|
||||
## Example Use Cases
|
||||
|
||||
### Sci-Fi Favorites
|
||||
|
||||
```json
|
||||
{
|
||||
"rules": [
|
||||
@@ -110,6 +115,7 @@ Key features:
|
||||
```
|
||||
|
||||
### High Rated Books
|
||||
|
||||
```json
|
||||
{
|
||||
"rules": [
|
||||
@@ -123,6 +129,7 @@ Key features:
|
||||
```
|
||||
|
||||
### Long Books (Manual Selection)
|
||||
|
||||
```json
|
||||
{
|
||||
"manual_book_ids": ["uuid1", "uuid2", "uuid3"]
|
||||
@@ -130,6 +137,7 @@ Key features:
|
||||
```
|
||||
|
||||
### Recently Finished Audiobooks
|
||||
|
||||
```json
|
||||
{
|
||||
"rules": [
|
||||
|
||||
Reference in New Issue
Block a user