File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
services/web/server/src/simcore_service_webserver/api_keys Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ async def get_api_key(
127127 app : web .Application ,
128128 connection : AsyncConnection | None = None ,
129129 * ,
130- api_key_id : int ,
130+ api_key_id : str ,
131131 user_id : UserID ,
132132 product_name : ProductName ,
133133) -> ApiKey | None :
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ async def create_api_key(
3131 expiration = api_key .expiration ,
3232 )
3333
34- return created_api_key
34+ return ApiKeyGet . model_validate ( created_api_key )
3535
3636
3737@router .expose (reraise_if_error_type = (ApiKeyNotFoundError ,))
@@ -40,7 +40,7 @@ async def get_api_key(
4040 * ,
4141 user_id : UserID ,
4242 product_name : ProductName ,
43- api_key_id : int ,
43+ api_key_id : str ,
4444) -> ApiKeyGet :
4545 api_key : ApiKey = await _service .get_api_key (
4646 app ,
@@ -76,7 +76,7 @@ async def delete_api_key(
7676 * ,
7777 user_id : UserID ,
7878 product_name : ProductName ,
79- api_key_id : int ,
79+ api_key_id : str ,
8080) -> None :
8181 await _service .delete_api_key (
8282 app ,
You can’t perform that action at this time.
0 commit comments