Download OpenAPI specification:
REST API for AnthoLume document management system
| page | integer <int64> Default: 1 |
| limit | integer <int64> Default: 9 |
| search | string |
{- "documents": [
- {
- "id": "string",
- "title": "string",
- "author": "string",
- "description": "string",
- "isbn10": "string",
- "isbn13": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted": true,
- "words": 0,
- "filepath": "string",
- "percentage": 0.1,
- "total_time_seconds": 0,
- "wpm": 0.1,
- "seconds_per_percent": 0,
- "last_read": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 0,
- "limit": 0,
- "next_page": 0,
- "previous_page": 0,
- "search": "string"
}| document_file required | string <binary> |
{- "document": {
- "id": "string",
- "title": "string",
- "author": "string",
- "description": "string",
- "isbn10": "string",
- "isbn13": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted": true,
- "words": 0,
- "filepath": "string",
- "percentage": 0.1,
- "total_time_seconds": 0,
- "wpm": 0.1,
- "seconds_per_percent": 0,
- "last_read": "2019-08-24T14:15:22Z"
}
}{- "document": {
- "id": "string",
- "title": "string",
- "author": "string",
- "description": "string",
- "isbn10": "string",
- "isbn13": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted": true,
- "words": 0,
- "filepath": "string",
- "percentage": 0.1,
- "total_time_seconds": 0,
- "wpm": 0.1,
- "seconds_per_percent": 0,
- "last_read": "2019-08-24T14:15:22Z"
}
}| id required | string |
| title | string |
| author | string |
| description | string |
| isbn10 | string |
| isbn13 | string |
| cover_gbid | string |
{- "title": "string",
- "author": "string",
- "description": "string",
- "isbn10": "string",
- "isbn13": "string",
- "cover_gbid": "string"
}{- "document": {
- "id": "string",
- "title": "string",
- "author": "string",
- "description": "string",
- "isbn10": "string",
- "isbn13": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted": true,
- "words": 0,
- "filepath": "string",
- "percentage": 0.1,
- "total_time_seconds": 0,
- "wpm": 0.1,
- "seconds_per_percent": 0,
- "last_read": "2019-08-24T14:15:22Z"
}
}| id required | string |
| cover_file required | string <binary> |
{- "document": {
- "id": "string",
- "title": "string",
- "author": "string",
- "description": "string",
- "isbn10": "string",
- "isbn13": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted": true,
- "words": 0,
- "filepath": "string",
- "percentage": 0.1,
- "total_time_seconds": 0,
- "wpm": 0.1,
- "seconds_per_percent": 0,
- "last_read": "2019-08-24T14:15:22Z"
}
}| page | integer <int64> Default: 1 |
| limit | integer <int64> Default: 15 |
| document | string |
{- "progress": [
- {
- "title": "string",
- "author": "string",
- "device_name": "string",
- "device_id": "string",
- "percentage": 0.1,
- "progress": "string",
- "document_id": "string",
- "user_id": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "page": 0,
- "limit": 0,
- "next_page": 0,
- "previous_page": 0,
- "total": 0
}| document_id required | string |
| percentage required | number <double> |
| progress required | string |
| device_id required | string |
| device_name required | string |
{- "document_id": "string",
- "percentage": 0.1,
- "progress": "string",
- "device_id": "string",
- "device_name": "string"
}{- "document_id": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}{- "progress": {
- "title": "string",
- "author": "string",
- "device_name": "string",
- "device_id": "string",
- "percentage": 0.1,
- "progress": "string",
- "document_id": "string",
- "user_id": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
}| doc_filter | boolean Default: false |
| document_id | string |
| page | integer <int64> Default: 1 |
| limit | integer <int64> Default: 25 |
{- "activities": [
- {
- "document_id": "string",
- "device_id": "string",
- "start_time": "2019-08-24T14:15:22Z",
- "title": "string",
- "author": "string",
- "duration": 0,
- "start_percentage": 0.1,
- "end_percentage": 0.1,
- "read_percentage": 0.1
}
], - "page": 0,
- "limit": 0,
- "next_page": 0,
- "previous_page": 0,
- "total": 0
}| device_id required | string |
| device_name required | string |
required | Array of objects (CreateActivityItem) |
{- "device_id": "string",
- "device_name": "string",
- "activity": [
- {
- "document_id": "string",
- "start_time": 0,
- "duration": 0,
- "page": 0,
- "pages": 0
}
]
}{- "added": 0
}{- "user": {
- "username": "string",
- "is_admin": true
}, - "timezone": "string",
- "devices": [
- {
- "id": "string",
- "device_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "last_synced": "2019-08-24T14:15:22Z"
}
]
}| password | string |
| new_password | string |
| timezone | string |
{- "password": "string",
- "new_password": "string",
- "timezone": "string"
}{- "user": {
- "username": "string",
- "is_admin": true
}, - "timezone": "string",
- "devices": [
- {
- "id": "string",
- "device_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "last_synced": "2019-08-24T14:15:22Z"
}
]
}| username required | string |
| password required | string |
{- "username": "string",
- "password": "string"
}{- "username": "string",
- "is_admin": true
}| username required | string |
| password required | string |
{- "username": "string",
- "password": "string"
}{- "username": "string",
- "is_admin": true
}{- "database_info": {
- "documents_size": 0,
- "activity_size": 0,
- "progress_size": 0,
- "devices_size": 0
}, - "streaks": {
- "streaks": [
- {
- "window": "string",
- "max_streak": 0,
- "max_streak_start_date": "string",
- "max_streak_end_date": "string",
- "current_streak": 0,
- "current_streak_start_date": "string",
- "current_streak_end_date": "string"
}
]
}, - "graph_data": {
- "graph_data": [
- {
- "date": "string",
- "minutes_read": 0
}
]
}, - "user_statistics": {
- "wpm": {
- "all": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "year": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "month": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "week": [
- {
- "user_id": "string",
- "value": 0.1
}
]
}, - "duration": {
- "all": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "year": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "month": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "week": [
- {
- "user_id": "string",
- "value": 0.1
}
]
}, - "words": {
- "all": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "year": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "month": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "week": [
- {
- "user_id": "string",
- "value": 0.1
}
]
}
}
}{- "streaks": [
- {
- "window": "string",
- "max_streak": 0,
- "max_streak_start_date": "string",
- "max_streak_end_date": "string",
- "current_streak": 0,
- "current_streak_start_date": "string",
- "current_streak_end_date": "string"
}
]
}{- "wpm": {
- "all": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "year": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "month": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "week": [
- {
- "user_id": "string",
- "value": 0.1
}
]
}, - "duration": {
- "all": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "year": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "month": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "week": [
- {
- "user_id": "string",
- "value": 0.1
}
]
}, - "words": {
- "all": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "year": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "month": [
- {
- "user_id": "string",
- "value": 0.1
}
], - "week": [
- {
- "user_id": "string",
- "value": 0.1
}
]
}
}| query required | string |
| source required | string Enum: "LibGen" "Annas Archive" |
{- "results": [
- {
- "id": "string",
- "title": "string",
- "author": "string",
- "language": "string",
- "series": "string",
- "file_type": "string",
- "file_size": "string"
}
], - "source": "string",
- "query": "string"
}| action required | string Enum: "BACKUP" "RESTORE" "METADATA_MATCH" "CACHE_TABLES" |
| backup_types | Array of strings (BackupType) Items Enum: "COVERS" "DOCUMENTS" |
| restore_file | string <binary> |
{- "message": "string"
}| operation required | string (OperationType) Enum: "CREATE" "UPDATE" "DELETE" |
| user required | string |
| password | string |
| is_admin | boolean |
{- "users": [
- {
- "id": "string",
- "admin": true,
- "created_at": "2019-08-24T14:15:22Z"
}
]
}| directory required | string |
| type required | string (ImportType) Enum: "DIRECT" "COPY" |
{- "results": [
- {
- "id": "string",
- "name": "string",
- "path": "string",
- "status": "FAILED",
- "error": "string"
}
]
}| filter | string |
| page | integer <int64> >= 1 |
| limit | integer <int64> >= 1 |
{- "logs": [
- "string"
], - "filter": "string",
- "page": 0,
- "limit": 0,
- "next_page": 0,
- "previous_page": 0,
- "total": 0
}