Commit d63c8b48 authored by Muhammad Hamza's avatar Muhammad Hamza
Browse files

fix examples in MEC011 APIs

parent dd72d0cf
Loading
Loading
Loading
Loading
Loading
+200 −438

File changed.

Preview size limit exceeded, changes collapsed.

+61 −38
Original line number Diff line number Diff line
@@ -62,48 +62,71 @@ paths:
                description: ''
                examples:
                  - - trafficRuleId: TrafficRule123
                      serName: ExampleService
                      filterType: FLOW
                      priority: 1
                      trafficFilter:
                        - srcAddress:
                            - 192.168.2.0/24
                            - 192.168.3.0/24
                          dstAddress:
                            - 192.127.4.100/32
                            - 192.127.4.101/32
                          dstAddress:
                            - 192.127.4.102/32
                            - 192.127.4.103/32
                          srcPort:
                            - '80'
                          dstPort:
                            - '80'
                      action: FORWARD_DECAPSULATED
                      dstInterface:
                        - dstInterface0: null
                        - dstInterface: null
                          interfaceType: IP
                          tunnelInfo: tunnel
                          dstIpAddress: 20.1.1.1
                        - dstInterface1: null
                          interfaceType: IP
                          dstIpAddress: 20.1.1.2
                      state: ACTIVE
                contentMediaType: application/json
              examples:
                TrafficRules:
                  value:
                - TrafficRule:
                    - trafficRuleId: TrafficRule123
                      serName: ExampleService
                      filterType: FLOW
                      priority: 1
                      trafficFilter:
                        - srcAddress:
                            - 192.168.2.0/24
                            - 192.168.3.0/24
                          dstAddress:
                            - 192.127.4.100/32
                            - 192.127.4.101/32
                          dstAddress:
                            - 192.127.4.102/32
                            - 192.127.4.103/32
                          srcPort:
                            - '80'
                          dstPort:
                            - '80'
                      action: FORWARD_DECAPSULATED
                      dstInterface:
                        - dstInterface0: null
                        - dstInterface: null
                          interfaceType: IP
                          tunnelInfo: tunnel
                          dstIpAddress: 20.1.1.1
                      state: ACTIVE
                    - trafficRuleId: TrafficRule456
                      filterType: FLOW
                      priority: 1
                      trafficFilter:
                        - srcAddress:
                            - 192.127.4.104/32
                            - 192.127.4.105/32
                          dstAddress:
                            - 192.127.4.106/32
                            - 192.127.4.107/32
                          srcPort:
                            - '80'
                          dstPort:
                            - '80'
                      action: FORWARD_DECAPSULATED
                      dstInterface:
                        - dstInterface: null
                          interfaceType: IP
                          tunnelInfo: tunnel
                          dstIpAddress: 20.1.1.2
                      state: ACTIVE
        '400':
          description: >-
            Bad Request. It is used to indicate that incorrect parameters were
@@ -180,24 +203,26 @@ paths:
              schema:
                $ref: '#/components/schemas/TrafficRule'
              examples:
                TrafficRule:
                  value:
                - TrafficRule:
                    trafficRuleId: TrafficRule123
                    serName: ExampleService
                    filterType: FLOW
                    priority: 1
                    trafficFilter:
                      - srcAddress:
                          - 192.168.2.0/24
                          - 192.168.3.0/24
                        dstAddress:
                          - 192.127.4.100/32
                          - 192.127.4.101/32
                        dstAddress:
                          - 192.127.4.102/32
                          - 192.127.4.103/32
                        srcPort:
                          - '80'
                        dstPort:
                          - '80'
                    action: FORWARD_DECAPSULATED
                    dstInterface:
                      - dstInterface0: null
                      - dstInterface: null
                        interfaceType: IP
                        tunnelInfo: tunnel
                        dstIpAddress: 20.1.1.1
                    state: ACTIVE
        '400':
@@ -284,24 +309,27 @@ paths:
              schema:
                $ref: '#/components/schemas/TrafficRule'
              examples:
                TrafficRule:
                  value:
                - TrafficRule:
                    trafficRuleId: TrafficRule123
                    serName: ExampleService
                    filterType: FLOW
                    priority: 1
                    trafficFilter:
                      - srcAddress:
                          - 192.168.2.0/24
                          - 192.168.3.0/24
                        dstAddress:
                          - 192.127.4.100/32
                          - 192.127.4.101/32
                        dstAddress:
                          - 192.127.4.102/32
                          - 192.127.4.103/32
                        srcPort:
                          - '80'
                        dstPort:
                          - '80'
                    action: FORWARD_DECAPSULATED
                    dstInterface:
                      - dstInterface0: null
                        interfaceType: IP
                        tunnelInfo: tunnel
                        dstIpAddress: 20.1.1.1
                    state: ACTIVE
        '400':
@@ -405,8 +433,7 @@ paths:
                      state: INACTIVE
                contentMediaType: application/json
              examples:
                DnsRules:
                  value:
                - DnsRules:
                    - dnsRuleId: DnsRule1
                      domainName: www.example.com
                      ipAddressType: IP_V4
@@ -495,8 +522,7 @@ paths:
              schema:
                $ref: '#/components/schemas/DnsRule'
              examples:
                DnsRule:
                  value:
                - DnsRule:
                    dnsRuleId: DnsRule1
                    domainName: www.example.com
                    ipAddressType: IP_V4
