Skip to content
LocationAPI.json 148 KiB
Newer Older
Michel Roy's avatar
Michel Roy committed
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-swagger-router-controller": "subscriptions"
      },
      "put": {
        "tags": ["location"],
        "summary": "Updates a user distance subscription information",
        "description": "The PUT method is used to update the existing user distance subscription.",
Michel Roy's avatar
Michel Roy committed
        "operationId": "distanceSubPUT",
        "requestBody": {
          "description": "Subscription to be modified",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userDistanceSubscription": {
                    "$ref": "#/components/schemas/UserDistanceSubscription"
                "examples": [
                  {
                    "userDistanceSubscription": {
                      "subscriptionType": "UserDistanceSubscription",
                      "clientCorrelator": "0123",
                      "callbackReference": "http://my.callback.com/user-distance/some-id",
                      "referenceAddress": ["acr:10.0.0.3"],
                      "monitoredAddress": ["acr:10.0.0.1", "acr:10.0.0.2"],
                      "distance": 100,
                      "trackingAccuracy": 10,
                      "criteria": "AllWithinDistance",
                      "checkImmediate": true
Michel Roy's avatar
Michel Roy committed
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Path.SubscrId"
          }
        ],
        "responses": {
          "200": {
            "description": "Upon success, a response body containing data type describing the updated subscription is returned.",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userDistanceSubscription": {
                      "$ref": "#/components/schemas/UserDistanceSubscription"
                  "examples": [
                    {
                      "userDistanceSubscription": {
                        "subscriptionType": "UserDistanceSubscription",
                        "clientCorrelator": "0123",
                        "callbackReference": "http://my.callback.com/user-distance/some-id",
                        "referenceAddress": ["acr:10.0.0.3"],
                        "monitoredAddress": ["acr:10.0.0.1", "acr:10.0.0.2"],
                        "distance": 100,
                        "trackingAccuracy": 10,
                        "criteria": "AllWithinDistance",
                        "checkImmediate": true
Michel Roy's avatar
Michel Roy committed
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-swagger-router-controller": "subscriptions"
      },
      "delete": {
        "tags": ["location"],
Michel Roy's avatar
Michel Roy committed
        "summary": "Cancel a subscription",
        "description": "The DELETE method is used to cancel the existing subscription.",
Michel Roy's avatar
Michel Roy committed
        "operationId": "distanceSubDELETE",
        "parameters": [
          {
            "$ref": "#/components/parameters/Path.SubscrId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/204"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-swagger-router-controller": "subscriptions"
      }
    },
    "/subscriptions/users": {
Michel Roy's avatar
Michel Roy committed
      "get": {
        "tags": ["location"],
        "summary": "Retrieves information about the subscriptions for the requestor",
        "description": "The GET method is used to request information about the subscriptions for the requestor. ",
        "operationId": "userSubListGET",
        "parameters": [
          {
            "$ref": "#/components/parameters/Query.Subscription_type_2"
          },
          {
            "$ref": "#/components/parameters/Query.Address_2"
          }
        ],
Michel Roy's avatar
Michel Roy committed
        "responses": {
          "200": {
            "description": "Upon success, a response body containing the list of links to requestor's subscriptions is returned.",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["notificationSubscriptionList"],
Michel Roy's avatar
Michel Roy committed
                  "properties": {
                    "notificationSubscriptionList": {
                      "$ref": "#/components/schemas/NotificationSubscriptionList"
                    }
                  },
                  "examples": [
                    {
                      "notificationSubscriptionList": {
                        "subscription": [
                          {
                            "href": "http://meAppServer.example.com/location/v2/subscriptions/users/subscription123",
                            "subscriptionType": "UserLocationEventSubscription"
                          },
                            "href": "http://meAppServer.example.com/location/v2/subscriptions/users/subscription456",
                            "subscriptionType": "UserLocationPeriodicSubscription"
                        "resourceURL": {
                          "href": "http://meAppServer.example.com/location/v2/subscriptions/users"
                        }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
        "tags": ["location"],
        "summary": "Create subscription to UE location notifications.",
        "description": "The POST method is used to create a new subscription to UE location notifications.",
        "operationId": "userSubPOST",
Michel Roy's avatar
Michel Roy committed
        "requestBody": {
          "description": "Subscription to be created",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userLocationEventSubscription": {
                    "$ref": "#/components/schemas/UserLocationEventSubscription"
                  },
                  "userLocationPeriodicSubscription": {
                    "$ref": "#/components/schemas/UserLocationPeriodicSubscription"
                "examples": [
                  {
                    "userLocationEventSubscription": {
                      "subscriptionType": "UserLocationEventSubscription",
                      "callbackReference": "http://my.callback.com/user-location-notification/some-id",
                      "address": "acr:10.0.0.1",
                      "locationEventCriteria": ["ENTERING_AREA_EVENT"]
Michel Roy's avatar
Michel Roy committed
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Indicates successful subscription creation.",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userLocationEventSubscription": {
                      "$ref": "#/components/schemas/UserLocationEventSubscription"
                    },
                    "userLocationPeriodicSubscription": {
                      "$ref": "#/components/schemas/UserLocationPeriodicSubscription"
                  "examples": [
                    {
                      "userLocationEventSubscription": {
                        "subscriptionType": "UserLocationEventSubscription",
                        "callbackReference": "http://my.callback.com/user-location-notification/some-id",
                        "address": "acr:10.0.0.1",
                        "locationEventCriteria": ["ENTERING_AREA_EVENT"]
Michel Roy's avatar
Michel Roy committed
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "callbacks": {
          "notification": {
            "{$request.body#/userLocationEventSubscription.callbackReference}": {
Michel Roy's avatar
Michel Roy committed
              "post": {
Michel Roy's avatar
Michel Roy committed
                "summary": "Callback POST used to send a notification",
                "description": "Notification from Location service, content based on subscription type",
                "operationId": "userNotificationPOST",
Michel Roy's avatar
Michel Roy committed
                "requestBody": {
                  "description": "User LocationEvent Notification",
Michel Roy's avatar
Michel Roy committed
                  "required": true,
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "userLocationEventNotification": {
                            "$ref": "#/components/schemas/UserLocationEventNotification"
                          },
                          "userLocationPeriodicNotification": {
                            "$ref": "#/components/schemas/UserLocationPeriodicNotification"
                        "examples": [
                          {
                            "userLocationEventNotification": {
                              "notificationType": "UserLocationEventNotification",
                              "timestamp": {
                                "seconds": 1673507343,
                                "nanoseconds": 0
                              "address": "acr:10.0.0.1",
                              "userLocationEvent": "ENTERING_AREA_EVENT",
                              "zoneId": "zone01",
                              "accessPointId": "001010000000000000000000000000001",
                              "_links": {
                                "subscription": {
                                  "href": "http://meAppServer.example.com/location/v3/subscriptions/user/subscription123"
                                }
Michel Roy's avatar
Michel Roy committed
                      }
                    }
                  }
                },
                "responses": {
                  "204": {
                    "$ref": "#/components/responses/204"
                  }
                }
              }
            }
          }
        },
        "x-swagger-router-controller": "subscriptions"
      }
    },
    "/subscriptions/users/{subscriptionId}": {
Michel Roy's avatar
Michel Roy committed
      "get": {
        "tags": ["location"],
Michel Roy's avatar
Michel Roy committed
        "summary": "Retrieve subscription information",
        "description": "The GET method is used to retrieve information about this subscription. ",
        "operationId": "userSubGET",
Michel Roy's avatar
Michel Roy committed
        "parameters": [
          {
            "$ref": "#/components/parameters/Path.SubscrId"
          }
        ],
        "responses": {
          "200": {
            "description": "Upon success, a response body containing data type describing the specific Location event subscription is returned.",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["UserLocationEventSubscription"],
Michel Roy's avatar
Michel Roy committed
                  "properties": {
                    "userLocationEventSubscription": {
                      "$ref": "#/components/schemas/UserLocationEventSubscription"
                    },
                    "userLocationPeriodicSubscription": {
                      "$ref": "#/components/schemas/UserLocationPeriodicSubscription"
                  "examples": [
                    {
                      "userLocationEventSubscription": {
                        "subscriptionType": "UserLocationEventSubscription",
                        "callbackReference": "http://my.callback.com/user-location-notification/some-id",
                        "address": "acr:10.0.0.1",
                        "locationEventCriteria": ["ENTERING_AREA_EVENT"]
Michel Roy's avatar
Michel Roy committed
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-swagger-router-controller": "subscriptions"
      },
      "put": {
        "tags": ["location"],
Michel Roy's avatar
Michel Roy committed
        "summary": "Updates a subscription information",
        "description": "The PUT method is used to update the existing subscription.",
        "operationId": "userSubPUT",
Michel Roy's avatar
Michel Roy committed
        "requestBody": {
          "description": "Subscription to be modified",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userLocationEventSubscription": {
                    "$ref": "#/components/schemas/UserLocationEventSubscription"
                  },
                  "userLocationPeriodicSubscription": {
                    "$ref": "#/components/schemas/UserLocationPeriodicSubscription"
                "examples": [
                  {
                    "userLocationEventSubscription": {
                      "subscriptionType": "UserLocationEventSubscription",
                      "callbackReference": "http://my.callback.com/user-location-notification/some-id",
                      "address": "acr:10.0.0.1",
                      "locationEventCriteria": ["ENTERING_AREA_EVENT"]
Michel Roy's avatar
Michel Roy committed
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Path.SubscrId"
          }
        ],
        "responses": {
          "200": {
            "description": "Upon success, a response body containing data type describing the updated subscription is returned. ",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userLocationEventSubscription": {
                      "$ref": "#/components/schemas/UserLocationEventSubscription"
                    },
                    "userLocationPeriodicSubscription": {
                      "$ref": "#/components/schemas/UserLocationPeriodicSubscription"
                  "examples": [
                    {
                      "userLocationEventSubscription": {
                        "subscriptionType": "UserLocationEventSubscription",
                        "callbackReference": "http://my.callback.com/user-location-notification/some-id",
                        "address": "acr:10.0.0.1",
                        "locationEventCriteria": ["ENTERING_AREA_EVENT"]
Michel Roy's avatar
Michel Roy committed
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-swagger-router-controller": "subscriptions"
      },
      "delete": {
        "tags": ["location"],
Michel Roy's avatar
Michel Roy committed
        "summary": "Cancel a subscription",
        "description": "The DELETE method is used to cancel the existing subscription.",
        "operationId": "userSubDELETE",
Michel Roy's avatar
Michel Roy committed
        "parameters": [
          {
            "$ref": "#/components/parameters/Path.SubscrId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/204"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-swagger-router-controller": "subscriptions"
      }
    },
    "/subscriptions/zones": {
Michel Roy's avatar
Michel Roy committed
      "get": {
        "tags": ["location"],
        "summary": "Retrieves all active subscriptions to zone notifications",
        "description": "This operation is used for retrieving all active subscriptions to zone notifications.",
        "operationId": "zoneSubListGET",
        "parameters": [
          {
            "$ref": "#/components/parameters/Query.Subscription_type_3"
          },
          {
            "$ref": "#/components/parameters/Query.ZoneId_2"
          }
        ],
Michel Roy's avatar
Michel Roy committed
        "responses": {
          "200": {
            "description": "Upon success, a response body containing the list of links to requestor's subscriptions is returned.",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["notificationSubscriptionList"],
Michel Roy's avatar
Michel Roy committed
                  "properties": {
                    "notificationSubscriptionList": {
                      "$ref": "#/components/schemas/NotificationSubscriptionList"
                    }
                  },
                  "examples": [
                    {
                      "notificationSubscriptionList": {
                            "href": "http://meAppServer.example.com/location/v2/subscriptions/zones/subscription123",
                            "subscriptionType": "ZoneLocationEventSubscription"
                            "href": "http://meAppServer.example.com/location/v2/subscriptions/zones/subscription456",
                            "subscriptionType": "ZoneStatusSubscription"
                        "resourceURL": {
                          "href": "http://meAppServer.example.com/location/v2/subscriptions/zones"
                        }
        "tags": ["location"],
        "summary": "Creates a subscription to zone notifications",
        "description": "The POST method is used to create a new subscription to zone notifications.",
        "operationId": "zoneSubPOST",
Michel Roy's avatar
Michel Roy committed
        "requestBody": {
          "description": "Subscription to be created",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "zoneLocationEventSubscription": {
                    "$ref": "#/components/schemas/ZoneLocationEventSubscription"
                  },
                  "zoneStatusSubscription": {
                    "$ref": "#/components/schemas/ZoneStatusSubscription"
                "examples": [
                  {
                    "zoneLocationEventSubscription": {
                      "subscriptionType": "ZoneLocationEventSubscription",
                      "callbackReference": "http://my.callback.com/zone-notification/some-id",
                      "zoneId": "zone01",
                      "locationEventCriteria": ["ENTERING_AREA_EVENT"],
                      "expiryDeadline\"": {
                        "seconds": 1977836800,
                        "nanoseconds\"": 0
                      }
Michel Roy's avatar
Michel Roy committed
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Indicates successful resource creation",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "zoneLocationEventSubscription": {
                      "$ref": "#/components/schemas/ZoneLocationEventSubscription"
                    },
                    "zoneStatusSubscription": {
                      "$ref": "#/components/schemas/ZoneStatusSubscription"
                  "examples": [
                    {
                      "zoneLocationEventSubscription": {
                        "subscriptionType": "ZoneLocationEventSubscription",
                        "callbackReference": "http://my.callback.com/zone-notification/some-id",
                        "zoneId": "zone01",
                        "locationEventCriteria": ["ENTERING_AREA_EVENT"],
                        "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": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "415": {
            "$ref": "#/components/responses/415"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
Michel Roy's avatar
Michel Roy committed
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "callbacks": {
          "notification": {
            "{$request.body#/zoneLocationEventSubscription.callbackReference}": {
Michel Roy's avatar
Michel Roy committed
              "post": {
Michel Roy's avatar
Michel Roy committed
                "summary": "Callback POST used to send a notification",
                "description": "Notification from Location service, content based on subscription type",
                "operationId": "zoneNotificationPOST",
Michel Roy's avatar
Michel Roy committed
                "requestBody": {
                  "description": "Subscription notification",
                  "required": true,
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "zoneLocationEventNotification": {
                            "$ref": "#/components/schemas/ZoneLocationEventNotification"
                          },
                          "zoneStatusNotification": {
                            "$ref": "#/components/schemas/ZoneStatusNotification"
                        "examples": [
                          {
                            "zoneLocationEventNotification": {
                              "notificationType": "ZoneLocationEventNotification",
                              "timestamp": {
                                "seconds": 1673507343,
                                "nanoseconds": 0
                              },
                              "address": "acr:10.0.0.1",
                              "zoneId": "zone01",
                              "_links": {
                                "subscription": {
                                  "href": "http://meAppServer.example.com/location/v3/subscriptions/zone/subscription123"
                                }
Michel Roy's avatar
Michel Roy committed
                      }
                    }
                  }
                },
                "responses": {
                  "204": {
                    "$ref": "#/components/responses/204"
                  }
                }
              }
            }
          }
        },
        "x-swagger-router-controller": "subscriptions"
      }
    },
    "/subscriptions/zones/{subscriptionId}": {
Michel Roy's avatar
Michel Roy committed
      "get": {
        "tags": ["location"],
        "summary": "Retrieve zone subscription information",
        "description": "The GET method is used to retrieve information about zone subscription. ",
        "operationId": "zoneSubGET",
Michel Roy's avatar
Michel Roy committed
        "parameters": [
          {
            "$ref": "#/components/parameters/Path.SubscrId"
          }
        ],
        "responses": {
          "200": {
            "description": "Upon success, a response body containing data type describing the specific zone subscription is returned.",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "zoneLocationEventSubscription",
                    "zoneStatusSubscription"
                  ],
Michel Roy's avatar
Michel Roy committed
                  "properties": {
                    "zoneLocationEventSubscription": {
                      "$ref": "#/components/schemas/ZoneLocationEventSubscription"
                    },
                    "zoneStatusSubscription": {
                      "$ref": "#/components/schemas/ZoneStatusSubscription"
                  "examples": [
                    {
                      "zoneLocationEventSubscription": {
                        "subscriptionType": "ZoneLocationEventSubscription",
                        "callbackReference": "http://my.callback.com/zone-notification/some-id",
                        "zoneId": "zone01",
                        "locationEventCriteria": ["ENTERING_AREA_EVENT"],
                        "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": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-swagger-router-controller": "subscriptions"
      },
      "put": {
        "tags": ["location"],
        "summary": "Updates a zone subscription information",
        "description": "The PUT method is used to update the existing zone subscription.",
        "operationId": "zoneSubPUT",
Michel Roy's avatar
Michel Roy committed
        "requestBody": {
          "description": "Subscription to be modified",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "zoneLocationEventSubscription": {
                    "$ref": "#/components/schemas/ZoneLocationEventSubscription"
                  },
                  "zoneStatusSubscription": {
                    "$ref": "#/components/schemas/ZoneStatusSubscription"
                "examples": [
                  {
                    "zoneLocationEventSubscription": {
                      "subscriptionType": "ZoneLocationEventSubscription",
                      "callbackReference": "http://my.callback.com/zone-notification/some-id",
                      "zoneId": "zone01",
                      "locationEventCriteria": ["ENTERING_AREA_EVENT"],
                      "expiryDeadline\"": {
                        "seconds": 1977836800,
                        "nanoseconds\"": 0
                      }
Michel Roy's avatar
Michel Roy committed
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Path.SubscrId"
          }
        ],
        "responses": {
          "200": {
            "description": "Upon success, a response body containing data type describing the updated subscription is returned.",
Michel Roy's avatar
Michel Roy committed
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "zoneLocationEventSubscription": {
                      "$ref": "#/components/schemas/ZoneLocationEventSubscription"
                    },
                    "zoneStatusSubscription": {
                      "$ref": "#/components/schemas/ZoneStatusSubscription"
                      "zoneLocationEventSubscription": {
                        "subscriptionType": "ZoneLocationEventSubscription",
                        "callbackReference": "http://my.callback.com/zone-notification/some-id",
                        "zoneId": "zone01",
                        "locationEventCriteria": ["ENTERING_AREA_EVENT"],
                        "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": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-swagger-router-controller": "subscriptions"
      },
      "delete": {
        "tags": ["location"],
        "summary": "Cancel a zone subscription",
        "description": "The DELETE method is used to cancel the existing zone subscription.",
        "operationId": "zoneSubDELETE",
Michel Roy's avatar
Michel Roy committed
        "parameters": [
          {
            "$ref": "#/components/parameters/Path.SubscrId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/204"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-swagger-router-controller": "subscriptions"
      }
    }
  },
  "components": {
    "responses": {
      "204": {
        "description": "No Content"
      },
      "400": {
        "description": "Bad Request : used to indicate that incorrect parameters were passed to the request.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$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": {
Michel Roy's avatar
Michel Roy committed
            "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": {
Michel Roy's avatar
Michel Roy committed
            "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": {
Michel Roy's avatar
Michel Roy committed
            "schema": {
Michel Roy's avatar
Michel Roy committed
              "$ref": "#/components/schemas/ProblemDetails"