From fd2c6d50dbc827cee4fdde714e8c46562dde8422 Mon Sep 17 00:00:00 2001 From: Sergey Golitsynskiy Date: Mon, 8 Feb 2021 16:28:41 -0500 Subject: [PATCH] Replace Query with Path --- lib/galaxy/webapps/galaxy/api/configuration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)