|
405 | 405 | }
|
406 | 406 | }
|
407 | 407 | },
|
| 408 | + "/koreader/syncs/progress": { |
| 409 | + "put": { |
| 410 | + "tags": [ |
| 411 | + "koreader-sync-controller" |
| 412 | + ], |
| 413 | + "operationId": "updateProgress", |
| 414 | + "requestBody": { |
| 415 | + "content": { |
| 416 | + "application/json": { |
| 417 | + "schema": { |
| 418 | + "$ref": "#/components/schemas/DocumentProgressDto" |
| 419 | + } |
| 420 | + } |
| 421 | + }, |
| 422 | + "required": true |
| 423 | + }, |
| 424 | + "responses": { |
| 425 | + "400": { |
| 426 | + "description": "Bad Request", |
| 427 | + "content": { |
| 428 | + "*/*": { |
| 429 | + "schema": { |
| 430 | + "$ref": "#/components/schemas/ValidationErrorResponse" |
| 431 | + } |
| 432 | + } |
| 433 | + } |
| 434 | + }, |
| 435 | + "200": { |
| 436 | + "description": "OK" |
| 437 | + } |
| 438 | + } |
| 439 | + } |
| 440 | + }, |
408 | 441 | "/kobo/{authToken}/v1/library/{bookId}/state": {
|
409 | 442 | "get": {
|
410 | 443 | "tags": [
|
|
1195 | 1228 | }
|
1196 | 1229 | }
|
1197 | 1230 | },
|
| 1231 | + "/koreader/users/create": { |
| 1232 | + "post": { |
| 1233 | + "tags": [ |
| 1234 | + "koreader-sync-controller" |
| 1235 | + ], |
| 1236 | + "operationId": "registerUser", |
| 1237 | + "responses": { |
| 1238 | + "400": { |
| 1239 | + "description": "Bad Request", |
| 1240 | + "content": { |
| 1241 | + "*/*": { |
| 1242 | + "schema": { |
| 1243 | + "$ref": "#/components/schemas/ValidationErrorResponse" |
| 1244 | + } |
| 1245 | + } |
| 1246 | + } |
| 1247 | + }, |
| 1248 | + "200": { |
| 1249 | + "description": "OK", |
| 1250 | + "content": { |
| 1251 | + "application/vnd.koreader.v1+json": { |
| 1252 | + "schema": { |
| 1253 | + "type": "string" |
| 1254 | + } |
| 1255 | + } |
| 1256 | + } |
| 1257 | + } |
| 1258 | + } |
| 1259 | + } |
| 1260 | + }, |
1198 | 1261 | "/kobo/{authToken}/v1/auth/device": {
|
1199 | 1262 | "post": {
|
1200 | 1263 | "tags": [
|
|
6222 | 6285 | }
|
6223 | 6286 | }
|
6224 | 6287 | },
|
| 6288 | + "/koreader/users/auth": { |
| 6289 | + "get": { |
| 6290 | + "tags": [ |
| 6291 | + "koreader-sync-controller" |
| 6292 | + ], |
| 6293 | + "operationId": "authorize", |
| 6294 | + "responses": { |
| 6295 | + "400": { |
| 6296 | + "description": "Bad Request", |
| 6297 | + "content": { |
| 6298 | + "*/*": { |
| 6299 | + "schema": { |
| 6300 | + "$ref": "#/components/schemas/ValidationErrorResponse" |
| 6301 | + } |
| 6302 | + } |
| 6303 | + } |
| 6304 | + }, |
| 6305 | + "200": { |
| 6306 | + "description": "OK", |
| 6307 | + "content": { |
| 6308 | + "application/vnd.koreader.v1+json": { |
| 6309 | + "schema": { |
| 6310 | + "$ref": "#/components/schemas/UserAuthenticationDto" |
| 6311 | + } |
| 6312 | + } |
| 6313 | + } |
| 6314 | + } |
| 6315 | + } |
| 6316 | + } |
| 6317 | + }, |
| 6318 | + "/koreader/syncs/progress/{bookHash}": { |
| 6319 | + "get": { |
| 6320 | + "tags": [ |
| 6321 | + "koreader-sync-controller" |
| 6322 | + ], |
| 6323 | + "operationId": "getProgress", |
| 6324 | + "parameters": [ |
| 6325 | + { |
| 6326 | + "name": "bookHash", |
| 6327 | + "in": "path", |
| 6328 | + "required": true, |
| 6329 | + "schema": { |
| 6330 | + "type": "string" |
| 6331 | + } |
| 6332 | + } |
| 6333 | + ], |
| 6334 | + "responses": { |
| 6335 | + "400": { |
| 6336 | + "description": "Bad Request", |
| 6337 | + "content": { |
| 6338 | + "*/*": { |
| 6339 | + "schema": { |
| 6340 | + "$ref": "#/components/schemas/ValidationErrorResponse" |
| 6341 | + } |
| 6342 | + } |
| 6343 | + } |
| 6344 | + }, |
| 6345 | + "200": { |
| 6346 | + "description": "OK", |
| 6347 | + "content": { |
| 6348 | + "application/vnd.koreader.v1+json": { |
| 6349 | + "schema": { |
| 6350 | + "$ref": "#/components/schemas/DocumentProgressDto" |
| 6351 | + } |
| 6352 | + } |
| 6353 | + } |
| 6354 | + } |
| 6355 | + } |
| 6356 | + } |
| 6357 | + }, |
6225 | 6358 | "/kobo/{authToken}/v1/library/{bookId}/metadata": {
|
6226 | 6359 | "get": {
|
6227 | 6360 | "tags": [
|
|
11365 | 11498 | }
|
11366 | 11499 | }
|
11367 | 11500 | },
|
| 11501 | + "DocumentProgressDto": { |
| 11502 | + "required": [ |
| 11503 | + "device", |
| 11504 | + "device_id", |
| 11505 | + "document", |
| 11506 | + "percentage", |
| 11507 | + "progress" |
| 11508 | + ], |
| 11509 | + "type": "object", |
| 11510 | + "properties": { |
| 11511 | + "document": { |
| 11512 | + "type": "string" |
| 11513 | + }, |
| 11514 | + "percentage": { |
| 11515 | + "type": "number", |
| 11516 | + "format": "float" |
| 11517 | + }, |
| 11518 | + "progress": { |
| 11519 | + "type": "string" |
| 11520 | + }, |
| 11521 | + "device": { |
| 11522 | + "type": "string" |
| 11523 | + }, |
| 11524 | + "device_id": { |
| 11525 | + "type": "string" |
| 11526 | + } |
| 11527 | + } |
| 11528 | + }, |
11368 | 11529 | "BookmarkDto": {
|
11369 | 11530 | "required": [
|
11370 | 11531 | "LastModified"
|
|
11645 | 11806 | "hashPages": {
|
11646 | 11807 | "type": "boolean"
|
11647 | 11808 | },
|
| 11809 | + "hashKoreader": { |
| 11810 | + "type": "boolean" |
| 11811 | + }, |
11648 | 11812 | "analyzeDimensions": {
|
11649 | 11813 | "type": "boolean"
|
11650 | 11814 | },
|
|
13907 | 14071 | "convertToCbz",
|
13908 | 14072 | "emptyTrashAfterScan",
|
13909 | 14073 | "hashFiles",
|
| 14074 | + "hashKoreader", |
13910 | 14075 | "hashPages",
|
13911 | 14076 | "importBarcodeIsbn",
|
13912 | 14077 | "importComicInfoBook",
|
|
14025 | 14190 | "hashPages": {
|
14026 | 14191 | "type": "boolean"
|
14027 | 14192 | },
|
| 14193 | + "hashKoreader": { |
| 14194 | + "type": "boolean" |
| 14195 | + }, |
14028 | 14196 | "analyzeDimensions": {
|
14029 | 14197 | "type": "boolean"
|
14030 | 14198 | },
|
|
14039 | 14207 | "convertToCbz",
|
14040 | 14208 | "emptyTrashAfterScan",
|
14041 | 14209 | "hashFiles",
|
| 14210 | + "hashKoreader", |
14042 | 14211 | "hashPages",
|
14043 | 14212 | "id",
|
14044 | 14213 | "importBarcodeIsbn",
|
|
14162 | 14331 | "hashPages": {
|
14163 | 14332 | "type": "boolean"
|
14164 | 14333 | },
|
| 14334 | + "hashKoreader": { |
| 14335 | + "type": "boolean" |
| 14336 | + }, |
14165 | 14337 | "analyzeDimensions": {
|
14166 | 14338 | "type": "boolean"
|
14167 | 14339 | },
|
|
14645 | 14817 | "type": "string"
|
14646 | 14818 | }
|
14647 | 14819 | },
|
14648 |
| - "links": { |
14649 |
| - "type": "array", |
14650 |
| - "items": { |
14651 |
| - "$ref": "#/components/schemas/WebLinkUpdateDto" |
14652 |
| - } |
14653 |
| - }, |
14654 | 14820 | "readingDirection": {
|
14655 | 14821 | "type": "string",
|
14656 | 14822 | "enum": [
|
|
14675 | 14841 | "type": "integer",
|
14676 | 14842 | "format": "int32"
|
14677 | 14843 | },
|
| 14844 | + "links": { |
| 14845 | + "type": "array", |
| 14846 | + "items": { |
| 14847 | + "$ref": "#/components/schemas/WebLinkUpdateDto" |
| 14848 | + } |
| 14849 | + }, |
14678 | 14850 | "sharingLabels": {
|
14679 | 14851 | "uniqueItems": true,
|
14680 | 14852 | "type": "array",
|
|
15485 | 15657 | }
|
15486 | 15658 | }
|
15487 | 15659 | },
|
| 15660 | + "UserAuthenticationDto": { |
| 15661 | + "required": [ |
| 15662 | + "authorized" |
| 15663 | + ], |
| 15664 | + "type": "object", |
| 15665 | + "properties": { |
| 15666 | + "authorized": { |
| 15667 | + "type": "string" |
| 15668 | + } |
| 15669 | + } |
| 15670 | + }, |
15488 | 15671 | "ResourcesDto": {
|
15489 | 15672 | "required": [
|
15490 | 15673 | "Resources"
|
|
0 commit comments