Commit 241380e2 authored by Walter Featherstone's avatar Walter Featherstone
Browse files

Bug 83 OpenAPI examples and documentation mismatch

parent 1f01c74f
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -175,7 +175,7 @@
              }
              }
            },
            },
            "examples": {
            "examples": {
              "application/json": {
              "application/json": [{
                "DnsRule": {
                "DnsRule": {
                  "dnsRuleId": "DnsRule1",
                  "dnsRuleId": "DnsRule1",
                  "domainName": "www.example.com",
                  "domainName": "www.example.com",
@@ -184,7 +184,7 @@
                  "ttl": 300,
                  "ttl": 300,
                  "state": "ACTIVE"
                  "state": "ACTIVE"
                }
                }
              }
              }]
            }
            }
          },
          },
          "400": {
          "400": {
@@ -652,7 +652,7 @@
              }
              }
            },
            },
            "examples": {
            "examples": {
              "application/json": {
              "application/json": [{
                "TrafficRule": {
                "TrafficRule": {
                  "trafficRuleId": "TrafficRule123",
                  "trafficRuleId": "TrafficRule123",
                  "serName": "ExampleService",
                  "serName": "ExampleService",
@@ -677,7 +677,7 @@
                  },
                  },
                  "state": "ACTIVE"
                  "state": "ACTIVE"
                }
                }
              }
              }]
            }
            }
          },
          },
          "400": {
          "400": {
@@ -946,7 +946,7 @@
              }
              }
            },
            },
            "examples": {
            "examples": {
              "application/json": {
              "application/json": [{
                "ServiceInfo": {
                "ServiceInfo": {
                  "serInstanceId": "ServiceInstance123",
                  "serInstanceId": "ServiceInstance123",
                  "serName": "ExampleService",
                  "serName": "ExampleService",
@@ -986,7 +986,7 @@
                  },
                  },
                  "serializer": "JSON"
                  "serializer": "JSON"
                }
                }
              }
              }]
            }
            }
          },
          },
          "400": {
          "400": {
+54 −54
Original line number Original line Diff line number Diff line
@@ -139,7 +139,7 @@ paths:
                  $ref: '#/definitions/DnsRule'
                  $ref: '#/definitions/DnsRule'
          examples:
          examples:
            application/json:
            application/json:
              DnsRule:
              - DnsRule:
                  dnsRuleId: DnsRule1
                  dnsRuleId: DnsRule1
                  domainName: www.example.com
                  domainName: www.example.com
                  ipAddressType: IP_V4
                  ipAddressType: IP_V4
@@ -439,7 +439,7 @@ paths:
                  $ref: '#/definitions/TrafficRule'
                  $ref: '#/definitions/TrafficRule'
          examples:
          examples:
            application/json:
            application/json:
              TrafficRule:
              - TrafficRule:
                  trafficRuleId: TrafficRule123
                  trafficRuleId: TrafficRule123
                  serName: ExampleService
                  serName: ExampleService
                  filterType: FLOW
                  filterType: FLOW
@@ -627,7 +627,7 @@ paths:
                  $ref: '#/definitions/ServiceInfo'
                  $ref: '#/definitions/ServiceInfo'
          examples:
          examples:
            application/json:
            application/json:
              ServiceInfo:
              - ServiceInfo:
                  serInstanceId: ServiceInstance123
                  serInstanceId: ServiceInstance123
                  serName: ExampleService
                  serName: ExampleService
                  serCategory:
                  serCategory:
+7 −7
Original line number Original line Diff line number Diff line
@@ -15,7 +15,7 @@ responses:
            $ref: '#/definitions/DnsRule'
            $ref: '#/definitions/DnsRule'
    examples:
    examples:
      application/json:
      application/json:
        DnsRule:
        - DnsRule:
            dnsRuleId: DnsRule1
            dnsRuleId: DnsRule1
            domainName: www.example.com
            domainName: www.example.com
            ipAddressType: IP_V4
            ipAddressType: IP_V4
+14 −14
Original line number Original line Diff line number Diff line
@@ -13,7 +13,7 @@ responses:
          $ref: '#/definitions/TrafficRule'
          $ref: '#/definitions/TrafficRule'
    examples:
    examples:
      application/json:
      application/json:
        TrafficRule:
        - TrafficRule:
            trafficRuleId: TrafficRule123
            trafficRuleId: TrafficRule123
            serName: ExampleService
            serName: ExampleService
            filterType: FLOW
            filterType: FLOW
+29 −29
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ responses:
            $ref: '#/definitions/ServiceInfo'
            $ref: '#/definitions/ServiceInfo'
    examples:
    examples:
      application/json:
      application/json:
        ServiceInfo:
        - ServiceInfo:
            serInstanceId: ServiceInstance123
            serInstanceId: ServiceInstance123
            serName: ExampleService
            serName: ExampleService
            serCategory:
            serCategory: