LocationAPI.yaml 118 KB
Newer Older
Muhammad Hamza's avatar
Muhammad Hamza committed
1
openapi: 3.1.0
Michel Roy's avatar
Michel Roy committed
2
info:
Michel Roy's avatar
Michel Roy committed
3
4
  contact:
    url: https://forge.etsi.org/rep/mec/gs013-location-api
Michel Roy's avatar
Michel Roy committed
5
  title: ETSI GS MEC 013 - Location API
6
  version: 2.2.1
Michel Roy's avatar
Michel Roy committed
7
  description: The ETSI MEC ISG MEC013 Location API described using OpenAPI.
Michel Roy's avatar
Michel Roy committed
8
9
10
11
  license:
    name: BSD-3-Clause
    url: 'https://forge.etsi.org/legal-matters'
externalDocs:
12
13
  description: ETSI MEC013 V2.2.1 Location API
  url: 'http://www.etsi.org/deliver/etsi_gs/MEC/001_099/013/02.02.01_60/gs_mec013v020201p.pdf'
Michel Roy's avatar
Michel Roy committed
14
servers:
Michel Roy's avatar
Michel Roy committed
15
16
  - url: 'https://localhost/location/v2'
tags:
17
  - name: 'location'
Michel Roy's avatar
Michel Roy committed
18
19
20
21
paths:
  /queries/distance:
    get:
      tags:
22
        - 'location'
Michel Roy's avatar
Michel Roy committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
      summary: 'UE Distance Lookup of a specific UE'
      description: 'UE Distance Lookup between terminals or a terminal and a location'
      operationId: distanceGET
      parameters:
        - $ref: '#/components/parameters/Query.Requester'
        - $ref: '#/components/parameters/Query.AddressMandatory'
        - $ref: '#/components/parameters/Query.Latitude'
        - $ref: '#/components/parameters/Query.Longitude'
      responses:
        '200':
          description: 'Successful response to a distance request'
          content:
            application/json:
              schema:
                type: object
                properties:
                  terminalDistance:
                    $ref: '#/components/schemas/TerminalDistance'
        '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: 'queries'
  /queries/users:
    get:
Michel Roy's avatar
Michel Roy committed
56
      tags:
57
        - 'location'
Michel Roy's avatar
Michel Roy committed
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
      summary: 'UE Location Lookup of a specific UE or group of UEs'
      description: 'UE Location Lookup of a specific UE or group of UEs'
      operationId: usersGET
      parameters:
        - $ref: '#/components/parameters/Query.ZoneId'
        - $ref: '#/components/parameters/Query.AccessPointId'
        - $ref: '#/components/parameters/Query.Address'
      responses:
        '200':
          description: 'Successful response to users request'
          content:
            application/json:
              schema:
                type: object
                properties:
                  userList:
                    $ref: '#/components/schemas/UserList'
        '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'
87
      x-swagger-router-controller: 'queries'
Michel Roy's avatar
Michel Roy committed
88
89
90
  /queries/zones:
    get:
      tags:
Michel Roy's avatar
Michel Roy committed
91
        - 'location'
Michel Roy's avatar
Michel Roy committed
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
      summary: 'Zones information Lookup'
      description: 'Used to get a list of identifiers for zones authorized for use by the application.'
      operationId: zonesGET
      responses:
        '200':
          description: 'Successful response to zones request'
          content:
            application/json:
              schema:
                type: object
                properties:
                  zoneList:
                    $ref: '#/components/schemas/ZoneList'
        '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'
117
      x-swagger-router-controller: 'queries'
Michel Roy's avatar
Michel Roy committed
118
119
120
  /queries/zones/{zoneId}:
    get:
      tags:
Michel Roy's avatar
Michel Roy committed
121
        - 'location'
Michel Roy's avatar
Michel Roy committed
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
      summary: 'Zones information Lookup'
      description: 'Used to get the information for an authorized zone for use by the application.'
      operationId: zonesGetById
      parameters:
        - $ref: '#/components/parameters/Path.ZoneId'
      responses:
        '200':
          description: 'Successful response to an access point Id request'
          content:
            application/json:
              schema:
                type: object
                properties:
                  zoneInfo:
                    $ref: '#/components/schemas/ZoneInfo'
        '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: 'queries'
  /queries/zones/{zoneId}/accessPoints:
    get:
      tags:
153
        - 'location'
Michel Roy's avatar
Michel Roy committed
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
      summary: 'Radio Node Location Lookup'
      description: 'Radio Node Location Lookup to retrieve a list of radio nodes associated to a zone.'
      operationId: apGET
      parameters:
        - $ref: '#/components/parameters/Path.ZoneId'
        - $ref: '#/components/parameters/Query.InterestRealm'
      responses:
        '200':
          description: 'Successful response to an access point Id request'
          content:
            application/json:
              schema:
                type: object
                properties:
                  accessPointList:
                    $ref: '#/components/schemas/AccessPointList'
        '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'
182
      x-swagger-router-controller: 'queries'
Michel Roy's avatar
Michel Roy committed
183
184
185
  /queries/zones/{zoneId}/accessPoints/{accessPointId}:
    get:
      tags:
186
        - 'location'
Michel Roy's avatar
Michel Roy committed
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
      summary: 'Radio Node Location Lookup'
      description: 'Radio Node Location Lookup to retrieve a radio node associated to a zone.'
      operationId: apByIdGET
      parameters:
        - $ref: '#/components/parameters/Path.ZoneId'
        - $ref: '#/components/parameters/Path.AccessPointId'
      responses:
        '200':
          description: 'Successful response to an access point Id request'
          content:
            application/json:
              schema:
                type: object
                properties:
                  accessPointInfo:
                    $ref: '#/components/schemas/AccessPointInfo'
        '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: 'queries'
  /subscriptions/area/circle:
    get:
      tags:
219
        - 'location'
Michel Roy's avatar
Michel Roy committed
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
      summary: 'Retrieves all active subscriptions to area change notifications'
      description: 'This operation is used for retrieving all active subscriptions to area change notifications.'
      operationId: areaCircleSubListGET
      responses:
        '200':
          description: 'Response to retrieve area subscriptions'
          content:
            application/json:
              schema:
                type: object
                required:
                  - notificationSubscriptionList
                properties:
                  notificationSubscriptionList:
                    $ref: '#/components/schemas/NotificationSubscriptionList'
