33from fastapi import APIRouter , Depends
44from models_library .api_schemas_api_server .pricing_plans import ServicePricingPlanGet
55from models_library .api_schemas_webserver .catalog import (
6+ CatalogLatestServiceGet ,
67 CatalogServiceGet ,
7- CatalogServiceListItem ,
88 CatalogServiceUpdate ,
99 ServiceInputGet ,
1010 ServiceInputKey ,
1515from models_library .generics import Envelope
1616from models_library .rest_pagination import Page
1717from simcore_service_webserver ._meta import API_VTAG
18- from simcore_service_webserver .catalog ._rest_controller import (
18+ from simcore_service_webserver .catalog ._controller_rest_schemas import (
19+ FromServiceOutputQueryParams ,
1920 ListServiceParams ,
21+ ServiceInputsPathParams ,
22+ ServiceOutputsPathParams ,
2023 ServicePathParams ,
21- _FromServiceOutputParams ,
22- _ServiceInputsPathParams ,
23- _ServiceOutputsPathParams ,
24- _ToServiceInputsParams ,
24+ ToServiceInputsQueryParams ,
2525)
2626
2727router = APIRouter (
3434
3535@router .get (
3636 "/catalog/services/-/latest" ,
37- response_model = Page [CatalogServiceListItem ],
37+ response_model = Page [CatalogLatestServiceGet ],
3838)
39- def list_services_latest (_query : Annotated [ListServiceParams , Depends ()]):
40- pass
39+ def list_services_latest (_query : Annotated [ListServiceParams , Depends ()]): ...
4140
4241
4342@router .get (
@@ -71,7 +70,7 @@ def list_service_inputs(
7170 response_model = Envelope [ServiceInputGet ],
7271)
7372def get_service_input (
74- _path : Annotated [_ServiceInputsPathParams , Depends ()],
73+ _path : Annotated [ServiceInputsPathParams , Depends ()],
7574): ...
7675
7776
@@ -81,7 +80,7 @@ def get_service_input(
8180)
8281def get_compatible_inputs_given_source_output (
8382 _path : Annotated [ServicePathParams , Depends ()],
84- _query : Annotated [_FromServiceOutputParams , Depends ()],
83+ _query : Annotated [FromServiceOutputQueryParams , Depends ()],
8584): ...
8685
8786
@@ -99,7 +98,7 @@ def list_service_outputs(
9998 response_model = Envelope [list [ServiceOutputGet ]],
10099)
101100def get_service_output (
102- _path : Annotated [_ServiceOutputsPathParams , Depends ()],
101+ _path : Annotated [ServiceOutputsPathParams , Depends ()],
103102): ...
104103
105104
@@ -109,7 +108,7 @@ def get_service_output(
109108)
110109def get_compatible_outputs_given_target_input (
111110 _path : Annotated [ServicePathParams , Depends ()],
112- _query : Annotated [_ToServiceInputsParams , Depends ()],
111+ _query : Annotated [ToServiceInputsQueryParams , Depends ()],
113112): ...
114113
115114
0 commit comments