From 029c28b23d6987b18233eb38057194eef0b78ad6 Mon Sep 17 00:00:00 2001 From: Shlomi Hadad Date: Mon, 27 Nov 2017 20:44:32 +0200 Subject: [PATCH] Added example to DNS rule Change-Id: I0604b9108e1f77a0ee6b753ed3e1fd905f5a16fb Signed-off-by: Shlomi Hadad --- examples/DnsRule.json | 10 ++++++++++ examples/DnsRule.yaml | 7 +++++++ paths/ApplicationsDnsRule.GET.yaml | 5 ++++- paths/ApplicationsDnsRule.PUT.yaml | 6 +++++- 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 examples/DnsRule.json create mode 100644 examples/DnsRule.yaml diff --git a/examples/DnsRule.json b/examples/DnsRule.json new file mode 100644 index 0000000..0ec606f --- /dev/null +++ b/examples/DnsRule.json @@ -0,0 +1,10 @@ +{ + "DnsRule": { + "dnsRuleId": "DnsRule1", + "domainName": "www.example.com", + "ipAddressType": "IP_V4", + "ipAddress": "146.241.7.3", + "ttl": 300, + "state": "ACTIVE" + } +} \ No newline at end of file diff --git a/examples/DnsRule.yaml b/examples/DnsRule.yaml new file mode 100644 index 0000000..b140e94 --- /dev/null +++ b/examples/DnsRule.yaml @@ -0,0 +1,7 @@ +DnsRule: + dnsRuleId: DnsRule1 + domainName: www.example.com + ipAddressType: IP_V4 + ipAddress: 146.241.7.3 + ttl: 300 + state: ACTIVE diff --git a/paths/ApplicationsDnsRule.GET.yaml b/paths/ApplicationsDnsRule.GET.yaml index a2d2346..3d6ada9 100644 --- a/paths/ApplicationsDnsRule.GET.yaml +++ b/paths/ApplicationsDnsRule.GET.yaml @@ -10,4 +10,7 @@ responses: type: object properties: DnsRule: - $ref: '#/definitions/DnsRule' \ No newline at end of file + $ref: '#/definitions/DnsRule' + examples: + application/json: + $ref: '../examples/DnsRule.json' \ No newline at end of file diff --git a/paths/ApplicationsDnsRule.PUT.yaml b/paths/ApplicationsDnsRule.PUT.yaml index 00542f7..c2c3dbd 100644 --- a/paths/ApplicationsDnsRule.PUT.yaml +++ b/paths/ApplicationsDnsRule.PUT.yaml @@ -12,4 +12,8 @@ responses: type: object properties: DnsRule: - $ref: '#/definitions/DnsRule' \ No newline at end of file + $ref: '#/definitions/DnsRule' + + examples: + application/json: + $ref: '../examples/DnsRule.json' \ No newline at end of file -- GitLab