feat: commit before changing gitea
This commit is contained in:
parent
b05bd98f63
commit
ffceda606f
@@ -95,13 +95,35 @@ Retourne :
|
||||
|
||||
### Import de fichier
|
||||
```
|
||||
POST /api/import/upload-file
|
||||
POST /api/chapters/import
|
||||
```
|
||||
FormData :
|
||||
- `file`: Le fichier CBZ/CBR
|
||||
- `mangaId`: ID du manga sélectionné
|
||||
- `chapterNumber`: Numéro de chapitre (optionnel, float)
|
||||
- `volumeNumber`: Numéro de volume (optionnel, float)
|
||||
- `file`: Le fichier CBZ à importer
|
||||
- `mangaId`: ID du manga
|
||||
- `chapterNumber`: Numéro de chapitre (float, optionnel)
|
||||
|
||||
Réponse (200) :
|
||||
```json
|
||||
{
|
||||
"message": "Chapter imported successfully",
|
||||
"mangaId": "uuid",
|
||||
"chapterNumber": 1.5
|
||||
}
|
||||
```
|
||||
|
||||
Erreurs :
|
||||
- `404`: Manga ou Chapitre non trouvé
|
||||
- `422`: Paramètres invalides ou fichier absent
|
||||
- `400`: Fichier CBZ invalide
|
||||
|
||||
### Import de volume (À venir)
|
||||
```
|
||||
POST /api/volumes/import
|
||||
```
|
||||
FormData :
|
||||
- `file`: Le fichier CBZ à importer
|
||||
- `mangaId`: ID du manga
|
||||
- `volumeNumber`: Numéro de volume (int)
|
||||
|
||||
## Store Pinia
|
||||
|
||||
|
||||
Reference in New Issue
Block a user