diff --git a/services/TS29222_CAPIF_Discover_Service_API/service_apis/controllers/default_controller.py b/services/TS29222_CAPIF_Discover_Service_API/service_apis/controllers/default_controller.py index 05c6d6a440ab84fdeb7df321e913fcc3aa74ce52..e6b41b08c4877084cf2e81ba16474d08c6686cc1 100644 --- a/services/TS29222_CAPIF_Discover_Service_API/service_apis/controllers/default_controller.py +++ b/services/TS29222_CAPIF_Discover_Service_API/service_apis/controllers/default_controller.py @@ -55,18 +55,7 @@ def all_service_apis_get(api_invoker_id, api_name=None, api_version=None, comm_t :rtype: Union[DiscoveredAPIs, Tuple[DiscoveredAPIs, int], Tuple[DiscoveredAPIs, int, Dict[str, str]] """ - if request.is_json: - comm_type = CommunicationType.from_dict(request.get_json()()) # noqa: E501 - if request.is_json: - protocol = Protocol.from_dict(request.get_json()()) # noqa: E501 - if request.is_json: - data_format = DataFormat.from_dict(request.get_json()()) # noqa: E501 - if request.is_json: - preferred_aef_loc = AefLocation.from_dict(request.get_json()()) # noqa: E501 - if request.is_json: - ue_ip_addr = IpAddrInfo.from_dict(request.get_json()()) # noqa: E501 - if request.is_json: - service_kpis = ServiceKpis.from_dict(request.get_json()()) # noqa: E501 + current_app.logger.info("Discovering service apis") query_params = {"api_name": api_name, "api_version": api_version, "comm_type": comm_type, diff --git a/services/TS29222_CAPIF_Discover_Service_API/service_apis/openapi/openapi.yaml b/services/TS29222_CAPIF_Discover_Service_API/service_apis/openapi/openapi.yaml index f1304c275fc8ddd3acf066d1a503040d33deaee2..c0c2608827529438b279e370570467dbc75aa6c3 100644 --- a/services/TS29222_CAPIF_Discover_Service_API/service_apis/openapi/openapi.yaml +++ b/services/TS29222_CAPIF_Discover_Service_API/service_apis/openapi/openapi.yaml @@ -1183,6 +1183,7 @@ components: type: string type: object CommunicationType: + type: string anyOf: - enum: - REQUEST_RESPONSE @@ -1197,6 +1198,7 @@ components: \ type subscribe-notify.\n" title: CommunicationType Protocol: + type: string anyOf: - enum: - HTTP_1_1 @@ -1214,6 +1216,7 @@ components: \ Indicates that the protocol is Websocket.\n" title: Protocol DataFormat: + type: string anyOf: - enum: - JSON