From b187f3e15312208685e59c1edf6eac87cd382ac3 Mon Sep 17 00:00:00 2001 From: "ext.jeremy.guillot@maxicoffee.domains" Date: Thu, 3 Apr 2025 16:34:58 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20mise=20=C3=A0=20jour=20de=20la=20docume?= =?UTF-8?q?ntation=20API=20pour=20le=20filtrage=20par=20statut,=20ajout=20?= =?UTF-8?q?de=20la=20prise=20en=20charge=20des=20tableaux=20et=20am=C3=A9l?= =?UTF-8?q?ioration=20des=20descriptions=20des=20propri=C3=A9t=C3=A9s=20li?= =?UTF-8?q?=C3=A9es=20aux=20chapitres.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/api-docs.json | 108 +++++++++++++++---------------------------- 1 file changed, 36 insertions(+), 72 deletions(-) diff --git a/public/api-docs.json b/public/api-docs.json index 5865ec5..f2b8094 100644 --- a/public/api-docs.json +++ b/public/api-docs.json @@ -215,19 +215,34 @@ { "name": "status", "in": "query", - "description": "Filtrer par status", + "description": "Filtrer par status (s\u00e9par\u00e9s par des virgules pour plusieurs statuts, ex: \"pending,in_progress\" ou sous forme de tableau avec \"status[]=\")", "required": false, "deprecated": false, "allowEmptyValue": false, "schema": { - "type": "string", - "enum": [ - "pending", - "in_progress", - "completed", - "failed" - ], - "example": "pending" + "oneOf": [ + { + "type": "string", + "example": "pending,in_progress" + }, + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pending", + "in_progress", + "completed", + "failed", + "cancelled" + ] + }, + "example": [ + "pending", + "in_progress" + ] + } + ] }, "style": "form", "explode": false, @@ -1668,14 +1683,7 @@ }, "status": { "description": "Status du job", - "type": "string", - "enum": [ - "pending", - "in_progress", - "completed", - "failed", - "cancelled" - ] + "type": "string" }, "createdAt": { "description": "Date de cr\u00e9ation du job", @@ -1758,14 +1766,7 @@ }, "status": { "description": "Status du job", - "type": "string", - "enum": [ - "pending", - "in_progress", - "completed", - "failed", - "cancelled" - ] + "type": "string" }, "createdAt": { "description": "Date de cr\u00e9ation du job", @@ -1842,14 +1843,7 @@ }, "status": { "description": "Status du job", - "type": "string", - "enum": [ - "pending", - "in_progress", - "completed", - "failed", - "cancelled" - ] + "type": "string" }, "createdAt": { "description": "Date de cr\u00e9ation du job", @@ -3352,21 +3346,11 @@ "description": "", "deprecated": false, "required": [ - "mangaId", - "chapterNumber", - "sourceId" + "chapterId" ], "properties": { - "mangaId": { - "description": "ID du manga", - "type": "string" - }, - "chapterNumber": { - "description": "Num\u00e9ro du chapitre", - "type": "string" - }, - "sourceId": { - "description": "ID de la source", + "chapterId": { + "description": "ID du chapitre \u00e0 scraper", "type": "string" } } @@ -3376,9 +3360,7 @@ "description": "", "deprecated": false, "required": [ - "mangaId", - "chapterNumber", - "sourceId" + "chapterId" ], "properties": { "_links": { @@ -3395,16 +3377,8 @@ } } }, - "mangaId": { - "description": "ID du manga", - "type": "string" - }, - "chapterNumber": { - "description": "Num\u00e9ro du chapitre", - "type": "string" - }, - "sourceId": { - "description": "ID de la source", + "chapterId": { + "description": "ID du chapitre \u00e0 scraper", "type": "string" } } @@ -3414,9 +3388,7 @@ "description": "", "deprecated": false, "required": [ - "mangaId", - "chapterNumber", - "sourceId" + "chapterId" ], "properties": { "@context": { @@ -3454,16 +3426,8 @@ "readOnly": true, "type": "string" }, - "mangaId": { - "description": "ID du manga", - "type": "string" - }, - "chapterNumber": { - "description": "Num\u00e9ro du chapitre", - "type": "string" - }, - "sourceId": { - "description": "ID de la source", + "chapterId": { + "description": "ID du chapitre \u00e0 scraper", "type": "string" } }