Commit 503df83b authored by Muhammad Hamza's avatar Muhammad Hamza
Browse files

fix examples in MEC011 APIs

parent d63c8b48
Loading
Loading
Loading
Loading
Loading
+82 −78
Original line number Original line Diff line number Diff line
@@ -121,7 +121,8 @@
                },
                },
                "examples": [
                "examples": [
                  {
                  {
                    "TrafficRule": [
                    "TrafficRule": {
                      "value": [
                        {
                        {
                          "trafficRuleId": "TrafficRule123",
                          "trafficRuleId": "TrafficRule123",
                          "filterType": "FLOW",
                          "filterType": "FLOW",
@@ -182,6 +183,7 @@
                        }
                        }
                      ]
                      ]
                    }
                    }
                  }
                ]
                ]
              }
              }
            }
            }
@@ -569,7 +571,8 @@
                },
                },
                "examples": [
                "examples": [
                  {
                  {
                    "DnsRules": [
                    "DnsRules": {
                      "value": [
                        {
                        {
                          "dnsRuleId": "DnsRule1",
                          "dnsRuleId": "DnsRule1",
                          "domainName": "www.example.com",
                          "domainName": "www.example.com",
@@ -588,6 +591,7 @@
                        }
                        }
                      ]
                      ]
                    }
                    }
                  }
                ]
                ]
              }
              }
            }
            }
+57 −55
Original line number Original line Diff line number Diff line
@@ -84,7 +84,8 @@ paths:
                      state: ACTIVE
                      state: ACTIVE
                contentMediaType: application/json
                contentMediaType: application/json
              examples:
              examples:
                - TrafficRule:
                - TrafficRules:
                    value:
                      - trafficRuleId: TrafficRule123
                      - trafficRuleId: TrafficRule123
                        filterType: FLOW
                        filterType: FLOW
                        priority: 1
                        priority: 1
@@ -434,6 +435,7 @@ paths:
                contentMediaType: application/json
                contentMediaType: application/json
              examples:
              examples:
                - DnsRules:
                - DnsRules:
                    value:
                      - dnsRuleId: DnsRule1
                      - dnsRuleId: DnsRule1
                        domainName: www.example.com
                        domainName: www.example.com
                        ipAddressType: IP_V4
                        ipAddressType: IP_V4
+230 −196
Original line number Original line Diff line number Diff line
@@ -595,6 +595,46 @@
                              "href": "http://example.com/"
                              "href": "http://example.com/"
                            }
                            }
                          }
                          }
                        },
                        {
                          "serInstanceId": "ServiceInstance345",
                          "serName": "ExampleService",
                          "serCategory": {
                            "href": "catItem1",
                            "id": "id12345",
                            "name": "RNI",
                            "version": "version1"
                          },
                          "version": "ServiceVersion1",
                          "state": "ACTIVE",
                          "transportInfo": {
                            "id": "TransId12345",
                            "name": "REST",
                            "description": "REST API",
                            "type": "REST_HTTP",
                            "protocol": "HTTP",
                            "version": "2.0",
                            "endpoint": {
                              "addresses": [
                                {
                                  "host": "192.0.2.1",
                                  "port": 8080
                                }
                              ]
                            },
                            "security": {
                              "oAuth2Info": {
                                "grantTypes": ["OAUTH2_CLIENT_CREDENTIALS"],
                                "tokenEndpoint": "/mecSerMgmtApi/security/TokenEndPoint"
                              }
                            }
                          },
                          "serializer": "JSON",
                          "_links": {
                            "self": {
                              "href": "http://example.com/"
                            }
                          }
                        }
                        }
                      ]
                      ]
                    }
                    }
@@ -733,7 +773,6 @@
                "examples": [
                "examples": [
                  {
                  {
                    "ServiceInfo": {
                    "ServiceInfo": {
                      "value": {
                      "serInstanceId": "ServiceInstance123",
                      "serInstanceId": "ServiceInstance123",
                      "serName": "ExampleService",
                      "serName": "ExampleService",
                      "serCategory": {
                      "serCategory": {
@@ -769,7 +808,6 @@
                      }
                      }
                    }
                    }
                  }
                  }
                  }
                ]
                ]
              }
              }
            }
            }
@@ -866,7 +904,6 @@
                "examples": [
                "examples": [
                  {
                  {
                    "ServiceInfo": {
                    "ServiceInfo": {
                      "value": {
                      "serInstanceId": "ServiceInstance123",
                      "serInstanceId": "ServiceInstance123",
                      "serName": "ExampleService",
                      "serName": "ExampleService",
                      "serCategory": {
                      "serCategory": {
@@ -902,7 +939,6 @@
                      }
                      }
                    }
                    }
                  }
                  }
                  }
                ]
                ]
              }
              }
            }
            }
