Commit fa70c2d6 authored by Stavros's avatar Stavros
Browse files

Change type in openapi.yaml to string

parent e955e835
Loading
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -55,18 +55,15 @@ 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,
+6 −3
Original line number Diff line number Diff line
@@ -52,7 +52,8 @@ paths:
        name: comm-type
        required: false
        schema:
          $ref: '#/components/schemas/CommunicationType'
          type: string
#          $ref: '#/components/schemas/CommunicationType'
        style: form
      - description: Protocol used by the API.
        explode: true
@@ -60,7 +61,8 @@ paths:
        name: protocol
        required: false
        schema:
          $ref: '#/components/schemas/Protocol'
          type: string
#          $ref: '#/components/schemas/Protocol'
        style: form
      - description: AEF identifer.
        explode: true
@@ -77,7 +79,8 @@ paths:
        name: data-format
        required: false
        schema:
          $ref: '#/components/schemas/DataFormat'
          type: string
#          $ref: '#/components/schemas/DataFormat'
        style: form
      - description: The service API category to which the service API belongs to.
        explode: true