Muhammad Hamza's avatar
Muhammad Hamza committed
235
236
237
                examples:
                  - notificationSubscriptionList:
                      circleNotificationSubscription:
238
239
240
241
242
243
244
245
246
247
248
249
250
                        - clientCorrelator: '0123'
                          callbackReference:
                            callbackData: '1234'
                            notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                          address: 'acr:10.0.0.1'
                          checkImmediate: true
                          enteringLeavingCriteria: 'Entering'
                          frequency: 10
                          latitude: -80.88
                          longitude: 41.277
                          radius: 500
                          trackingAccuracy: 10
                          resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/area/circle/subscription123'
Muhammad Hamza's avatar
Muhammad Hamza committed
251
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/area/circle'
Michel Roy's avatar
Michel Roy committed
252
253
    post:
      tags:
254
        - 'location'
Michel Roy's avatar
Michel Roy committed
255
256
257
258
259
260
261
262
263
264
265
266
267
      summary: 'Creates a subscription for area change notification'
      description: 'Creates a subscription to the Location Service for an area change notification.'
      operationId: areaCircleSubPOST
      requestBody:
        description: 'Subscription to be created'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                circleNotificationSubscription:
                  $ref: '#/components/schemas/CircleNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
268
269
              examples:
                - circleNotificationSubscription:
Michel Roy's avatar
Michel Roy committed
270
271
272
273
274
275
276
277
278
279
280
281
                    clientCorrelator: '0123'
                    callbackReference:
                      callbackData: '1234'
                      notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                    address: 'acr:10.0.0.1'
                    checkImmediate: true
                    enteringLeavingCriteria: 'Entering'
                    frequency: 10
                    latitude: -80.88
                    longitude: 41.277
                    radius: 500
                    trackingAccuracy: 10
Muhammad Hamza's avatar
Muhammad Hamza committed
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
      responses:
        '201':
          description: 'Successful subscription'
          content:
            application/json:
              schema:
                type: object
                properties:
                  circleNotificationSubscription:
                    $ref: '#/components/schemas/CircleNotificationSubscription'
                examples:
                  - circleNotificationSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        callbackData: '1234'
                        notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                      address: 'acr:10.0.0.1'
                      checkImmediate: true
                      enteringLeavingCriteria: 'Entering'
                      frequency: 10
                      latitude: -80.88
                      longitude: 41.277
                      radius: 500
                      trackingAccuracy: 10
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/area/circle/subscription123'
Michel Roy's avatar
Michel Roy committed
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
        '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#/circleNotificationSubscription.callbackReference.notifyURL}':
            post:
Michel Roy's avatar
Michel Roy committed
323
324
325
326
              summary: 'Callback POST used to send a notification'
              description: 'Notification from Location service, content based on subscription type'
              operationId: circleNotificationPOST
              requestBody:
Michel Roy's avatar
Michel Roy committed
327
328
329
330
331
332
333
334
335
                description: 'Subscription notification'
                required: true
                content:
                  application/json:
                    schema:
                      type: object
                      properties:
                        subscriptionNotification:
                          $ref: '#/components/schemas/SubscriptionNotification'
Muhammad Hamza's avatar
Muhammad Hamza committed
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
                      examples:
                        - subscriptionNotification:
                            enteringLeavingCriteria: 'Entering'
                            isFinalNotification: false,
                            link:
                              rel: CircleNotificationSubscription
                              href: 'http://meAppServer.example.com/location/v2/subscriptions/area/circle/sub123'
                            terminalLocation:
                              address: 'acr:10.0.0.1'
                              currentLocation:
                                accuracy: 100
                                altitude: 1001.0
                                latitude: -80.86302
                                longitude: 41.277306
                                timestamp:
                                  seconds: 1483231138
                                  nanoSeconds": 0
                              locationRetrievalStatus: 'Retrieved'
Michel Roy's avatar
Michel Roy committed
354
355
356
357
358
359
360
              responses:
                '204':
                  $ref: '#/components/responses/204'
      x-swagger-router-controller: 'subscriptions'
  /subscriptions/area/circle/{subscriptionId}:
    get:
      tags:
361
        - 'location'
Michel Roy's avatar
Michel Roy committed
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
      summary: 'Retrieve subscription information'
      description: 'Get subscription information.'
      operationId: areaCircleSubGET
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Subscription information regarding subscription notifications'
          content:
            application/json:
              schema:
                type: object
                required:
                  - circleNotificationSubscription
                properties:
                  circleNotificationSubscription:
                    $ref: '#/components/schemas/CircleNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
                examples:
                  - circleNotificationSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        callbackData: '1234'
                        notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                      address: 'acr:10.0.0.1'
                      checkImmediate: true
                      enteringLeavingCriteria: 'Entering'
                      frequency: 10
                      latitude: -80.88
                      longitude: 41.277
                      radius: 500
                      trackingAccuracy: 10
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/area/circle/subscription123'
Michel Roy's avatar
Michel Roy committed
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
        '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:
409
        - 'location'
Michel Roy's avatar
Michel Roy committed
410
411
412
413
414
415
416
417
418
419
420
421
422
      summary: 'Updates a subscription information'
      description: 'Updates a subscription.'
      operationId: areaCircleSubPUT
      requestBody:
        description: 'Subscription to be modified'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                circleNotificationSubscription:
                  $ref: '#/components/schemas/CircleNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
423
424
              examples:
                - circleNotificationSubscription:
Michel Roy's avatar
Michel Roy committed
425
426
427
428
429
430
431
432
433
434
435
436
437
                    clientCorrelator: '0123'
                    callbackReference:
                      callbackData: '1234'
                      notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                    address: 'acr:10.0.0.1'
                    checkImmediate: true
                    enteringLeavingCriteria: 'Entering'
                    frequency: 10
                    latitude: -80.88
                    longitude: 41.277
                    radius: 500
                    trackingAccuracy: 10
                    resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/area/circle/subscription123'
Muhammad Hamza's avatar
Muhammad Hamza committed
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Successful subscription to response to subscription notifications'
          content:
            application/json:
              schema:
                type: object
                properties:
                  circleNotificationSubscription:
                    $ref: '#/components/schemas/CircleNotificationSubscription'
                examples:
                  - circleNotificationSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        callbackData: '1234'
                        notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                      address: 'acr:10.0.0.1'
                      checkImmediate: true
                      enteringLeavingCriteria: 'Entering'
                      frequency: 10
                      latitude: -80.88
                      longitude: 41.277
                      radius: 500
                      trackingAccuracy: 10
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/area/circle/subscription123'
Michel Roy's avatar
Michel Roy committed
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
        '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:
484
        - 'location'
Michel Roy's avatar
Michel Roy committed
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
      summary: 'Cancel a subscription'
      description: 'Method to delete a subscription.'
      operationId: areaCircleSubDELETE
      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/distance:
    get:
      tags:
505
        - 'location'
Michel Roy's avatar
Michel Roy committed
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
      summary: 'Retrieves all active subscriptions to distance change notifications'
      description: 'This operation is used for retrieving all active subscriptions to a distance change notifications.'
      operationId: distanceSubListGET
      responses:
        '200':
          description: 'Response to retrieve area subscriptions'
          content:
            application/json:
              schema:
                type: object
                required:
                  - notificationSubscriptionList
                properties:
                  notificationSubscriptionList:
                    $ref: '#/components/schemas/NotificationSubscriptionList'
Muhammad Hamza's avatar
Muhammad Hamza committed
521
522
523
                examples:
                  - notificationSubscriptionList:
                      distanceNotificationSubscription:
524
525
526
527
528
529
530
531
532
533
534
535
536
537
                        - clientCorrelator: '0123'
                          callbackReference:
                            callbackData: '1234'
                            notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                          monitoredAddress:
                            - 'acr:10.0.0.1'
                            - 'acr:10.0.0.2'
                          checkImmediate: true
                          criteria: 'AllWithinDistance'
                          distance: 100
                          frequency: 10
                          referenceAddress: 'acr:10.0.0.3'
                          trackingAccuracy: 10
                          resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/distance/sub123'
Muhammad Hamza's avatar
Muhammad Hamza committed
538
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/distance'
Michel Roy's avatar
Michel Roy committed
539
540
    post:
      tags:
541
        - 'location'
Michel Roy's avatar
Michel Roy committed
542
543
544
545
546
547
548
549
550
551
552
553
554
      summary: 'Creates a subscription for distance change notification'
      description: 'Creates a subscription to the Location Service for a distance change notification.'
      operationId: distanceSubPOST
      requestBody:
        description: 'Subscription to be created'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                distanceNotificationSubscription:
                  $ref: '#/components/schemas/DistanceNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
555
556
              examples:
                - distanceNotificationSubscription:
Michel Roy's avatar
Michel Roy committed
557
558
559
560
                    clientCorrelator: '0123'
                    callbackReference:
                      callbackData: '1234'
                      notifyURL: 'http://clientApp.example.com/location_notifications/123456'
Michel Roy's avatar
Michel Roy committed
561
                    monitoredAddress:
562
563
                      - 'acr:10.0.0.1'
                      - 'acr:10.0.0.2'
Michel Roy's avatar
Michel Roy committed
564
565
566
567
568
569
                    checkImmediate: true
                    criteria: 'AllWithinDistance'
                    distance: 100
                    frequency: 10
                    referenceAddress: 'acr:10.0.0.3'
                    trackingAccuracy: 10
Muhammad Hamza's avatar
Muhammad Hamza committed
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
      responses:
        '201':
          description: 'Successful subscription'
          content:
            application/json:
              schema:
                type: object
                properties:
                  distanceNotificationSubscription:
                    $ref: '#/components/schemas/DistanceNotificationSubscription'
                examples:
                  - distanceNotificationSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        callbackData: '1234'
                        notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                      monitoredAddress:
587
588
                        - 'acr:10.0.0.1'
                        - 'acr:10.0.0.2'
Muhammad Hamza's avatar
Muhammad Hamza committed
589
590
591
592
593
594
595
                      checkImmediate: true
                      criteria: 'AllWithinDistance'
                      distance: 100
                      frequency: 10
                      referenceAddress: 'acr:10.0.0.3'
                      trackingAccuracy: 10
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/distance/subscription123'
Michel Roy's avatar
Michel Roy committed
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
        '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#/distanceNotificationSubscription.callbackReference.notifyURL}':
            post:
Michel Roy's avatar
Michel Roy committed
612
613
614
615
              summary: 'Callback POST used to send a notification'
              description: 'Notification from Location service, content based on subscription type'
              operationId: distanceNotificationPOST
              requestBody:
Michel Roy's avatar
Michel Roy committed
616
617
618
619
620
621
622
623
624
                description: 'Subscription notification'
                required: true
                content:
                  application/json:
                    schema:
                      type: object
                      properties:
                        subscriptionNotification:
                          $ref: '#/components/schemas/SubscriptionNotification'
Muhammad Hamza's avatar
Muhammad Hamza committed
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
                      examples:
                        - subscriptionNotification:
                            distanceCriteria: 'AllWithinDistance'
                            isFinalNotification: false,
                            link:
                              rel: DistanceNotificationSubscription
                              href: 'http://meAppServer.example.com/location/v2/subscriptions/distance/sub123'
                            terminalLocation:
                              - address: 'acr:10.0.0.1'
                                currentLocation:
                                  accuracy: 100
                                  altitude: 1001.0
                                  latitude: -80.86302
                                  longitude: 41.277306
                                  timestamp:
                                    seconds: 1483231138
                                    nanoSeconds": 0
                                locationRetrievalStatus: 'Retrieved'
                              - address: 'acr:10.0.0.2'
                                currentLocation:
                                  accuracy: 100
                                  altitude: 1001.0
                                  latitude: -80.86301
                                  longitude: 41.277306
                                  timestamp:
                                    seconds: 1483231138
                                    nanoSeconds": 0
                                locationRetrievalStatus: 'Retrieved'
Michel Roy's avatar
Michel Roy committed
653
654
655
              responses:
                '204':
                  $ref: '#/components/responses/204'
656
      x-swagger-router-controller: 'subscriptions'
