|
1 | 1 | from uuid import UUID |
2 | 2 | import logging |
3 | 3 |
|
4 | | -from fastapi import APIRouter, HTTPException, Query, Path |
| 4 | +from fastapi import APIRouter, Query, Path |
5 | 5 |
|
6 | 6 | from app.api.deps import CurrentUserOrgProject, SessionDep |
7 | 7 | from app.crud import DocTransformationJobCrud, DocumentCrud |
8 | 8 | from app.models import ( |
9 | 9 | DocTransformationJobPublic, |
10 | 10 | DocTransformationJobsPublic, |
11 | | - TransformedDocumentPublic, |
12 | 11 | ) |
13 | | -from app.utils import APIResponse |
| 12 | +from app.utils import APIResponse, load_description |
14 | 13 | from app.services.documents.helpers import build_job_schema, build_job_schemas |
15 | 14 | from app.core.cloud import get_cloud_storage |
16 | 15 |
|
|
21 | 20 |
|
22 | 21 | @router.get( |
23 | 22 | "/{job_id}", |
24 | | - description="Get the status and details of a document transformation job.", |
| 23 | + description=load_description("documents/job_info.md"), |
25 | 24 | response_model=APIResponse[DocTransformationJobPublic], |
26 | 25 | ) |
27 | 26 | def get_transformation_job( |
@@ -53,7 +52,7 @@ def get_transformation_job( |
53 | 52 |
|
54 | 53 | @router.get( |
55 | 54 | "/", |
56 | | - description="Get the status and details of multiple document transformation jobs by IDs.", |
| 55 | + description=load_description("documents/job_list.md"), |
57 | 56 | response_model=APIResponse[DocTransformationJobsPublic], |
58 | 57 | ) |
59 | 58 | def get_multiple_transformation_jobs( |
|
0 commit comments