diff --git a/services/web/server/src/simcore_service_webserver/api_keys/_rest.py b/services/web/server/src/simcore_service_webserver/api_keys/_rest.py index 3082db9d6e9..277081f4dc7 100644 --- a/services/web/server/src/simcore_service_webserver/api_keys/_rest.py +++ b/services/web/server/src/simcore_service_webserver/api_keys/_rest.py @@ -64,13 +64,13 @@ async def create_api_key(request: web.Request): return envelope_json_response(api_key) -@routes.get(f"/{API_VTAG}/auth/api-keys", name="get_api_keys") +@routes.get(f"/{API_VTAG}/auth/api-keys", name="list_api_keys") @login_required @permission_required("user.apikey.*") @handle_plugin_requests_exceptions -async def get_api_keys(request: web.Request): +async def list_api_keys(request: web.Request): req_ctx = RequestContext.model_validate(request) - api_keys = await _service.get_api_keys( + api_keys = await _service.list_api_keys( request.app, user_id=req_ctx.user_id, product_name=req_ctx.product_name, diff --git a/services/web/server/src/simcore_service_webserver/api_keys/_service.py b/services/web/server/src/simcore_service_webserver/api_keys/_service.py index 004f604f44a..44bf926beef 100644 --- a/services/web/server/src/simcore_service_webserver/api_keys/_service.py +++ b/services/web/server/src/simcore_service_webserver/api_keys/_service.py @@ -48,7 +48,7 @@ async def create_api_key( ) -async def get_api_keys( +async def list_api_keys( app: web.Application, *, user_id: UserID,