2026-06-05 02:48:04 +02:00
|
|
|
# MicroAPI
|
2026-06-05 02:45:49 +02:00
|
|
|
|
2026-06-05 02:48:04 +02:00
|
|
|
API de micro-services — transcription audio, résumé automatique, conversion de formats.
|
2026-06-05 02:45:49 +02:00
|
|
|
|
2026-06-05 02:48:04 +02:00
|
|
|
## Endpoints
|
2026-06-05 02:45:49 +02:00
|
|
|
|
2026-06-05 02:48:04 +02:00
|
|
|
| Méthode | Route | Description |
|
|
|
|
|
|---|---|---|
|
|
|
|
|
| GET | `/` | Informations du service |
|
|
|
|
|
| GET | `/api/health` | Health check |
|
2026-06-05 02:45:49 +02:00
|
|
|
|
2026-06-05 02:48:04 +02:00
|
|
|
### À venir
|
|
|
|
|
- `POST /api/transcribe` — Transcription audio (Whisper local)
|
|
|
|
|
- `POST /api/summarize` — Résumé de texte
|
|
|
|
|
- `POST /api/convert` — Conversion Markdown↔PDF, JSON↔CSV
|
2026-06-05 02:45:49 +02:00
|
|
|
|
2026-06-05 02:48:04 +02:00
|
|
|
## Lancer en local
|
2026-06-05 02:45:49 +02:00
|
|
|
|
|
|
|
|
```bash
|
2026-06-05 02:48:04 +02:00
|
|
|
pip install -r requirements.txt
|
|
|
|
|
uvicorn main:app --reload
|
2026-06-05 02:45:49 +02:00
|
|
|
```
|
|
|
|
|
|
2026-06-05 02:48:04 +02:00
|
|
|
## Docker
|
2026-06-05 02:45:49 +02:00
|
|
|
|
|
|
|
|
```bash
|
2026-06-05 02:48:04 +02:00
|
|
|
docker compose up -d
|
2026-06-05 02:45:49 +02:00
|
|
|
```
|
|
|
|
|
|
2026-06-05 02:48:04 +02:00
|
|
|
## Tests
|
2026-06-05 02:45:49 +02:00
|
|
|
|
|
|
|
|
```bash
|
2026-06-05 02:48:04 +02:00
|
|
|
pytest tests/ -v
|
2026-06-05 02:45:49 +02:00
|
|
|
```
|