Skip to content

Commit 007bd52

Browse files
committed
chore: added 404 error docs to /unit_jobs
1 parent 3a5132c commit 007bd52

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/routers/unit_jobs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ async def create_unit_job(
3333
)
3434

3535

36-
@router.get("/unit_jobs/{job_id}", tags=["Unit Jobs"])
36+
@router.get(
37+
"/unit_jobs/{job_id}",
38+
tags=["Unit Jobs"],
39+
responses={404: {"description": "Processing job not found"}},
40+
)
3741
async def get_job(
3842
job_id: int, db: Session = Depends(get_db), user: str = "foobar"
3943
) -> ProcessingJob:

0 commit comments

Comments
 (0)