Michel Roy's avatar
Michel Roy committed
657
658
659
  /subscriptions/distance/{subscriptionId}:
    get:
      tags:
660
        - 'location'
Michel Roy's avatar
Michel Roy committed
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
      summary: 'Retrieve subscription information'
      description: 'Get subscription information.'
      operationId: distanceSubGET
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Subscription information regarding subscription notifications'
          content:
            application/json:
              schema:
                type: object
                required:
                  - distanceNotificationSubscription
                properties:
                  distanceNotificationSubscription:
                    $ref: '#/components/schemas/DistanceNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
678
679
680
681
682
683
684
                examples:
                  - distanceNotificationSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        callbackData: '1234'
                        notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                      monitoredAddress:
685
686
                        - 'acr:10.0.0.1'
                        - 'acr:10.0.0.2'
Muhammad Hamza's avatar
Muhammad Hamza committed
687
688
689
690
691
692
693
                      checkImmediate: true
                      criteria: 'AllWithinDistance'
                      distance: 100
                      frequency: 10
                      referenceAddress: 'acr:10.0.0.3'
                      trackingAccuracy: 10
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/distance/subscription123'
Michel Roy's avatar
Michel Roy committed
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
        '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:
709
        - 'location'
Michel Roy's avatar
Michel Roy committed
710
711
712
713
714
715
716
717
718
719
720
721
722
      summary: 'Updates a subscription information'
      description: 'Updates a subscription.'
      operationId: distanceSubPUT
      requestBody:
        description: 'Subscription to be modified'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                distanceNotificationSubscription:
                  $ref: '#/components/schemas/DistanceNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
723
724
              examples:
                - distanceNotificationSubscription:
Michel Roy's avatar
Michel Roy committed
725
726
727
728
                    clientCorrelator: '0123'
                    callbackReference:
                      callbackData: '1234'
                      notifyURL: 'http://clientApp.example.com/location_notifications/123456'
Michel Roy's avatar
Michel Roy committed
729
                    monitoredAddress:
730
731
                      - 'acr:10.0.0.1'
                      - 'acr:10.0.0.2'
Michel Roy's avatar
Michel Roy committed
732
733
734
735
736
737
738
                    checkImmediate: true
                    criteria: 'AllWithinDistance'
                    distance: 100
                    frequency: 10
                    referenceAddress: 'acr:10.0.0.3'
                    trackingAccuracy: 10
                    resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/distance/subscription123'
Muhammad Hamza's avatar
Muhammad Hamza committed
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Successful subscription to response to subscription notifications'
          content:
            application/json:
              schema:
                type: object
                properties:
                  distanceNotificationSubscription:
                    $ref: '#/components/schemas/DistanceNotificationSubscription'
                examples:
                  - distanceNotificationSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        callbackData: '1234'
                        notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                      monitoredAddress:
758
759
                        - 'acr:10.0.0.1'
                        - 'acr:10.0.0.2'
Muhammad Hamza's avatar
Muhammad Hamza committed
760
761
762
763
764
765
766
                      checkImmediate: true
                      criteria: 'AllWithinDistance'
                      distance: 100
                      frequency: 10
                      referenceAddress: 'acr:10.0.0.3'
                      trackingAccuracy: 10
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/distance/subscription123'
Michel Roy's avatar
Michel Roy committed
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
        '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:
786
        - 'location'
Michel Roy's avatar
Michel Roy committed
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
      summary: 'Cancel a subscription'
      description: 'Method to delete a subscription.'
      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/periodic:
    get:
      tags:
807
        - 'location'
Michel Roy's avatar
Michel Roy committed
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
      summary: 'Retrieves all active subscriptions to periodic notifications'
      description: 'This operation is used for retrieving all active subscriptions to periodic notifications.'
      operationId: periodicSubListGET
      responses:
        '200':
          description: 'Response to retrieve area subscriptions'
          content:
            application/json:
              schema:
                type: object
                required:
                  - notificationSubscriptionList
                properties:
                  notificationSubscriptionList:
                    $ref: '#/components/schemas/NotificationSubscriptionList'
Muhammad Hamza's avatar
Muhammad Hamza committed
823
824
825
                examples:
                  - notificationSubscriptionList:
                      periodicNotificationSubscription:
826
827
828
829
830
831
832
833
                        - clientCorrelator: '0123'
                          callbackReference:
                            callbackData: '1234'
                            notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                          address: 'acr:10.0.0.1'
                          frequency: 10
                          requestedAccuracy: 10
                          resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/periodic/subscription123'
Muhammad Hamza's avatar
Muhammad Hamza committed
834
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/periodic'
Michel Roy's avatar
Michel Roy committed
835
836
    post:
      tags:
837
        - 'location'
Michel Roy's avatar
Michel Roy committed
838
839
840
841
842
843
844
845
846
847
848
849
850
      summary: 'Creates a subscription for periodic notification'
      description: 'Creates a subscription to the Location Service for a periodic notification.'
      operationId: periodicSubPOST
      requestBody:
        description: Subscription to be created
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                periodicNotificationSubscription:
                  $ref: '#/components/schemas/PeriodicNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
851
852
853
854
855
856
857
858
859
              examples:
                - periodicNotificationSubscription:
                    clientCorrelator: '0123'
                    callbackReference:
                      callbackData: '1234'
                      notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                    address: 'acr:10.0.0.1'
                    frequency: 10
                    requestedAccuracy: 10
Michel Roy's avatar
Michel Roy committed
860
861
862
863
864
865
866
867
868
869
      responses:
        '201':
          description: 'Successful subscription'
          content:
            application/json:
              schema:
                type: object
                properties:
                  periodicNotificationSubscription:
                    $ref: '#/components/schemas/PeriodicNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
870
871
872
873
874
875
876
877
878
879
                examples:
                  - periodicNotificationSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        callbackData: '1234'
                        notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                      address: 'acr:10.0.0.1'
                      frequency: 10
                      requestedAccuracy: 10
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/periodic/subscription123'
Michel Roy's avatar
Michel Roy committed
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
        '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#/periodicNotificationSubscription.callbackReference.notifyURL}':
            post:
