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 Original line 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]]
    :rtype: Union[DiscoveredAPIs, Tuple[DiscoveredAPIs, int], Tuple[DiscoveredAPIs, int, Dict[str, str]]
    """
    """

    if request.is_json:
    if request.is_json:
        comm_type = CommunicationType.from_dict(request.get_json()())  # noqa: E501
        comm_type = CommunicationType.from_dict(request.get_json()())  # noqa: E501
    if request.is_json:
        protocol = Protocol.from_dict(request.get_json()())  # noqa: E501
        protocol = Protocol.from_dict(request.get_json()())  # noqa: E501
    if request.is_json:
        data_format = DataFormat.from_dict(request.get_json()())  # noqa: E501
        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
        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
        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
        service_kpis = ServiceKpis.from_dict(request.get_json()())  # noqa: E501

    current_app.logger.info("Discovering service apis")
    current_app.logger.info("Discovering service apis")


    query_params = {"api_name": api_name, "api_version": api_version, "comm_type": comm_type,
    query_params = {"api_name": api_name, "api_version": api_version, "comm_type": comm_type,
+6 −3
Original line number Original line Diff line number Diff line
@@ -52,7 +52,8 @@ paths:
        name: comm-type
        name: comm-type
        required: false
        required: false
        schema:
        schema:
          $ref: '#/components/schemas/CommunicationType'
          type: string
#          $ref: '#/components/schemas/CommunicationType'
        style: form
        style: form
      - description: Protocol used by the API.
      - description: Protocol used by the API.
        explode: true
        explode: true
@@ -60,7 +61,8 @@ paths:
        name: protocol
        name: protocol
        required: false
        required: false
        schema:
        schema:
          $ref: '#/components/schemas/Protocol'
          type: string
#          $ref: '#/components/schemas/Protocol'
        style: form
        style: form
      - description: AEF identifer.
      - description: AEF identifer.
        explode: true
        explode: true
@@ -77,7 +79,8 @@ paths:
        name: data-format
        name: data-format
        required: false
        required: false
        schema:
        schema:
          $ref: '#/components/schemas/DataFormat'
          type: string
#          $ref: '#/components/schemas/DataFormat'
        style: form
        style: form
      - description: The service API category to which the service API belongs to.
      - description: The service API category to which the service API belongs to.
        explode: true
        explode: true