44from models_library .api_schemas_api_server .pricing_plans import ServicePricingPlanGet
55from models_library .api_schemas_webserver .catalog import (
66 CatalogServiceGet ,
7+ CatalogServiceListItem ,
78 CatalogServiceUpdate ,
89 ServiceInputGet ,
910 ServiceInputKey ,
3132)
3233
3334
34- #
35- # /catalog/services/* COLLECTION
36- #
37-
38-
3935@router .get (
4036 "/catalog/services/-/latest" ,
41- response_model = Page [CatalogServiceGet ],
37+ response_model = Page [CatalogServiceListItem ],
4238)
43- def list_services_latest (_query_params : Annotated [ListServiceParams , Depends ()]):
39+ def list_services_latest (_query : Annotated [ListServiceParams , Depends ()]):
4440 pass
4541
4642
4743@router .get (
4844 "/catalog/services/{service_key}/{service_version}" ,
4945 response_model = Envelope [CatalogServiceGet ],
5046)
51- def get_service (_path_params : Annotated [ServicePathParams , Depends ()]):
52- ...
47+ def get_service (_path : Annotated [ServicePathParams , Depends ()]): ...
5348
5449
5550@router .patch (
5651 "/catalog/services/{service_key}/{service_version}" ,
5752 response_model = Envelope [CatalogServiceGet ],
5853)
5954def update_service (
60- _path_params : Annotated [ServicePathParams , Depends ()],
61- _update : CatalogServiceUpdate ,
62- ):
63- ...
55+ _path : Annotated [ServicePathParams , Depends ()],
56+ _body : CatalogServiceUpdate ,
57+ ): ...
6458
6559
6660@router .get (
6761 "/catalog/services/{service_key}/{service_version}/inputs" ,
6862 response_model = Envelope [list [ServiceInputGet ]],
6963)
7064def list_service_inputs (
71- _path_params : Annotated [ServicePathParams , Depends ()],
72- ):
73- ...
65+ _path : Annotated [ServicePathParams , Depends ()],
66+ ): ...
7467
7568
7669@router .get (
7770 "/catalog/services/{service_key}/{service_version}/inputs/{input_key}" ,
7871 response_model = Envelope [ServiceInputGet ],
7972)
8073def get_service_input (
81- _path_params : Annotated [_ServiceInputsPathParams , Depends ()],
82- ):
83- ...
74+ _path : Annotated [_ServiceInputsPathParams , Depends ()],
75+ ): ...
8476
8577
8678@router .get (
8779 "/catalog/services/{service_key}/{service_version}/inputs:match" ,
8880 response_model = Envelope [list [ServiceInputKey ]],
8981)
9082def get_compatible_inputs_given_source_output (
91- _path_params : Annotated [ServicePathParams , Depends ()],
92- _query_params : Annotated [_FromServiceOutputParams , Depends ()],
93- ):
94- ...
83+ _path : Annotated [ServicePathParams , Depends ()],
84+ _query : Annotated [_FromServiceOutputParams , Depends ()],
85+ ): ...
9586
9687
9788@router .get (
9889 "/catalog/services/{service_key}/{service_version}/outputs" ,
9990 response_model = Envelope [list [ServiceOutputKey ]],
10091)
10192def list_service_outputs (
102- _path_params : Annotated [ServicePathParams , Depends ()],
103- ):
104- ...
93+ _path : Annotated [ServicePathParams , Depends ()],
94+ ): ...
10595
10696
10797@router .get (
10898 "/catalog/services/{service_key}/{service_version}/outputs/{output_key}" ,
10999 response_model = Envelope [list [ServiceOutputGet ]],
110100)
111101def get_service_output (
112- _path_params : Annotated [_ServiceOutputsPathParams , Depends ()],
113- ):
114- ...
102+ _path : Annotated [_ServiceOutputsPathParams , Depends ()],
103+ ): ...
115104
116105
117106@router .get (
118107 "/catalog/services/{service_key}/{service_version}/outputs:match" ,
119108 response_model = Envelope [list [ServiceOutputKey ]],
120109)
121110def get_compatible_outputs_given_target_input (
122- _path_params : Annotated [ServicePathParams , Depends ()],
123- _query_params : Annotated [_ToServiceInputsParams , Depends ()],
124- ):
125- ...
111+ _path : Annotated [ServicePathParams , Depends ()],
112+ _query : Annotated [_ToServiceInputsParams , Depends ()],
113+ ): ...
126114
127115
128116@router .get (
129117 "/catalog/services/{service_key}/{service_version}/resources" ,
130118 response_model = Envelope [ServiceResourcesGet ],
131119)
132120def get_service_resources (
133- _params : Annotated [ServicePathParams , Depends ()],
134- ):
135- ...
121+ _path : Annotated [ServicePathParams , Depends ()],
122+ ): ...
136123
137124
138125@router .get (
@@ -142,6 +129,5 @@ def get_service_resources(
142129 tags = ["pricing-plans" ],
143130)
144131async def get_service_pricing_plan (
145- _params : Annotated [ServicePathParams , Depends ()],
146- ):
147- ...
132+ _path : Annotated [ServicePathParams , Depends ()],
133+ ): ...
0 commit comments