diff --git a/lib/galaxy/webapps/galaxy/api/configuration.py b/lib/galaxy/webapps/galaxy/api/configuration.py index 8e97a411e6f6..ac9317a869ed 100644 --- a/lib/galaxy/webapps/galaxy/api/configuration.py +++ b/lib/galaxy/webapps/galaxy/api/configuration.py @@ -12,7 +12,7 @@ from fastapi import ( Depends, - Query, + Path, ) from fastapi_utils.cbv import cbv from fastapi_utils.inferring_router import InferringRouter as APIRouter @@ -53,7 +53,7 @@ AdminUserRequired = Depends(get_admin_user) -EncodedIdQueryParam: EncodedDatabaseIdField = Query( +EncodedIdPathParam: EncodedDatabaseIdField = Path( ..., title='Encoded id', description='Encoded id to be decoded', @@ -125,7 +125,7 @@ def dynamic_tool_confs(self) -> List[Dict[str, str]]: def decode_id( self, trans: ProvidesAppContext = Depends(get_trans), - encoded_id: EncodedDatabaseIdField = EncodedIdQueryParam + encoded_id: EncodedDatabaseIdField = EncodedIdPathParam ) -> Dict[str, int]: """Decode a given id.""" return self.configuration_manager.decode_id(encoded_id)