@@ -1007,7 +1043,6 @@
                "examples": [
                "examples": [
                  {
                  {
                    "ServiceInfo": {
                    "ServiceInfo": {
                      "value": {
                      "serInstanceId": "ServiceInstance123",
                      "serInstanceId": "ServiceInstance123",
                      "serName": "ExampleService",
                      "serName": "ExampleService",
                      "serCategory": {
                      "serCategory": {
@@ -1043,7 +1078,6 @@
                      }
                      }
                    }
                    }
                  }
                  }
                  }
                ]
                ]
              }
              }
            }
            }
@@ -1317,7 +1351,8 @@
                },
                },
                "examples": [
                "examples": [
                  {
                  {
                    "ServiceInfoList": [
                    "ServiceInfoList": {
                      "value": [
                        {
                        {
                          "serInstanceId": "ServiceInstance123",
                          "serInstanceId": "ServiceInstance123",
                          "serName": "ExampleService",
                          "serName": "ExampleService",
@@ -1400,6 +1435,7 @@
                        }
                        }
                      ]
                      ]
                    }
                    }
                  }
                ]
                ]
              }
              }
            }
            }
@@ -1505,7 +1541,6 @@
                "examples": [
                "examples": [
                  {
                  {
                    "ServiceInfo": {
                    "ServiceInfo": {
                      "value": {
                      "serInstanceId": "ServiceInstance123",
                      "serInstanceId": "ServiceInstance123",
                      "serName": "ExampleService",
                      "serName": "ExampleService",
                      "serCategory": {
                      "serCategory": {
@@ -1541,7 +1576,6 @@
                      }
                      }
                    }
                    }
                  }
                  }
                  }
                ]
                ]
              }
              }
            }
            }
+200 −174
Original line number Original line Diff line number Diff line
@@ -502,6 +502,35 @@ paths:
                        _links:
                        _links:
                          self:
                          self:
                            href: http://example.com/
                            href: http://example.com/
                      - serInstanceId: ServiceInstance345
                        serName: ExampleService
                        serCategory:
                          href: catItem1
                          id: id12345
                          name: RNI
                          version: version1
                        version: ServiceVersion1
                        state: ACTIVE
                        transportInfo:
                          id: TransId12345
                          name: REST
                          description: REST API
                          type: REST_HTTP
                          protocol: HTTP
                          version: '2.0'
                          endpoint:
                            addresses:
                              - host: 192.0.2.1
                                port: 8080
                          security:
                            oAuth2Info:
                              grantTypes:
                                - OAUTH2_CLIENT_CREDENTIALS
                              tokenEndpoint: /mecSerMgmtApi/security/TokenEndPoint
                        serializer: JSON
                        _links:
                          self:
                            href: http://example.com/
        '400':
        '400':
          description: >-
          description: >-
            Bad Request. It is used to indicate that incorrect parameters were
            Bad Request. It is used to indicate that incorrect parameters were
@@ -609,7 +638,6 @@ paths:
                $ref: '#/components/schemas/ServiceInfo'
                $ref: '#/components/schemas/ServiceInfo'
              examples:
              examples:
                - ServiceInfo:
                - ServiceInfo:
                    value:
                    serInstanceId: ServiceInstance123
                    serInstanceId: ServiceInstance123
                    serName: ExampleService
                    serName: ExampleService
                    serCategory:
                    serCategory:
@@ -715,7 +743,6 @@ paths:
                $ref: '#/components/schemas/ServiceInfo'
                $ref: '#/components/schemas/ServiceInfo'
              examples:
              examples:
                - ServiceInfo:
                - ServiceInfo:
                    value:
                    serInstanceId: ServiceInstance123
                    serInstanceId: ServiceInstance123
                    serName: ExampleService
                    serName: ExampleService
                    serCategory:
                    serCategory:
@@ -826,7 +853,6 @@ paths:
                $ref: '#/components/schemas/ServiceInfo'
                $ref: '#/components/schemas/ServiceInfo'
              examples:
              examples:
                - ServiceInfo:
                - ServiceInfo:
                    value:
                    serInstanceId: ServiceInstance123
                    serInstanceId: ServiceInstance123
                    serName: ExampleService
                    serName: ExampleService
                    serCategory:
                    serCategory:
@@ -1085,6 +1111,7 @@ paths:
                contentMediaType: application/json
                contentMediaType: application/json
              examples:
              examples:
                - ServiceInfoList:
                - ServiceInfoList:
                    value:
                      - serInstanceId: ServiceInstance123
                      - serInstanceId: ServiceInstance123
                        serName: ExampleService
                        serName: ExampleService
                        serCategory:
                        serCategory:
@@ -1227,7 +1254,6 @@ paths:
                $ref: '#/components/schemas/ServiceInfo'
                $ref: '#/components/schemas/ServiceInfo'
              examples:
              examples:
                - ServiceInfo:
                - ServiceInfo:
                    value:
                    serInstanceId: ServiceInstance123
                    serInstanceId: ServiceInstance123
                    serName: ExampleService
                    serName: ExampleService
                    serCategory:
                    serCategory: