RniAPI.json 168 KB
Newer Older
Michel Roy's avatar
Michel Roy committed
  "openapi": "3.0.0",
  "info": {
Michel Roy's avatar
Michel Roy committed
    "contact": {
      "url": "https://forge.etsi.org/rep/mec/gs012-rnis-api"
    },
Michel Roy's avatar
Michel Roy committed
    "title": "ETSI GS MEC 012 - Radio Network Information API",
    "version": "2.1.1",
    "description": "The ETSI MEC ISG MEC012 Radio Network Information API described using OpenAPI.",
    "license": {
admin_forge's avatar
admin_forge committed
      "name": "BSD-3-Clause",
      "url": "https://forge.etsi.org/legal-matters"
    }
  },
  "externalDocs": {
Michel Roy's avatar
Michel Roy committed
    "description": "ETSI GS MEC 012 Radio Network Information API, V2.1.1",
    "url": "http://www.etsi.org/deliver/etsi_gs/MEC/001_099/012/02.01.01_60/gs_mec012v020101p.pdf"
Michel Roy's avatar
Michel Roy committed
  "servers": [
Michel Roy's avatar
Michel Roy committed
      "url": "https://localhost/rni/v2"
    }
  ],
  "tags": [
    {
      "name": "rni"
    }
  ],
  "paths": {
Michel Roy's avatar
Michel Roy committed
    "/queries/rab_info": {
      "get": {
Michel Roy's avatar
Michel Roy committed
        "tags": [
Michel Roy's avatar
Michel Roy committed
          "rni"
Michel Roy's avatar
Michel Roy committed
        "summary": "Retrieve information on Radio Access Bearers",
        "description": "Queries information about the Radio Access Bearers",
        "operationId": "rab_infoGET",
        "parameters": [
          {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.AppInsId"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.CellId"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.UeIpv4Address"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.UeIpv6Address"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.NatedIpAddress"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.GtpTeid"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.ErabId"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.Qci"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.ErabMbrDl"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.ErabMbrUl"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.ErabGbrDl"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.ErabGbrUl"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response to rab_info request",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
Michel Roy's avatar
Michel Roy committed
                "schema": {
Michel Roy's avatar
Michel Roy committed
                  "$ref": "#/components/schemas/RabInfo"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/400"
          },
          "401": {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/401"
          },
          "403": {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/403"
          },
          "404": {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/404"
          },
          "406": {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/406"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/429"
Michel Roy's avatar
Michel Roy committed
        "x-swagger-router-controller": "queries"
Michel Roy's avatar
Michel Roy committed
    "/queries/plmn_info": {
      "get": {
Michel Roy's avatar
Michel Roy committed
        "tags": [
Michel Roy's avatar
Michel Roy committed
          "rni"
Michel Roy's avatar
Michel Roy committed
        "summary": "Retrieve information on the underlying Mobile Network that the MEC application is associated to",
        "description": "Queries information about the Mobile Network",
        "operationId": "plmn_infoGET",
        "parameters": [
          {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.AppInsIdArr"
          }
        ],
        "responses": {
          "200": {
Michel Roy's avatar
Michel Roy committed
            "description": "Successful response to plmn_info request",
            "content": {
              "application/json": {
Michel Roy's avatar
Michel Roy committed
                "schema": {
Michel Roy's avatar
Michel Roy committed
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlmnInfo"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/400"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/401"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/403"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/404"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/406"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/429"
Michel Roy's avatar
Michel Roy committed
        "x-swagger-router-controller": "queries"
Michel Roy's avatar
Michel Roy committed
    "/queries/s1_bearer_info": {
      "get": {
Michel Roy's avatar
Michel Roy committed
        "tags": [
Michel Roy's avatar
Michel Roy committed
          "rni"
Michel Roy's avatar
Michel Roy committed
        "summary": "Retrieve S1-U bearer information related to specific UE(s)",
        "description": "Queries information about the S1 bearer(s)",
        "operationId": "s1_bearer_infoGET",
        "parameters": [
          {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.TempUeId"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.UeIpv4Address"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.UeIpv6Address"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.NatedIpAddress"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.GtpTeid"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.CellId"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Query.ErabIdArr"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response to s1_bearer_info request",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
Michel Roy's avatar
Michel Roy committed
                  "$ref": "#/components/schemas/S1BearerInfo"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/400"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/401"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/403"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/404"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/406"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/429"
Michel Roy's avatar
Michel Roy committed
        "x-swagger-router-controller": "queries"
Michel Roy's avatar
Michel Roy committed
    "/queries/layer2_meas": {
      "get": {
Michel Roy's avatar
Michel Roy committed
        "tags": [
Michel Roy's avatar
Michel Roy committed
          "rni"
Michel Roy's avatar
Michel Roy committed
        ],
        "summary": "Retrieve information on layer 2 measurements",
        "description": "Queries information about the layer 2 measurements.",
        "operationId": "layer2_meas_infoGET",
        "parameters": [
          {
            "$ref": "#/components/parameters/Query.AppInsId"
          },
          {
            "$ref": "#/components/parameters/Query.CellId"
          },
          {
            "$ref": "#/components/parameters/Query.UeIpv4Address"
          },
          {
            "$ref": "#/components/parameters/Query.UeIpv6Address"
          },
          {
            "$ref": "#/components/parameters/Query.NatedIpAddress"
          },
          {
            "$ref": "#/components/parameters/Query.GtpTeid"
          },
          {
            "$ref": "#/components/parameters/Query.DlGbrPrbUsageCell"
          },
          {
            "$ref": "#/components/parameters/Query.UlGbrPrbUsageCell"
          },
          {
            "$ref": "#/components/parameters/Query.DlNonGbrPrbUsageCell"
          },
          {
            "$ref": "#/components/parameters/Query.UlNonGbrPrbUsageCell"
          },
          {
            "$ref": "#/components/parameters/Query.DlTotalPrbUsageCell"
          },
          {
            "$ref": "#/components/parameters/Query.UlTotalPrbUsageCell"
          },
          {
            "$ref": "#/components/parameters/Query.ReceivedDedicatedPreamblesCell"
          },
          {
            "$ref": "#/components/parameters/Query.ReceivedRandomPreamblesLowRangeCell"
          },
          {
            "$ref": "#/components/parameters/Query.ReceivedRandomPreamblesHighRangeCell"
          },
          {
            "$ref": "#/components/parameters/Query.NumberOfActiveUeDlGbrCell"
          },
          {
            "$ref": "#/components/parameters/Query.NumberOfActiveUeUlGbrCell"
          },
          {
            "$ref": "#/components/parameters/Query.NumberOfActiveUeDlNonGbrCell"
          },
          {
            "$ref": "#/components/parameters/Query.NumberOfActiveUeUlNonGbrCell"
          },
          {
            "$ref": "#/components/parameters/Query.DlGbrPdrCell"
          },
          {
            "$ref": "#/components/parameters/Query.UlGbrPdrCell"
          },
          {
            "$ref": "#/components/parameters/Query.DlNonGbrPdrCell"
          },
          {
            "$ref": "#/components/parameters/Query.UlNonGbrPdrCell"
          },
          {
            "$ref": "#/components/parameters/Query.DlGbrDelayUe"
          },
          {
            "$ref": "#/components/parameters/Query.UlGbrDelayUe"
          },
          {
            "$ref": "#/components/parameters/Query.DlNonGbrDelayUe"
          },
          {
            "$ref": "#/components/parameters/Query.UlNonGbrDelayUe"
          },
          {
            "$ref": "#/components/parameters/Query.DlGbrPdrUe"
          },
          {
            "$ref": "#/components/parameters/Query.UlGbrPdrUe"
          },
          {
            "$ref": "#/components/parameters/Query.DlNonGbrPdrUe"
          },
          {
            "$ref": "#/components/parameters/Query.UlNonGbrPdrUe"
          },
          {
            "$ref": "#/components/parameters/Query.DlGbrThroughputUe"
          },
          {
            "$ref": "#/components/parameters/Query.UlGbrThroughputUe"
          },
          {
            "$ref": "#/components/parameters/Query.DlNonGbrThroughputUe"
          },
          {
            "$ref": "#/components/parameters/Query.UlNonGbrThroughputUe"
          },
          {
            "$ref": "#/components/parameters/Query.DlGbrDataVolumeUe"
          },
          {
            "$ref": "#/components/parameters/Query.UlGbrDataVolumeUe"
          },
          {
            "$ref": "#/components/parameters/Query.DlNonGbrDataVolumeUe"
          },
          {
            "$ref": "#/components/parameters/Query.UlNonGbrDataVolumeUe"
          }
        ],
        "responses": {
          "200": {
Michel Roy's avatar
Michel Roy committed
            "description": "Successful response to layer2 measurements info request",
            "content": {
              "application/json": {
Michel Roy's avatar
Michel Roy committed
                "schema": {
Michel Roy's avatar
Michel Roy committed
                  "$ref": "#/components/schemas/L2Meas"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/400"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/401"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/403"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/404"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/406"
          },
          "414": {
            "$ref": "#/components/responses/414"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/429"
Michel Roy's avatar
Michel Roy committed
        "x-swagger-router-controller": "queries"
Michel Roy's avatar
Michel Roy committed
    "/subscriptions": {
      "get": {
Michel Roy's avatar
Michel Roy committed
        "tags": [
Michel Roy's avatar
Michel Roy committed
          "rni"
Michel Roy's avatar
Michel Roy committed
        ],
        "summary": "Retrieve information on subscriptions for notifications",
        "description": "Queries information on subscriptions for notifications",
        "operationId": "subscriptionLinkList_subscriptionsGET",
        "parameters": [
          {
            "$ref": "#/components/parameters/Query.SubscriptionType"
          }
        ],
        "responses": {
          "200": {
Michel Roy's avatar
Michel Roy committed
            "description": "Response body contains the list of links to requestors subscriptions.",
            "content": {
              "application/json": {
Michel Roy's avatar
Michel Roy committed
                "schema": {
Michel Roy's avatar
Michel Roy committed
                  "$ref": "#/components/schemas/SubscriptionLinkList"
Michel Roy's avatar
Michel Roy committed
                },
                "example": {
Michel Roy's avatar
Michel Roy committed
                  "_links": {
                    "self": {
                      "href": "http://meAppServer.example.com/rni/v2/subscriptions"
                    }
                  },
                  "subscription": [
                    {
                      "_links": {
                        "self": {
                          "href": "http://meAppServer.example.com/rni/v2/subscriptions/sub123"
                        }
                      },
                      "callbackReference": "http://my.callback.com/rni-cell-change/some-id",
                      "subscriptionType": "CellChangeSubscription"
                    }
                  ]
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/400"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/401"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/403"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/404"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/406"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/429"
Michel Roy's avatar
Michel Roy committed
        "x-swagger-router-controller": "subscriptions"
Michel Roy's avatar
Michel Roy committed
        "tags": [
Michel Roy's avatar
Michel Roy committed
          "rni"
Michel Roy's avatar
Michel Roy committed
        "summary": "Create a new subscription",
        "description": "Creates a new subscription to Radio Network Information notifications",
        "operationId": "subscriptionsPOST",
        "requestBody": {
          "description": "Subscription to be created",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
Michel Roy's avatar
Michel Roy committed
                "$ref": "#/components/schemas/InlineSubscription"
              },
              "example": {
                "subscriptionType": "CellChangeSubscription",
                "callbackReference": "http://my.callback.com/rni-cell-change/some-id",
                "filterCriteriaAssocHo": {
                  "appInstanceId": "myApp",
                  "associateId": [
                    {
                      "type": 1,
                      "value": "10.100.0.1"
                    }
                  ],
                  "ecgi": [
                    {
                      "plmn": {
                        "mnc": "01",
                        "mcc": "001"
Michel Roy's avatar
Michel Roy committed
                      },
Michel Roy's avatar
Michel Roy committed
                      "cellId": "ACBDEFA"
Michel Roy's avatar
Michel Roy committed
                  ],
                  "hoStatus": [
                    1,
                    2
                  ]
Michel Roy's avatar
Michel Roy committed
                },
Michel Roy's avatar
Michel Roy committed
                "expiryDeadline": {
                  "seconds": 1977836800,
                  "nanoseconds": 0
Michel Roy's avatar
Michel Roy committed
        },
        "responses": {
          "201": {
Michel Roy's avatar
Michel Roy committed
            "description": "Successful subscription",
            "content": {
              "application/json": {
Michel Roy's avatar
Michel Roy committed
                "schema": {
Michel Roy's avatar
Michel Roy committed
                  "$ref": "#/components/schemas/InlineSubscription"
                },
                "example": {
                  "subscriptionType": "CellChangeSubscription",
                  "callbackReference": "http://my.callback.com/rni-cell-change/some-id",
                  "_links": {
                    "self": {
                      "href": "http://meAppServer.example.com/rni/v2/subscriptions/sub123"
Michel Roy's avatar
Michel Roy committed
                  "filterCriteriaAssocHo": {
                    "appInstanceId": "myApp",
                    "associateId": [
                      {
                        "type": 1,
                        "value": "10.100.0.1"
Michel Roy's avatar
Michel Roy committed
                    ],
                    "ecgi": [
                      {
                        "plmn": {
                          "mnc": "01",
                          "mcc": "001"
                        },
                        "cellId": "ACBDEFA"
                      }
                    ],
                    "hoStatus": [
                      1,
                      2
                    ]
                  },
                  "expiryDeadline": {
                    "seconds": 1977836800,
                    "nanoseconds": 0
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/400"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/401"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/403"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/404"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/406"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/412"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/422"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/429"
          }
        },
        "callbacks": {
          "notification": {
            "{$request.body#/notificationSubscription.callbackReference}": {
              "post": {
                "summary": "Callback POST used to send a notification",
                "description": "Notification from RNIS, content based on subscription type",
                "operationId": "notificationPOST",
                "requestBody": {
                  "description": "Subscription notification",
                  "required": true,
                  "content": {
                    "application/json": {
                      "schema": {
Michel Roy's avatar
Michel Roy committed
                        "$ref": "#/components/schemas/InlineNotification"
                      },
                      "example": {
                        "notificationType": "CellChangeNotification",
                        "associateId": [
                          {
                            "type": 1,
                            "value": "10.100.0.1"
Michel Roy's avatar
Michel Roy committed
                        ],
                        "hoStatus": 1,
                        "srcEcgi": {
                          "plmn": {
                            "mnc": "01",
                            "mcc": "001"
                          },
                          "cellId": "ACBDEFA"
Michel Roy's avatar
Michel Roy committed
                        },
Michel Roy's avatar
Michel Roy committed
                        "tempUeId": {
                          "mmec": 1,
                          "mtmsi": 69967622812
                        },
                        "timeStamp": {
                          "seconds": 1977836800,
                          "nanoseconds": 0
                        },
                        "trgEcgi": {
                          "plmn": {
                            "mnc": "01",
                            "mcc": "001"
                          },
                          "cellId": "FEDCBAA"
Michel Roy's avatar
Michel Roy committed
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "204": {
                    "$ref": "#/components/responses/204"
                  }
Michel Roy's avatar
Michel Roy committed
        "x-swagger-router-controller": "subscriptions"
Michel Roy's avatar
Michel Roy committed
    "/subscriptions/{subscriptionId}": {
      "get": {
Michel Roy's avatar
Michel Roy committed
        "tags": [
Michel Roy's avatar
Michel Roy committed
          "rni"
Michel Roy's avatar
Michel Roy committed
        "summary": "Retrieve information on current specific subscription",
        "description": "Queries information about an existing subscription, identified by its self-referring URI returned on creation (initial POST)",
        "operationId": "subscriptionsGET",
        "parameters": [
          {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Path.subscrId"
          }
        ],
        "responses": {
          "200": {
Michel Roy's avatar
Michel Roy committed
            "description": "Subscription information regarding subscription notifications",
            "content": {
              "application/json": {
Michel Roy's avatar
Michel Roy committed
                "schema": {
Michel Roy's avatar
Michel Roy committed
                  "$ref": "#/components/schemas/InlineSubscription"
                },
                "example": {
                  "subscriptionType": "CellChangeSubscription",
                  "callbackReference": "http://my.callback.com/rni-cell-change/some-id",
                  "_links": {
                    "self": {
                      "href": "http://meAppServer.example.com/rni/v2/subscriptions/sub123"
Michel Roy's avatar
Michel Roy committed
                  "filterCriteriaAssocHo": {
                    "appInstanceId": "myApp",
                    "associateId": [
                      {
                        "type": 1,
                        "value": "10.100.0.1"
Michel Roy's avatar
Michel Roy committed
                    ],
                    "ecgi": [
                      {
                        "plmn": {
                          "mnc": "01",
                          "mcc": "001"
                        },
                        "cellId": "ACBDEFA"
                      }
                    ],
                    "hoStatus": [
                      1,
                      2
                    ]
                  },
                  "expiryDeadline": {
                    "seconds": 1977836800,
                    "nanoseconds": 0
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/400"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/401"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/403"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/404"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/406"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/429"
Michel Roy's avatar
Michel Roy committed
        },
        "x-swagger-router-controller": "subscriptions"
Michel Roy's avatar
Michel Roy committed
        "tags": [
Michel Roy's avatar
Michel Roy committed
          "rni"
Michel Roy's avatar
Michel Roy committed
        "summary": "Modify an existing subscription",
        "description": "Updates an existing subscription, identified by its self-referring URI returned on creation (initial POST)",
        "operationId": "subscriptionsPUT",
        "requestBody": {
          "description": "Subscription to be modified",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
Michel Roy's avatar
Michel Roy committed
                "$ref": "#/components/schemas/InlineSubscription"
              },
              "example": {
                "subscriptionType": "CellChangeSubscription",
                "callbackReference": "http://my.callback.com/rni-cell-change/some-id",
                "_links": {
                  "self": {
                    "href": "http://meAppServer.example.com/rni/v2/subscriptions/sub123"
Michel Roy's avatar
Michel Roy committed
                "filterCriteriaAssocHo": {
                  "appInstanceId": "myApp",
                  "associateId": [
                    {
                      "type": 1,
                      "value": "10.100.0.1"
Michel Roy's avatar
Michel Roy committed
                  ],
                  "ecgi": [
                    {
                      "plmn": {
                        "mnc": "01",
                        "mcc": "001"
                      },
                      "cellId": "ACBDEFA"
                    }
                  ],
                  "hoStatus": [
                    1,
                    2
                  ]
                },
                "expiryDeadline": {
                  "seconds": 1977836800,
                  "nanoseconds": 0
Michel Roy's avatar
Michel Roy committed
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Path.subscrId"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful subscription to response to subscription notifications",
            "content": {
              "application/json": {
                "schema": {
Michel Roy's avatar
Michel Roy committed
                  "$ref": "#/components/schemas/InlineSubscription"
Michel Roy's avatar
Michel Roy committed
                },
                "example": {
Michel Roy's avatar
Michel Roy committed
                  "subscriptionType": "CellChangeSubscription",
                  "callbackReference": "http://my.callback.com/rni-cell-change/some-id",
                  "_links": {
                    "self": {
                      "href": "http://meAppServer.example.com/rni/v2/subscriptions/sub123"
Michel Roy's avatar
Michel Roy committed
                  },
                  "filterCriteriaAssocHo": {
                    "appInstanceId": "myApp",
                    "associateId": [
                      {
                        "type": 1,
                        "value": "10.100.0.1"
                      }
                    ],
                    "ecgi": [
                      {
                        "plmn": {
                          "mnc": "01",
                          "mcc": "001"
                        },
                        "cellId": "ACBDEFA"
                      }
                    ],
                    "hoStatus": [
                      1,
                      2
                    ]
                  },
                  "expiryDeadline": {
                    "seconds": 1977836800,
                    "nanoseconds": 0
Michel Roy's avatar
Michel Roy committed
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/404"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/406"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/412"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/422"
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/429"
Michel Roy's avatar
Michel Roy committed
        },
        "x-swagger-router-controller": "subscriptions"
      },
      "delete": {
Michel Roy's avatar
Michel Roy committed
        "tags": [
Michel Roy's avatar
Michel Roy committed
          "rni"
Michel Roy's avatar
Michel Roy committed
        "summary": "Cancel an existing subscription",
        "description": "Cancels an existing subscription, identified by its self-referring URI returned on creation (initial POST)",
        "operationId": "subscriptionsDELETE",
        "parameters": [
          {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/parameters/Path.subscrId"
          }
        ],
        "responses": {
          "204": {
Michel Roy's avatar
Michel Roy committed
            "$ref": "#/components/responses/204"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
Michel Roy's avatar
Michel Roy committed
        "x-swagger-router-controller": "subscriptions"
Michel Roy's avatar
Michel Roy committed
    }
  },
  "components": {
    "responses": {
      "204": {
        "description": "No Content"
      },
      "400": {
        "description": "Bad Request : used to indicate that incorrect parameters were passed to the request.",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
          }
        }
      },
      "401": {
        "description": "Unauthorized :  used when the client did not submit credentials.",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
          }
        }
      },
      "403": {
        "description": "Forbidden :  operation is not allowed given the current status of the resource.",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
          }
        }
      },
      "404": {
        "description": "Not Found :  used when a client provided a URI that cannot be mapped to a valid resource URI.",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
          }
        }
      },
      "406": {
        "description": "Not Acceptable : used to indicate that the server cannot provide the any of the content formats supported by the client.",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
          }
        }
      },
      "412": {
        "description": "Precondition failed :  used when a condition has failed during conditional requests, e.g. when using ETags to avoid write conflicts when using PUT",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
      "414": {
        "description": "URI Too Long : used to indicate that the server is refusing to process the request because the request URI is longer than the server is willing or able to process.",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
          }
        }
      },
      "415": {
        "description": "Unsupported Media Type :  used to indicate that the server or the client does not support the content type of the entity body.",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
          }
        }
      },
      "422": {
        "description": "Unprocessable Entity : used to indicate that the server understands the content type of the request entity and that the syntax of the request entity is correct but that the server is unable to process the contained instructions. This error condition can occur if an JSON request body is syntactically correct but semantically incorrect, for example if the target area for the request is considered too large. This error condition can also occur if the capabilities required by the request are not supported.",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
            },
            "example": {
              "application/problem+json": {
Michel Roy's avatar
Michel Roy committed
                "type": "https://meAppServer.example.com/rni/v2/probs/too-many targets",
                "title": "Too many targets",
                "status": "422",
                "detail": "The target area for the request is considered too large",
                "instance": "/meAppClient.example.com/77777/msgs/abc"
Michel Roy's avatar
Michel Roy committed
          }
        }
      },
      "429": {
        "description": "Too Many Requests : used when a rate limiter has triggered.",
        "content": {
Michel Roy's avatar
Michel Roy committed
          "application/problem+json": {
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"
Michel Roy's avatar
Michel Roy committed
          }
        }
      }
    },
    "parameters": {
      "Path.subscrId": {
        "name": "subscriptionId",
        "in": "path",
        "description": "Subscription Id, specifically the \"Self-referring URI\" returned in the subscription request",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uri"
        },
        "x-exportParamName": "SubscriptionId"
      },
      "Query.AppInsId": {