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

Bug 83 OpenAPI examples and documentation mismatch


Signed-off-by: Walter Featherstone's avatarfeatherstone <walter.featherstone@viavisolutions.com>
parent 1f01c74f
...@@ -175,7 +175,7 @@ ...@@ -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 @@ ...@@ -184,7 +184,7 @@
"ttl": 300, "ttl": 300,
"state": "ACTIVE" "state": "ACTIVE"
} }
} }]
} }
}, },
"400": { "400": {
...@@ -652,7 +652,7 @@ ...@@ -652,7 +652,7 @@
} }
}, },
"examples": { "examples": {
"application/json": { "application/json": [{
"TrafficRule": { "TrafficRule": {
"trafficRuleId": "TrafficRule123", "trafficRuleId": "TrafficRule123",
"serName": "ExampleService", "serName": "ExampleService",
...@@ -677,7 +677,7 @@ ...@@ -677,7 +677,7 @@
}, },
"state": "ACTIVE" "state": "ACTIVE"
} }
} }]
} }
}, },
"400": { "400": {
...@@ -946,7 +946,7 @@ ...@@ -946,7 +946,7 @@
} }
}, },
"examples": { "examples": {
"application/json": { "application/json": [{
"ServiceInfo": { "ServiceInfo": {
"serInstanceId": "ServiceInstance123", "serInstanceId": "ServiceInstance123",
"serName": "ExampleService", "serName": "ExampleService",
...@@ -986,7 +986,7 @@ ...@@ -986,7 +986,7 @@
}, },
"serializer": "JSON" "serializer": "JSON"
} }
} }]
} }
}, },
"400": { "400": {
......
...@@ -139,7 +139,7 @@ paths: ...@@ -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: ...@@ -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: ...@@ -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:
......
...@@ -15,7 +15,7 @@ responses: ...@@ -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
......
...@@ -13,7 +13,7 @@ responses: ...@@ -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
......
...@@ -19,7 +19,7 @@ responses: ...@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment