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

fix examples and identation in MEC011 APIs

parent 1d5478df
Loading
Loading
Loading
Loading
Loading
+102 −95
Original line number Diff line number Diff line
@@ -120,7 +120,8 @@
                  "contentMediaType": "application/json"
                },
                "examples": {
                  "TrafficRules": [
                  "TrafficRules": {
                    "value": [
                      {
                        "trafficRuleId": "TrafficRule123",
                        "filterType": "FLOW",
@@ -151,7 +152,7 @@
                        "state": "ACTIVE"
                      },
                      {
                      "trafficRuleId": "TrafficRule456",
                        "trafficRuleId": "TrafficRule123",
                        "filterType": "FLOW",
                        "priority": 1,
                        "trafficFilter": [
@@ -183,6 +184,7 @@
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. It is used to indicate that incorrect parameters were passed to the request.",
@@ -273,9 +275,9 @@
                "schema": {
                  "$ref": "#/components/schemas/TrafficRule"
                },
                "examples": [
                  {
                "examples": {
                  "TrafficRule": {
                    "value": {
                      "trafficRuleId": "TrafficRule123",
                      "filterType": "FLOW",
                      "priority": 1,
@@ -305,7 +307,7 @@
                      "state": "ACTIVE"
                    }
                  }
                ]
                }
              }
            }
          },
@@ -406,9 +408,9 @@
                "schema": {
                  "$ref": "#/components/schemas/TrafficRule"
                },
                "examples": [
                  {
                "examples": {
                  "TrafficRule": {
                    "value": {
                      "trafficRuleId": "TrafficRule123",
                      "serName": "ExampleService",
                      "filterType": "FLOW",
@@ -439,7 +441,7 @@
                      "state": "ACTIVE"
                    }
                  }
                ]
                }
              }
            }
          },
@@ -566,7 +568,8 @@
                  "contentMediaType": "application/json"
                },
                "examples": {
                  "DnsRules": [
                  "DnsRules": {
                    "value": [
                      {
                        "dnsRuleId": "DnsRule1",
                        "domainName": "www.example.com",
@@ -587,6 +590,7 @@
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. It is used to indicate that incorrect parameters were passed to the request.",
@@ -677,9 +681,9 @@
                "schema": {
                  "$ref": "#/components/schemas/DnsRule"
                },
                "examples": [
                  {
                "examples": {
                  "DnsRule": {
                    "value": {
                      "dnsRuleId": "DnsRule1",
                      "domainName": "www.example.com",
                      "ipAddressType": "IP_V4",
@@ -688,7 +692,7 @@
                      "state": "ACTIVE"
                    }
                  }
                ]
                }
              }
            }
          },
@@ -789,9 +793,9 @@
                "schema": {
                  "$ref": "#/components/schemas/DnsRule"
                },
                "examples": [
                  {
                "examples": {
                  "DnsRule": {
                    "value": {
                      "dnsRuleId": "DnsRule1",
                      "domainName": "www.example.com",
                      "ipAddressType": "IP_V4",
@@ -800,7 +804,7 @@
                      "state": "ACTIVE"
                    }
                  }
                ]
                }
              }
            }
          },
@@ -2886,6 +2890,9 @@
        },
        "description": "This type represents information about a transport endpoint. "
      },
      "Not_specified": {
        "description": "Not_specified"
      },
      "ServiceDependency": {
        "properties": {
          "requestedPermissions": {
+56 −35
Original line number Diff line number Diff line
@@ -60,28 +60,28 @@ paths:
                items:
                  $ref: '#/components/schemas/TrafficRule'
                description: ''
                # examples:
                #   - - trafficRuleId: TrafficRule123
                #       filterType: FLOW
                #       priority: 1
                #       trafficFilter:
                #         - srcAddress:
                #             - 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:
                #         - dstInterface: null
                #           interfaceType: IP
                #           tunnelInfo: tunnel
                #           dstIpAddress: 20.1.1.1
                #       state: ACTIVE
                examples:
                  - - trafficRuleId: TrafficRule123
                      filterType: FLOW
                      priority: 1
                      trafficFilter:
                        - srcAddress:
                            - 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:
                        - dstInterface: null
                          interfaceType: IP
                          tunnelInfo: tunnel
                          dstIpAddress: 20.1.1.1
                      state: ACTIVE
                contentMediaType: application/json
              examples:
                TrafficRules:
@@ -107,6 +107,27 @@ paths:
                          tunnelInfo: tunnel
                          dstIpAddress: 20.1.1.1
                      state: ACTIVE
                    - trafficRuleId: TrafficRule123
                      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
@@ -400,19 +421,19 @@ paths:
                items:
                  $ref: '#/components/schemas/DnsRule'
                description: ''
                # examples:
                #   - - dnsRuleId: DnsRule1
                #       domainName: www.example.com
                #       ipAddressType: IP_V4
                #       ipAddress: 146.241.7.3
                #       ttl: 300
                #       state: ACTIVE
                #     - dnsRuleId: DnsRule2
                #       domainName: www.example.com
                #       ipAddressType: IP_V4
                #       ipAddress: 146.241.7.4
                #       ttl: 300
                #       state: INACTIVE
                examples:
                  - - dnsRuleId: DnsRule1
                      domainName: www.example.com
                      ipAddressType: IP_V4
                      ipAddress: 146.241.7.3
                      ttl: 300
                      state: ACTIVE
                    - dnsRuleId: DnsRule2
                      domainName: www.example.com
                      ipAddressType: IP_V4
                      ipAddress: 146.241.7.4
                      ttl: 300
                      state: INACTIVE
                contentMediaType: application/json
              examples:
                DnsRules:
+164 −160
Original line number Diff line number Diff line
@@ -553,7 +553,8 @@
                  "contentMediaType": "application/json"
                },
                "examples": {
                  "ServiceInfoList": [
                  "ServiceInfoList": {
                    "value": [
                      {
                        "serInstanceId": "ServiceInstance123",
                        "serName": "ExampleService",
@@ -638,6 +639,7 @@
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. It is used to indicate that incorrect parameters were passed to the request.",
@@ -766,9 +768,9 @@
                "schema": {
                  "$ref": "#/components/schemas/ServiceInfo"
                },
                "examples": [
                  {
                "examples": {
                  "ServiceInfo": {
                    "value": {
                      "serInstanceId": "ServiceInstance123",
                      "serName": "ExampleService",
                      "serCategory": {
@@ -804,7 +806,7 @@
                      }
                    }
                  }
                ]
                }
              }
            }
          },
@@ -897,9 +899,9 @@
                "schema": {
                  "$ref": "#/components/schemas/ServiceInfo"
                },
                "examples": [
                  {
                "examples": {
                  "ServiceInfo": {
                    "value": {
                      "serInstanceId": "ServiceInstance123",
                      "serName": "ExampleService",
                      "serCategory": {
@@ -935,7 +937,7 @@
                      }
                    }
                  }
                ]
                }
              }
            }
          },
@@ -1036,9 +1038,9 @@
                "schema": {
                  "$ref": "#/components/schemas/ServiceInfo"
                },
                "examples": [
                  {
                "examples": {
                  "ServiceInfo": {
                    "value": {
                      "serInstanceId": "ServiceInstance123",
                      "serName": "ExampleService",
                      "serCategory": {
@@ -1074,7 +1076,7 @@
                      }
                    }
                  }
                ]
                }
              }
            }
          },
@@ -1346,7 +1348,8 @@
                  "contentMediaType": "application/json"
                },
                "examples": {
                  "ServiceInfoList": [
                  "ServiceInfoList": {
                    "value": [
                      {
                        "serInstanceId": "ServiceInstance123",
                        "serName": "ExampleService",
@@ -1431,6 +1434,7 @@
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. It is used to indicate that incorrect parameters were passed to the request.",
@@ -1530,9 +1534,9 @@
                "schema": {
                  "$ref": "#/components/schemas/ServiceInfo"
                },
                "examples": [
                  {
                "examples": {
                  "ServiceInfo": {
                    "value": {
                      "serInstanceId": "ServiceInstance123",
                      "serName": "ExampleService",
                      "serCategory": {
@@ -1568,7 +1572,7 @@
                      }
                    }
                  }
                ]
                }
              }
            }
          },
+126 −120
Original line number Diff line number Diff line
@@ -472,6 +472,7 @@ paths:
                contentMediaType: application/json
              examples:
                ServiceInfoList:
                  value:
                    - serInstanceId: ServiceInstance123
                      serName: ExampleService
                      serCategory:
@@ -636,7 +637,8 @@ paths:
              schema:
                $ref: '#/components/schemas/ServiceInfo'
              examples:
                - ServiceInfo:
                ServiceInfo:
                  value:
                    serInstanceId: ServiceInstance123
                    serName: ExampleService
                    serCategory:
@@ -741,7 +743,8 @@ paths:
              schema:
                $ref: '#/components/schemas/ServiceInfo'
              examples:
                - ServiceInfo:
                ServiceInfo:
                  value:
                    serInstanceId: ServiceInstance123
                    serName: ExampleService
                    serCategory:
@@ -851,7 +854,8 @@ paths:
              schema:
                $ref: '#/components/schemas/ServiceInfo'
              examples:
                - ServiceInfo:
                ServiceInfo:
                  value:
                    serInstanceId: ServiceInstance123
                    serName: ExampleService
                    serCategory:
@@ -1110,6 +1114,7 @@ paths:
                contentMediaType: application/json
              examples:
                ServiceInfoList:
                  value:
                    - serInstanceId: ServiceInstance123
                      serName: ExampleService
                      serCategory:
@@ -1251,7 +1256,8 @@ paths:
              schema:
                $ref: '#/components/schemas/ServiceInfo'
              examples:
                - ServiceInfo:
                ServiceInfo:
                  value:
                    serInstanceId: ServiceInstance123
                    serName: ExampleService
                    serCategory: