Skip to content

Commit 49ac9c3

Browse files
committed
Hide HEAD method for /api/jobs/{job_id}/files in API docs
Including both GET and HEAD in the API schema for the same endpoint is redundant.
1 parent 0c22d44 commit 49ac9c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/galaxy/webapps/galaxy/api/job_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class FastAPIJobFiles:
136136
)
137137
),
138138
)
139-
@router.head(*_args, **_kwargs) # type: ignore[name-defined]
139+
@router.head(*_args, **_kwargs, include_in_schema=False) # type: ignore[name-defined]
140140
# remove `@router.head(...)` when ALL endpoints have been migrated to FastAPI
141141
def index(
142142
self,

0 commit comments

Comments
 (0)