Skip to content

Commit 449f53c

Browse files
committed
✨ [Backend] Update solvers endpoint to list all available solvers with pagination and improve method naming for clarity
1 parent e68f0ca commit 449f53c

File tree

1 file changed

+3
-3
lines changed
  • services/api-server/src/simcore_service_api_server/api/routes

1 file changed

+3
-3
lines changed

services/api-server/src/simcore_service_api_server/api/routes/solvers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ async def list_solvers(
8484
"/page",
8585
response_model=Page[Solver],
8686
description=create_route_description(
87-
base="Lists the latest version of all available solvers (paginated)",
87+
base="Lists all available solvers (paginated)",
8888
changelog=[
8989
FMSG_CHANGELOG_NEW_IN_VERSION.format("0.9-rc1"),
9090
],
9191
),
9292
include_in_schema=False, # TO BE RELEASED in 0.9
9393
)
94-
async def list_solvers_paginated(
94+
async def list_all_solvers_paginated(
9595
page_params: Annotated[PaginationParams, Depends()],
9696
solver_service: Annotated[SolverService, Depends(get_solver_service)],
9797
filters: Annotated[SolversListFilters, Depends(get_solvers_filters)],
9898
url_for: Annotated[Callable, Depends(get_reverse_url_mapper)],
9999
):
100-
solvers, page_meta = await solver_service.latest_solvers(
100+
solvers, page_meta = await solver_service.list_all_solvers(
101101
pagination_offset=page_params.offset,
102102
pagination_limit=page_params.limit,
103103
filter_by_solver_key_pattern=filters.solver_id,

0 commit comments

Comments
 (0)