From cdf5a771da838968e226669581fe7a7bb807adc7 Mon Sep 17 00:00:00 2001 From: Ayesha Ayub Date: Fri, 25 Nov 2022 13:16:32 +0500 Subject: [PATCH] update BWM and MTS swagger files --- config/api/bwm-api.yaml | 80 ++++++++++++++++++++--------------------- config/api/mts-api.yaml | 56 +++++++++++++---------------- 2 files changed, 62 insertions(+), 74 deletions(-) diff --git a/config/api/bwm-api.yaml b/config/api/bwm-api.yaml index 28a1942..4c57bba 100644 --- a/config/api/bwm-api.yaml +++ b/config/api/bwm-api.yaml @@ -426,21 +426,13 @@ components: requestType: 0 sessionFilter: - protocol: protocol - sourcePort: - - sourcePort - - sourcePort - dstPort: - - dstPort - - dstPort + sourcePort: sourcePort + dstPort: dstPort sourceIp: sourceIp dstAddress: dstAddress - protocol: protocol - sourcePort: - - sourcePort - - sourcePort - dstPort: - - dstPort - - dstPort + sourcePort: sourcePort + dstPort: dstPort sourceIp: sourceIp dstAddress: dstAddress appName: appName @@ -544,16 +536,18 @@ components: properties: dstAddress: type: string - description: Destination address identity of session (including range) + description: >- + Destination address identity of session. The string for a IPv4 + address shall be formatted in the "dotted decimal" notation as + defined in IETF RFC 1166 [10]. The string for a IPv6 address shall + be formatted according to clause 4 of IETF RFC 5952 [11], with in + CIDR notation [12] used to provide the routing prefix. x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String dstPort: - minItems: 0 - type: array description: Destination port identity of session - items: - type: string - x-etsi-mec-cardinality: 0..N + type: string + x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String protocol: type: string @@ -562,25 +556,23 @@ components: x-etsi-mec-origin-type: String sourceIp: type: string - description: Source address identity of session (including range) + description: >- + Source address identity of session. The string for a IPv4 address + shall be formatted in the "dotted decimal" notation as defined in + IETF RFC 1166 [10]. The string for a IPv6 address shall be formatted + according to clause 4 of IETF RFC 5952 [11], with in CIDR notation + [12] used to provide the routing prefix. x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String sourcePort: - minItems: 0 - type: array description: Source port identity of session - items: - type: string - x-etsi-mec-cardinality: 0..N + type: string + x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String example: protocol: protocol - sourcePort: - - sourcePort - - sourcePort - dstPort: - - dstPort - - dstPort + sourcePort: sourcePort + dstPort: dstPort sourceIp: sourceIp dstAddress: dstAddress BwInfo_timeStamp: @@ -613,16 +605,18 @@ components: properties: dstAddress: type: string - description: Destination address identity of session (including range) + description: >- + Destination address identity of session. The string for a IPv4 + address shall be formatted in the "dotted decimal" notation as + defined in IETF RFC 1166 [10]. The string for a IPv6 address shall + be formatted according to clause 4 of IETF RFC 5952 [11], with in + CIDR notation [12] used to provide the routing prefix. x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String dstPort: - minItems: 0 - type: array description: Destination port identity of session - items: - type: string - x-etsi-mec-cardinality: 0..N + type: string + x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String protocol: type: string @@ -631,16 +625,18 @@ components: x-etsi-mec-origin-type: String sourceIp: type: string - description: Source address identity of session (including range) + description: >- + Source address identity of session. The string for a IPv4 address + shall be formatted in the "dotted decimal" notation as defined in + IETF RFC 1166 [10]. The string for a IPv6 address shall be formatted + according to clause 4 of IETF RFC 5952 [11], with in CIDR notation + [12] used to provide the routing prefix. x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String sourcePort: - minItems: 0 - type: array description: 'Source port identity of session ' - items: - type: string - x-etsi-mec-cardinality: 0..N + type: string + x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String responses: "204": diff --git a/config/api/mts-api.yaml b/config/api/mts-api.yaml index b16494e..7b83c63 100644 --- a/config/api/mts-api.yaml +++ b/config/api/mts-api.yaml @@ -458,24 +458,16 @@ components: flowFilter: - flowlabel: 1 protocol: 5 - sourcePort: - - 5 - - 5 + sourcePort: 5 dscp: 0 - dstPort: - - 6 - - 6 + dstPort: 6 sourceIp: sourceIp dstIp: dstIp - flowlabel: 1 protocol: 5 - sourcePort: - - 5 - - 5 + sourcePort: 5 dscp: 0 - dstPort: - - 6 - - 6 + dstPort: 6 sourceIp: sourceIp dstIp: dstIp requestType: 7 @@ -598,18 +590,20 @@ components: x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: Uint32 dstIp: + description: >- + Destination address identity of session. The string for a IPv4 + address shall be formatted in the "dotted decimal" notation as + defined in IETF RFC 1166 [10]. The string for a IPv6 address shall + be formatted according to clause 4 of IETF RFC 5952 [11], with in + CIDR notation [12] used to provide the routing prefix. type: string - description: Destination address identity of session (including range) x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String dstPort: - minItems: 0 - type: array description: Destination port identity of session - items: - type: integer - format: uint32 - x-etsi-mec-cardinality: 0..N + format: uint32 + type: integer + x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: Uint32 flowlabel: type: integer @@ -625,29 +619,27 @@ components: x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: Uint32 sourceIp: + description: >- + Source address identity of session. The string for a IPv4 address + shall be formatted in the "dotted decimal" notation as defined in + IETF RFC 1166 [10]. The string for a IPv6 address shall be formatted + according to clause 4 of IETF RFC 5952 [11], with in CIDR notation + [12] used to provide the routing prefix. type: string - description: Source address identity of session (including range) x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: String sourcePort: - minItems: 0 - type: array description: Source port identity of session - items: - type: integer - format: uint32 - x-etsi-mec-cardinality: 0..N + format: uint32 + type: integer + x-etsi-mec-cardinality: 0..1 x-etsi-mec-origin-type: Uint32 example: flowlabel: 1 protocol: 5 - sourcePort: - - 5 - - 5 + sourcePort: 5 dscp: 0 - dstPort: - - 6 - - 6 + dstPort: 6 sourceIp: sourceIp dstIp: dstIp MtsSessionInfo_qosD: -- GitLab