Michel Roy's avatar
Michel Roy committed
896
897
898
899
              summary: 'Callback POST used to send a notification'
              description: 'Notification from Location service, content based on subscription type'
              operationId: periodicNotificationPOST
              requestBody:
Michel Roy's avatar
Michel Roy committed
900
901
902
903
904
905
906
907
908
                description: 'Subscription notification'
                required: true
                content:
                  application/json:
                    schema:
                      type: object
                      properties:
                        subscriptionNotification:
                          $ref: '#/components/schemas/SubscriptionNotification'
Muhammad Hamza's avatar
Muhammad Hamza committed
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
                      examples:
                        - subscriptionNotification:
                            isFinalNotification: false,
                            link:
                              rel: PeriodicNotificationSubscription
                              href: 'http://meAppServer.example.com/location/v2/subscriptions/periodic/sub123'
                            terminalLocation:
                              address: 'acr:10.0.0.1'
                              currentLocation:
                                accuracy: 100
                                altitude: 1001.0
                                latitude: -80.86302
                                longitude: 41.277306
                                timestamp:
                                  seconds: 1483231138
                                  nanoSeconds": 0
                              locationRetrievalStatus: 'Retrieved'
Michel Roy's avatar
Michel Roy committed
926
927
928
929
930
931
932
              responses:
                '204':
                  $ref: '#/components/responses/204'
      x-swagger-router-controller: 'subscriptions'
  /subscriptions/periodic/{subscriptionId}:
    get:
      tags:
933
        - 'location'
Michel Roy's avatar
Michel Roy committed
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
      summary: 'Retrieve subscription information'
      description: 'Get subscription information.'
      operationId: periodicSubGET
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Subscription information regarding subscription notifications'
          content:
            application/json:
              schema:
                type: object
                required:
                  - periodicNotificationSubscription
                properties:
                  periodicNotificationSubscription:
                    $ref: '#/components/schemas/PeriodicNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
951
952
953
954
955
956
957
958
959
960
                examples:
                  - periodicNotificationSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        callbackData: '1234'
                        notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                      address: 'acr:10.0.0.1'
                      frequency: 10
                      requestedAccuracy: 10
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/periodic/subscription123'
Michel Roy's avatar
Michel Roy committed
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
        '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:
976
        - 'location'
Michel Roy's avatar
Michel Roy committed
977
978
979
980
981
982
983
984
985
986
987
988
989
      summary: 'Updates a subscription information'
      description: 'Updates a subscription.'
      operationId: periodicSubPUT
      requestBody:
        description: 'Subscription to be modified'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                periodicNotificationSubscription:
                  $ref: '#/components/schemas/PeriodicNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
990
991
992
993
994
995
996
997
998
999
              examples:
                - periodicNotificationSubscription:
                    clientCorrelator: '0123'
                    callbackReference:
                      callbackData: '1234'
                      notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                    address: 'acr:10.0.0.1'
                    frequency: 10
                    requestedAccuracy: 10
                    resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/periodic/subscription123'
Michel Roy's avatar
Michel Roy committed
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Successful subscription to response to subscription notifications'
          content:
            application/json:
              schema:
                type: object
                properties:
                  periodicNotificationSubscription:
                    $ref: '#/components/schemas/PeriodicNotificationSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
                examples:
                  - periodicNotificationSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        callbackData: '1234'
                        notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                      address: 'acr:10.0.0.1'
                      frequency: 10
                      requestedAccuracy: 10
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/periodic/subscription123'
Michel Roy's avatar
Michel Roy committed
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
        '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'
1038
      x-swagger-router-controller: 'subscriptions'
Michel Roy's avatar
Michel Roy committed
1039
1040
    delete:
      tags:
1041
        - 'location'
Michel Roy's avatar
Michel Roy committed
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
      summary: 'Cancel a subscription'
      description: 'Method to delete a subscription.'
      operationId: periodicSubDELETE
      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/userTracking:
    get:
      tags:
1062
        - 'location'
Michel Roy's avatar
Michel Roy committed
1063
1064
1065
1066
1067
      summary: 'Retrieves all active subscriptions to user tracking notifications'
      description: 'This operation is used for retrieving all active subscriptions to user tracking notifications.'
      operationId: userTrackingSubListGET
      responses:
        '200':
1068
          description: 'Response to retrieve user tracking subscriptions'
Michel Roy's avatar
Michel Roy committed
1069
1070
1071
1072
1073
1074
1075
1076
1077
          content:
            application/json:
              schema:
                type: object
                required:
                  - notificationSubscriptionList
                properties:
                  notificationSubscriptionList:
                    $ref: '#/components/schemas/NotificationSubscriptionList'
Muhammad Hamza's avatar
Muhammad Hamza committed
1078
1079
1080
1081
1082
1083
1084
1085
                examples:
                  - notificationSubscriptionList:
                      userTrackingSubscription:
                        - clientCorrelator: '0123'
                          resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/userTracking/subscription123'
                          callbackReference:
                            notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                          address: 'acr:192.0.2.1'
1086
                          userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1087
1088
1089
1090
1091
                        - clientCorrelator: '0124'
                          resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/userTracking/subscription124'
                          callbackReference:
                            notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                          address: 'acr:192.0.2.2'
1092
                          userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1093
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/userTracking'
Michel Roy's avatar
Michel Roy committed
1094
1095
    post:
      tags:
1096
        - 'location'
Michel Roy's avatar
Michel Roy committed
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
      summary: 'Creates a subscription for user tracking notification'
      description: 'Creates a subscription to the Location Service for user tracking change notification.'
      operationId: userTrackingSubPOST
      requestBody:
        description: 'Subscription to be created'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                userTrackingSubscription:
                  $ref: '#/components/schemas/UserTrackingSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1110
1111
1112
1113
1114
1115
              examples:
                - userTrackingSubscription:
                    clientCorrelator: '0123'
                    callbackReference:
                      notifyURL: 'http://my.callback.com/location_notifications/some-id'
                    address: 'acr:10.0.0.1'
1116
                    userEventCriteria: ['Transferring']
Michel Roy's avatar
Michel Roy committed
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
      responses:
        '201':
          description: 'Successful subscription'
          content:
            application/json:
              schema:
                type: object
                properties:
                  userTrackingSubscription:
                    $ref: '#/components/schemas/UserTrackingSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1127
1128
1129
1130
1131
1132
                examples:
                  - userTrackingSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        notifyURL: 'http://my.callback.com/location_notifications/some-id'
                      address: 'acr:10.0.0.1'
1133
                      userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1134
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/userTracking/sub123'
Michel Roy's avatar
Michel Roy committed
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
        '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#/userTrackingSubscription.callbackReference.notifyURL}':
            post:
Michel Roy's avatar
Michel Roy committed
1151
1152
1153
1154
              summary: 'Callback POST used to send a notification'
              description: 'Notification from Location service, content based on subscription type'
              operationId: userTrackingNotificationPOST
              requestBody:
Michel Roy's avatar
Michel Roy committed
1155
1156
1157
1158
1159
1160
1161
1162
1163
                description: 'Subscription notification'
                required: true
                content:
                  application/json:
                    schema:
                      type: object
                      properties:
                        zonalPresenceNotification:
                          $ref: '#/components/schemas/ZonalPresenceNotification'
Muhammad Hamza's avatar
Muhammad Hamza committed
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
                      examples:
                        - zonalPresenceNotification:
                            clientCorrelator: '0123'
                            zoneId: 'zone01'
                            address: 'acr:10.0.0.1'
                            userEventType: 'Transferring'
                            currentAccessPointId: 'ap2'
                            previousAccessPointId: 'ap1'
                            timestamp:
                              seconds: 1483231138
                              nanoseconds: 0
                            link:
                              rel: UserTrackingSubscription
                              href: 'http://meAppServer.example.com/location/v2/subscriptions/userTracking/sub123'
Michel Roy's avatar
Michel Roy committed
1178
1179
1180
1181
1182
1183
1184
              responses:
                '204':
                  $ref: '#/components/responses/204'
      x-swagger-router-controller: 'subscriptions'
  /subscriptions/userTracking/{subscriptionId}:
    get:
      tags:
1185
        - 'location'
Michel Roy's avatar
Michel Roy committed
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
      summary: 'Retrieve subscription information'
      description: 'Get subscription information.'
      operationId: userTrackingSubGET
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Subscription information regarding subscription notifications'
          content:
            application/json:
              schema:
                type: object
                required:
                  - userTrackingSubscription
                properties:
                  userTrackingSubscription:
                    $ref: '#/components/schemas/UserTrackingSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1203
1204
1205
1206
1207
1208
                examples:
                  - userTrackingSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        notifyURL: 'http://my.callback.com/location_notifications/some-id'
                      address: 'acr:10.0.0.1'
1209
                      userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1210
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/userTracking/sub123'
Michel Roy's avatar
Michel Roy committed
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
        '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:
1226
        - 'location'
Michel Roy's avatar
Michel Roy committed
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
      summary: 'Updates a subscription information'
      description: 'Updates a subscription.'
      operationId: userTrackingSubPUT
      requestBody:
        description: 'Subscription to be modified'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                userTrackingSubscription:
                  $ref: '#/components/schemas/UserTrackingSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1240
1241
1242
1243
1244
1245
              examples:
                - userTrackingSubscription:
                    clientCorrelator: '0123'
                    callbackReference:
                      notifyURL: 'http://my.callback.com/location_notifications/some-id'
                    address: 'acr:10.0.0.1'
1246
                    userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1247
                    resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/userTracking/sub123'
Michel Roy's avatar
Michel Roy committed
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Successful subscription to response to subscription notifications'
          content:
            application/json:
              schema:
                type: object
                properties:
                  userTrackingSubscription:
                    $ref: '#/components/schemas/UserTrackingSubscription'
1260
1261
1262
1263
1264
1265
                examples:
                  - userTrackingSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        notifyURL: 'http://my.callback.com/location_notifications/some-id'
                      address: 'acr:10.0.0.1'
1266
                      userEventCriteria: ['Transferring']
1267
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/userTracking/sub123'
Michel Roy's avatar
Michel Roy committed
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
        '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:
1287
        - 'location'
Michel Roy's avatar
Michel Roy committed
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
      summary: 'Cancel a subscription'
      description: 'Method to delete a subscription.'
      operationId: userTrackingSubDELETE
      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/zonalTraffic:
    get:
      tags:
1308
        - 'location'
Michel Roy's avatar
Michel Roy committed
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
      summary: 'Retrieves all active subscriptions to zonal traffic notifications'
      description: 'This operation is used for retrieving all active subscriptions to zonal traffic change notifications.'
      operationId: zonalTrafficSubListGET
      responses:
        '200':
          description: 'Response to retrieve zonal traffic subscriptions'
          content:
            application/json:
              schema:
                type: object
                required:
                  - notificationSubscriptionList
                properties:
                  notificationSubscriptionList:
                    $ref: '#/components/schemas/NotificationSubscriptionList'
Muhammad Hamza's avatar
Muhammad Hamza committed
1324
1325
1326
1327
1328
1329
1330
1331
                examples:
                  - notificationSubscriptionList:
                      zonalTrafficSubscription:
                        - clientCorrelator: '0123'
                          resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zonalTraffic/subscription123'
                          callbackReference:
                            notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                          zoneId: 'zone01'
1332
                          userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1333
1334
1335
1336
1337
                        - clientCorrelator: '0124'
                          resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zonalTraffic/subscription124'
                          callbackReference:
                            notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                          zoneId: 'zone02'
1338
                          userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1339
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zonalTraffic'
Michel Roy's avatar
Michel Roy committed
1340
1341
    post:
      tags:
1342
        - 'location'
Michel Roy's avatar
Michel Roy committed
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
      summary: 'Creates a subscription for zonal traffic notification'
      description: 'Creates a subscription to the Location Service for zonal traffic change notification.'
      operationId: zonalTrafficSubPOST
      requestBody:
        description: 'Subscription to be created'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                zonalTrafficSubscription:
                  $ref: '#/components/schemas/ZonalTrafficSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1356
1357
1358
1359
1360
1361
              examples:
                - zonalTrafficSubscription:
                    clientCorrelator: '0123'
                    callbackReference:
                      notifyURL: 'http://my.callback.com/location_notifications/some-id'
                    zoneId: 'zone01'
1362
                    userEventCriteria: ['Transferring']
Michel Roy's avatar
Michel Roy committed
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
      responses:
        '201':
          description: 'Successful subscription'
          content:
            application/json:
              schema:
                type: object
                properties:
                  zonalTrafficSubscription:
                    $ref: '#/components/schemas/ZonalTrafficSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1373
1374
1375
1376
1377
1378
                examples:
                  - zonalTrafficSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        notifyURL: 'http://my.callback.com/location_notifications/some-id'
                      zoneId: 'zone01'
1379
                      userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1380
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zonalTraffic/sub123'
Michel Roy's avatar
Michel Roy committed
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
        '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#/zonalTrafficSubscription.callbackReference.notifyURL}':
            post:
Michel Roy's avatar
Michel Roy committed
1397
1398
1399
1400
              summary: 'Callback POST used to send a notification'
              description: 'Notification from Location service, content based on subscription type'
              operationId: zonalTrafficNotificationPOST
              requestBody:
Michel Roy's avatar
Michel Roy committed
1401
1402
1403
1404
1405
1406
1407
1408
1409
                description: 'Subscription notification'
                required: true
                content:
                  application/json:
                    schema:
                      type: object
                      properties:
                        zonalPresenceNotification:
                          $ref: '#/components/schemas/ZonalPresenceNotification'
Muhammad Hamza's avatar
Muhammad Hamza committed
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
                      examples:
                        - zonalPresenceNotification:
                            clientCorrelator: '0123'
                            zoneId: 'zone01'
                            address: 'acr:10.0.0.1'
                            userEventType: 'Transferring'
                            currentAccessPointId: 'ap2'
                            previousAccessPointId: 'ap1'
                            timestamp:
                              seconds: 1483231138
                              nanoseconds: 0
                            link:
                              rel: ZonalTrafficSubscription
                              href: 'http://meAppServer.example.com/location/v2/subscriptions/zonalTraffic/sub123'
Michel Roy's avatar
Michel Roy committed
1424
1425
1426
1427
1428
1429
1430
              responses:
                '204':
                  $ref: '#/components/responses/204'
      x-swagger-router-controller: 'subscriptions'
  /subscriptions/zonalTraffic/{subscriptionId}:
    get:
      tags:
1431
        - 'location'
Michel Roy's avatar
Michel Roy committed
1432
1433
      summary: 'Retrieve subscription information'
      description: 'Get subscription information.'
Michel Roy's avatar
Michel Roy committed
1434
      operationId: zonalTrafficSubGET
Michel Roy's avatar
Michel Roy committed
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Subscription information regarding subscription notifications'
          content:
            application/json:
              schema:
                type: object
                required:
                  - zonalTrafficSubscription
                properties:
                  zonalTrafficSubscription:
                    $ref: '#/components/schemas/ZonalTrafficSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1449
1450
1451
1452
1453
1454
                examples:
                  - zonalTrafficSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        notifyURL: 'http://my.callback.com/location_notifications/some-id'
                      zoneId: 'zone01'
1455
                      userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1456
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zonalTraffic/sub123'
Michel Roy's avatar
Michel Roy committed
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
        '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'
1469
      x-swagger-router-controller: 'subscriptions'
Michel Roy's avatar
Michel Roy committed
1470
1471
    put:
      tags:
1472
        - 'location'
Michel Roy's avatar
Michel Roy committed
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
      summary: 'Updates a subscription information'
      description: 'Updates a subscription.'
      operationId: zonalTrafficSubPUT
      requestBody:
        description: 'Subscription to be modified'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                zonalTrafficSubscription:
                  $ref: '#/components/schemas/ZonalTrafficSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1486
1487
1488
1489
1490
1491
              examples:
                - zonalTrafficSubscription:
                    clientCorrelator: '0123'
                    callbackReference:
                      notifyURL: 'http://my.callback.com/location_notifications/some-id'
                    zoneId: 'zone01'
1492
                    userEventCriteria: ['Transferring']
Muhammad Hamza's avatar
Muhammad Hamza committed
1493
                    resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zonalTraffic/sub123'
Michel Roy's avatar
Michel Roy committed
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Successful subscription to response to subscription notifications'
          content:
            application/json:
              schema:
                type: object
                properties:
                  zonalTrafficSubscription:
                    $ref: '#/components/schemas/ZonalTrafficSubscription'
1506
1507
1508
1509
1510
1511
                examples:
                  - zonalTrafficSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        notifyURL: 'http://my.callback.com/location_notifications/some-id'
                      zoneId: 'zone01'
1512
                      userEventCriteria: ['Transferring']
1513
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zonalTraffic/sub123'
Michel Roy's avatar
Michel Roy committed
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
        '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:
1533
        - 'location'
Michel Roy's avatar
Michel Roy committed
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
      summary: 'Cancel a subscription'
      description: 'Method to delete a subscription.'
      operationId: zonalTrafficSubDELETE
      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/zoneStatus:
    get:
      tags:
1554
        - 'location'
Michel Roy's avatar
Michel Roy committed
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
      summary: 'Retrieves all active subscriptions to zone status notifications'
      description: 'This operation is used for retrieving all active subscriptions to zone status change notifications.'
      operationId: zoneStatusSubListGET
      responses:
        '200':
          description: 'Response to retrieve zone status subscriptions'
          content:
            application/json:
              schema:
                type: object
                required:
                  - notificationSubscriptionList
                properties:
                  notificationSubscriptionList:
                    $ref: '#/components/schemas/NotificationSubscriptionList'
Muhammad Hamza's avatar
Muhammad Hamza committed
1570
1571
1572
                examples:
                  - notificationSubscriptionList:
                      zoneStatusSubscription:
1573
1574
1575
1576
1577
1578
1579
                        - clientCorrelator: '0123'
                          resourceURL: 'http://example.com/exampleAPI/location/v2/subscriptions/zoneStatus/subscription123'
                          callbackReference:
                            notifyURL: 'http://clientApp.example.com/location_notifications/123456'
                          zoneId: 'zone01'
                          numberOfUsersZoneThreshold: 500
                          operationStatus: ['Serviceable']