@@ -582,8 +608,7 @@ paths:
              schema:
                $ref: '#/components/schemas/DnsRule'
              examples:
                DnsRule:
                  value:
                - DnsRule:
                    dnsRuleId: DnsRule1
                    domainName: www.example.com
                    ipAddressType: IP_V4
@@ -2360,12 +2385,12 @@ components:
          type: string
          description: Destination address of the tunnel
          examples:
            - '?'
            - '192.127.4.100/32'
        tunnelSrcAddress:
          type: string
          description: Source address of the tunnel
          examples:
            - '?'
            - '192.127.4.101/32'
      description: This type represents the tunnel information.
    TimeSourceStatus:
      title: TimeSourceStatus
@@ -2733,5 +2758,3 @@ components:
          schema:
            $ref: '#/components/schemas/AppTerminationNotification'
      required: true
 No newline at end of file
security:
  - {}
+321 −417

File changed.

Preview size limit exceeded, changes collapsed.

+191 −141
Original line number Diff line number Diff line
@@ -466,9 +466,12 @@ paths:
                              - OAUTH2_CLIENT_CREDENTIALS
                            tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                      serializer: JSON
                      _links:
                        self:
                          href: http://example.com/
                contentMediaType: application/json
              examples:
                ServiceInfoList:
                - ServiceInfoList:
                    value:
                      - serInstanceId: ServiceInstance123
                        serName: ExampleService
@@ -496,6 +499,9 @@ paths:
                                - OAUTH2_CLIENT_CREDENTIALS
                              tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                        serializer: JSON
                        _links:
                          self:
                            href: http://example.com/
        '400':
          description: >-
            Bad Request. It is used to indicate that incorrect parameters were
@@ -602,7 +608,7 @@ paths:
              schema:
                $ref: '#/components/schemas/ServiceInfo'
              examples:
                ServiceInfo:
                - ServiceInfo:
                    value:
                      serInstanceId: ServiceInstance123
                      serName: ExampleService
@@ -629,6 +635,9 @@ paths:
                              - OAUTH2_CLIENT_CREDENTIALS
                            tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                      serializer: JSON
                      _links:
                          self:
                            href: http://example.com/
        '400':
          description: >-
            Bad Request. It is used to indicate that incorrect parameters were
@@ -705,7 +714,7 @@ paths:
              schema:
                $ref: '#/components/schemas/ServiceInfo'
              examples:
                ServiceInfo:
                - ServiceInfo:
                    value:
                      serInstanceId: ServiceInstance123
                      serName: ExampleService
@@ -732,6 +741,9 @@ paths:
                              - OAUTH2_CLIENT_CREDENTIALS
                            tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                      serializer: JSON
                      _links:
                        self:
                          href: http://example.com/
        '400':
          description: >-
            Bad Request. It is used to indicate that incorrect parameters were
@@ -813,7 +825,7 @@ paths:
              schema:
                $ref: '#/components/schemas/ServiceInfo'
              examples:
                ServiceInfo:
                - ServiceInfo:
                    value:
                      serInstanceId: ServiceInstance123
                      serName: ExampleService
@@ -840,6 +852,9 @@ paths:
                              - OAUTH2_CLIENT_CREDENTIALS
                            tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                      serializer: JSON
                      _links:
                          self:
                            href: http://example.com/
        '400':
          description: >-
            Bad Request. It is used to indicate that incorrect parameters were
@@ -1064,10 +1079,12 @@ paths:
                              - OAUTH2_CLIENT_CREDENTIALS
                            tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                      serializer: JSON
                      _links:
                        self:
                          href: http://example.com/
                contentMediaType: application/json
              examples:
                ServiceInfoList:
                  value:
                - ServiceInfoList:
                    - serInstanceId: ServiceInstance123
                      serName: ExampleService
                      serCategory:
@@ -1094,6 +1111,38 @@ paths:
                              - OAUTH2_CLIENT_CREDENTIALS
                            tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                      serializer: JSON
                      _links:
                        self:
                          href: http://example.com/
                    - serInstanceId: ServiceInstance345
                      serName: ExampleService
                      serCategory:
                        href: catItem1
                        id: id12345
                        name: RNI
                        version: version1
                      version: ServiceVersion1
                      state: ACTIVE
                      transportInfo:
                        id: TransId12345
                        name: REST
                        description: REST API
                        type: REST_HTTP
                        protocol: HTTP
                        version: '2.0'
                        endpoint:
                          addresses:
                            - host: 192.0.2.1
                              port: 8080
                        security:
                          oAuth2Info:
                            grantTypes:
                              - OAUTH2_CLIENT_CREDENTIALS
                            tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                      serializer: JSON
                      _links:
                        self:
                          href: http://example.com/
        '400':
          description: >-
            Bad Request. It is used to indicate that incorrect parameters were
@@ -1177,7 +1226,7 @@ paths:
              schema:
                $ref: '#/components/schemas/ServiceInfo'
              examples:
                ServiceInfo:
                - ServiceInfo:
                    value:
                      serInstanceId: ServiceInstance123
                      serName: ExampleService
@@ -1204,6 +1253,9 @@ paths:
                              - OAUTH2_CLIENT_CREDENTIALS
                            tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                      serializer: JSON
                      _links:
                        self:
                          href: http://example.com/
        '400':
          description: >-
            Bad Request. It is used to indicate that incorrect parameters were
@@ -2034,5 +2086,3 @@ components:
          schema:
            $ref: '#/components/schemas/ServiceAvailabilityNotification'
      required: true
 No newline at end of file
security:
  - {}