Muhammad Hamza's avatar
Muhammad Hamza committed
1580
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zoneStatus'
Michel Roy's avatar
Michel Roy committed
1581
1582
    post:
      tags:
1583
        - 'location'
Michel Roy's avatar
Michel Roy committed
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
      summary: 'Creates a subscription for zone status notification'
      description: 'Creates a subscription to the Location Service for zone status change notification.'
      operationId: zoneStatusSubPOST
      requestBody:
        description: 'Subscription to be created'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                zoneStatusSubscription:
                  $ref: '#/components/schemas/ZoneStatusSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1597
1598
1599
1600
1601
1602
1603
1604
              examples:
                - zoneStatusSubscription:
                    clientCorrelator: '0123'
                    callbackReference:
                      notifyURL: 'http://my.callback.com/location_notifications/some-id'
                    zoneId: 'zone01'
                    numberOfUsersZoneThreshold: 500
                    operationStatus: ['Serviceable']
Michel Roy's avatar
Michel Roy committed
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
      responses:
        '201':
          description: 'Successful subscription'
          content:
            application/json:
              schema:
                type: object
                properties:
                  zoneStatusSubscription:
                    $ref: '#/components/schemas/ZoneStatusSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1615
1616
1617
1618
1619
1620
1621
1622
1623
                examples:
                  - zoneStatusSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        notifyURL: 'http://my.callback.com/location_notifications/some-id'
                      zoneId: 'zone01'
                      numberOfUsersZoneThreshold: 500
                      operationStatus: ['Serviceable']
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zoneStatus/sub123'
Michel Roy's avatar
Michel Roy committed
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
        '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#/zoneStatusSubscription.callbackReference.notifyURL}':
            post:
Michel Roy's avatar
Michel Roy committed
1640
1641
1642
1643
              summary: 'Callback POST used to send a notification'
              description: 'Notification from Location service, content based on subscription type'
              operationId: zoneStatusNotificationPOST
              requestBody:
Michel Roy's avatar
Michel Roy committed
1644
1645
1646
1647
1648
1649
1650
1651
1652
                description: 'Subscription notification'
                required: true
                content:
                  application/json:
                    schema:
                      type: object
                      properties:
                        zoneStatusNotification:
                          $ref: '#/components/schemas/ZoneStatusNotification'
Muhammad Hamza's avatar
Muhammad Hamza committed
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
                      examples:
                        - zoneStatusNotification:
                            clientCorrelator: '0123'
                            zoneId: 'zone01'
                            accessPointId: 'poa1'
                            operationStatus: 'Serviceable'
                            numberOfUsersInZone: '20'
                            numberOfUsersInAP: '12'
                            timestamp:
                              seconds: 1483231138
                              nanoseconds: 0
                            link:
                              rel: ZoneStatusSubscription
                              href: 'http://meAppServer.example.com/location/v2/subscriptions/zoneStatus/sub123'
Michel Roy's avatar
Michel Roy committed
1667
1668
1669
1670
1671
1672
1673
              responses:
                '204':
                  $ref: '#/components/responses/204'
      x-swagger-router-controller: 'subscriptions'
  /subscriptions/zoneStatus/{subscriptionId}:
    get:
      tags:
1674
        - 'location'
Michel Roy's avatar
Michel Roy committed
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
      summary: 'Retrieve subscription information'
      description: 'Get subscription information.'
      operationId: zoneStatusSubGET
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Subscription information regarding subscription notifications'
          content:
            application/json:
              schema:
                type: object
                required:
                  - zoneStatusSubscription
                properties:
                  zoneStatusSubscription:
                    $ref: '#/components/schemas/ZoneStatusSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1692
1693
1694
1695
1696
1697
1698
1699
1700
                examples:
                  - zoneStatusSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        notifyURL: 'http://my.callback.com/location_notifications/some-id'
                      zoneId: 'zone01'
                      numberOfUsersZoneThreshold: 500
                      operationStatus: ['Serviceable']
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zoneStatus/sub123'
Michel Roy's avatar
Michel Roy committed
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
        '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'
1713
      x-swagger-router-controller: 'subscriptions'
Michel Roy's avatar
Michel Roy committed
1714
1715
    put:
      tags:
1716
        - 'location'
Michel Roy's avatar
Michel Roy committed
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
      summary: 'Updates a subscription information'
      description: 'Updates a subscription.'
      operationId: zoneStatusSubPUT
      requestBody:
        description: 'Subscription to be modified'
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                zoneStatusSubscription:
                  $ref: '#/components/schemas/ZoneStatusSubscription'
Muhammad Hamza's avatar
Muhammad Hamza committed
1730
1731
1732
1733
1734
1735
1736
1737
1738
              examples:
                - zoneStatusSubscription:
                    clientCorrelator: '0123'
                    callbackReference:
                      notifyURL: 'http://my.callback.com/location_notifications/some-id'
                    zoneId: 'zone01'
                    numberOfUsersZoneThreshold: 500
                    operationStatus: ['Serviceable']
                    resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zoneStatus/sub123'
Michel Roy's avatar
Michel Roy committed
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
      parameters:
        - $ref: '#/components/parameters/Path.SubscrId'
      responses:
        '200':
          description: 'Successful subscription to response to subscription notifications'
          content:
            application/json:
              schema:
                type: object
                properties:
                  zoneStatusSubscription:
                    $ref: '#/components/schemas/ZoneStatusSubscription'
1751
1752
1753
1754
1755
1756
1757
1758
1759
                examples:
                  - zoneStatusSubscription:
                      clientCorrelator: '0123'
                      callbackReference:
                        notifyURL: 'http://my.callback.com/location_notifications/some-id'
                      zoneId: 'zone01'
                      numberOfUsersZoneThreshold: 500
                      operationStatus: ['Serviceable']
                      resourceURL: 'http://meAppServer.example.com/location/v2/subscriptions/zoneStatus/sub123'
Michel Roy's avatar
Michel Roy committed
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
        '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:
1779
        - 'location'
Michel Roy's avatar
Michel Roy committed
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
      summary: 'Cancel a subscription'
      description: 'Method to delete a subscription.'
      operationId: zoneStatusSubDELETE
      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:
1799
    '200':
Michel Roy's avatar
Michel Roy committed
1800
      description: 'OK'