diff --git a/LocationAPI.index.yaml b/LocationAPI.index.yaml deleted file mode 100644 index 8fc1e8838784583dfd32e6d701c49aa5912a3b0f..0000000000000000000000000000000000000000 --- a/LocationAPI.index.yaml +++ /dev/null @@ -1,52 +0,0 @@ -################################################################################ -# Open API specification version # -################################################################################ -swagger: '2.0' - -################################################################################ -# Document Information # -################################################################################ -info: - $ref: './info/index.yaml' - -################################################################################ -# External Documents # -################################################################################ -externalDocs: - $ref: './externalDocs/index.yaml' - -host: 127.0.0.1:8081 -basePath: /exampleAPI/location/v1/ -schemes: -- http -- https -consumes: -- application/json -produces: -- application/json - -################################################################################ -# Parameters # -################################################################################ -parameters: - $ref: './parameters/index.yaml' - -################################################################################ -# paths # -################################################################################ -paths: - $ref: './paths/index.yaml' - -################################################################################ -# Definitions # -################################################################################ -definitions: - $ref: './definitions/index.yaml' - -################################################################################ -# SEEMINGLY NOT ALLOWED in Swagger/OpenAPI 2.0 # -# # -# Examples # -################################################################################ -#examples: -# $ref: './examples/index.yaml' \ No newline at end of file diff --git a/definitions/AccessPointId.yaml b/definitions/AccessPointId.yaml index 6c4cf1b89f4eb509826d235dbada458c74f33ada..f90537754d5a3eaf9df16b5eecbd0fd7340c633b 100644 --- a/definitions/AccessPointId.yaml +++ b/definitions/AccessPointId.yaml @@ -1,4 +1,3 @@ -description: >- - Identifier of access point, (reference ETSI TS 129 171). Where the E-CGI is made up of the PLMN and Cell Identity (28 bit string). Then the PLMN is made up of the 3 digit MCC & 2 or 3 digit MNC. The Cell Portion is an optional element +description: Identifier of access point, (reference ETSI TS 129 171). Where the E-CGI is made up of the PLMN and Cell Identity (28 bit string). Then the PLMN is made up of the 3 digit MCC & 2 or 3 digit MNC. The Cell Portion is an optional element type: string example: "001010000000000000000000000000001" \ No newline at end of file diff --git a/definitions/AccessPointInfo.yaml b/definitions/AccessPointInfo.yaml index 7dfc4539693c1811bb129b09edb31b8cfbc1a6e0..9a4c4f91b89d8e7b78f5a2e3900495f75ca633b7 100644 --- a/definitions/AccessPointInfo.yaml +++ b/definitions/AccessPointInfo.yaml @@ -1,3 +1,5 @@ +description: A type containing access point information. +type: object required: - accessPointId - connectionType diff --git a/definitions/AccessPointList.yaml b/definitions/AccessPointList.yaml index e324425e15a0af31b488c862e120f0fe551a0510..d864e175b630f71aa3d1f9b6d2c76590195648df 100644 --- a/definitions/AccessPointList.yaml +++ b/definitions/AccessPointList.yaml @@ -1,3 +1,5 @@ +description: A type containing list of access points. +type: object required: - zoneId - resourceURL diff --git a/definitions/AncillaryInfo.yaml b/definitions/AncillaryInfo.yaml index 90cf1f05cbcf4d5267ab7add6c349edb949571ff..686294c808f4cffced9001581bae97ab1a9402af 100644 --- a/definitions/AncillaryInfo.yaml +++ b/definitions/AncillaryInfo.yaml @@ -1,5 +1,2 @@ -required: -- address -properties: - address: - $ref: '#/definitions/Address' \ No newline at end of file +description: Reserved for future use. +type: string \ No newline at end of file diff --git a/definitions/CallbackReference.yaml b/definitions/CallbackReference.yaml index fb5a1e8f74a689a376376df6e2a5663251c5c49d..305a89945ea48d38d044997063bf1ecb4c3407d4 100644 --- a/definitions/CallbackReference.yaml +++ b/definitions/CallbackReference.yaml @@ -1,3 +1,5 @@ +description: Notification callback definition. +type: object required: - notifyURL properties: diff --git a/definitions/ContextLocationInfo.yaml b/definitions/ContextLocationInfo.yaml index 5326e7de9bbd54abc17cfda13bfef6d256a0aac5..569a725475c4930a6179f43cfb9fec16eb2934a0 100644 --- a/definitions/ContextLocationInfo.yaml +++ b/definitions/ContextLocationInfo.yaml @@ -1,3 +1,3 @@ description: Contextual information of a user location (e.g., aisle, floor, room number, etc.) type: string -example: "GroundFoor" \ No newline at end of file +example: "GroundFloor" \ No newline at end of file diff --git a/definitions/Link.yaml b/definitions/Link.yaml index 163887f3bd09568c004f05c65fd1a0e3ce931fe0..bc8680ec0edd936dc59cf2b08cc3e2d6b0d260e3 100644 --- a/definitions/Link.yaml +++ b/definitions/Link.yaml @@ -1,3 +1,5 @@ +description: Link to other resources +type: object required: - rel - href diff --git a/definitions/UserInfo.yaml b/definitions/UserInfo.yaml index 5f2bf93ebf13cd7c5c8eb95250d2eddc1009c553..160bca104b244b3a9f5cf206f30d8e4aea4ce168 100644 --- a/definitions/UserInfo.yaml +++ b/definitions/UserInfo.yaml @@ -1,3 +1,5 @@ +description: A type containing user information. +type: object required: - address - accessPointId diff --git a/definitions/UserList.yaml b/definitions/UserList.yaml index bfdd096de91b55fc2a26cdaf2114000d115bcf7b..9de36406f71a0ad366702b89d8ebadfbcf5c7b48 100644 --- a/definitions/UserList.yaml +++ b/definitions/UserList.yaml @@ -1,4 +1,5 @@ description: A type containing list of users. +type: object required: - resourceURL properties: diff --git a/definitions/UserTrackingSubscription.yaml b/definitions/UserTrackingSubscription.yaml index 4253016706ff1b3426291df5dba35dd09201810f..eeabe119fe2cf0e8616098bbbc7ce12c66059531 100644 --- a/definitions/UserTrackingSubscription.yaml +++ b/definitions/UserTrackingSubscription.yaml @@ -1,3 +1,5 @@ +description: A type containing user tracking subscription. +type: object required: - callbackReference - address diff --git a/definitions/ZonalPresenceNotification.yaml b/definitions/ZonalPresenceNotification.yaml index 3359e3d1ad8ec5c327f2d68cf2fd24a7d368d3d3..2e1bb68cdd9b7e60b559c1173da9db731a80b308 100644 --- a/definitions/ZonalPresenceNotification.yaml +++ b/definitions/ZonalPresenceNotification.yaml @@ -1,3 +1,5 @@ +description: A type containing zonal presence notification +type: object required: - zoneId - address diff --git a/definitions/ZonalTrafficSubscription.yaml b/definitions/ZonalTrafficSubscription.yaml index 0ab3cfea6ac5b5045a36a67adb7281f030ae40bb..d101919aa3d765c55c13f2494884aeb465c1ddf6 100644 --- a/definitions/ZonalTrafficSubscription.yaml +++ b/definitions/ZonalTrafficSubscription.yaml @@ -16,7 +16,6 @@ properties: items: $ref: '#/definitions/InterestRealm' userEventCriteria: -# $ref: '#/definitions/UserEventCriteria' description: List of user event values to generate notifications for (these apply to zone identifier or all interest realms within zone identifier specified). If this element is missing, a notification is requested to be generated for any change in user event. type: array items: diff --git a/definitions/ZoneInfo.yaml b/definitions/ZoneInfo.yaml index 8f74b6510f665fa8367a10681dcbb52e0b54bc27..4351320c6b6bdd5b57e6f4700d41fa0bc795501c 100644 --- a/definitions/ZoneInfo.yaml +++ b/definitions/ZoneInfo.yaml @@ -1,4 +1,5 @@ description: A type containing zone information. +type: object required: - zoneId - numberOfAccessPoints diff --git a/definitions/ZoneList.yaml b/definitions/ZoneList.yaml index e5945c31ceb0231fbda1e16f8bb92df2026b8752..63168e7c8d395ccca1aa7f9b25ed41cf164dce78 100644 --- a/definitions/ZoneList.yaml +++ b/definitions/ZoneList.yaml @@ -1,4 +1,5 @@ description: Collection of the zone information list. +type: object required: - resourceURL properties: diff --git a/definitions/ZoneStatusNotification.yaml b/definitions/ZoneStatusNotification.yaml index 5d94491213bdd3bfe8b899b6efc8238dec426f58..6c439a6615963b91cb5f0488773e5be46eb085da 100644 --- a/definitions/ZoneStatusNotification.yaml +++ b/definitions/ZoneStatusNotification.yaml @@ -1,3 +1,5 @@ +description: A type containing zone status notification. +type: object required: - zoneId - timestamp diff --git a/definitions/ZoneStatusSubscription.yaml b/definitions/ZoneStatusSubscription.yaml index 7c9ecb3d1b28d4b229a8cdb04d1d6a0de5edbf30..3e0790e69a1f13d4813efc9d50f442f0115e1818 100644 --- a/definitions/ZoneStatusSubscription.yaml +++ b/definitions/ZoneStatusSubscription.yaml @@ -1,3 +1,5 @@ +description: A type containing zone status subscription. +type: object required: - callbackReference - zoneId diff --git a/definitions/index.yaml b/definitions/index.yaml index 03e08bb27ad56d0eb339f870f608925ec5723b91..db997a1776b44b79e82e8716a87e4d88a93cd3fa 100644 --- a/definitions/index.yaml +++ b/definitions/index.yaml @@ -1,119 +1,80 @@ AccessPointId: $ref: ./AccessPointId.yaml - AccessPointInfo: $ref: ./AccessPointInfo.yaml - AccessPointList: $ref: ./AccessPointList.yaml - Address: $ref: ./Address.yaml - AncillaryInfo: $ref: ./AncillaryInfo.yaml - CallbackData: $ref: ./CallbackData.yaml - CallbackReference: $ref: ./CallbackReference.yaml - ClientCorrelator: $ref: ./ClientCorrelator.yaml - ConnectionType: $ref: ./ConnectionType.yaml - ContextLocationInfo: $ref: ./ContextLocationInfo.yaml - CurrentAccessPointId: $ref: ./CurrentAccessPointId.yaml - Duration: $ref: ./Duration.yaml - InterestRealm: $ref: ./InterestRealm.yaml - Link: $ref: ./Link.yaml - LocationInfo: $ref: ./LocationInfo.yaml - NotifyURL: $ref: ./NotifyURL.yaml - NumberOfAccessPoints: $ref: ./NumberOfAccessPoints.yaml - NumberOfUnserviceableAccessPoints: $ref: ./NumberOfUnserviceableAccessPoints.yaml - NumberOfUsers: $ref: ./NumberOfUsers.yaml - NumberOfUsersAPThreshold: $ref: ./NumberOfUsersAPThreshold.yaml - NumberOfUsersInAP: $ref: ./NumberOfUsersInAP.yaml - NumberOfUsersInZone: $ref: ./NumberOfUsersInZone.yaml - NumberOfUsersZoneThreshold: $ref: ./NumberOfUsersZoneThreshold.yaml - OperationStatus: $ref: ./OperationStatus.yaml - PreviousAccessPointId: $ref: ./PreviousAccessPointId.yaml - ResourceURL: $ref: ./ResourceURL.yaml - Timestamp: $ref: ./Timestamp.yaml - Timezone: $ref: ./Timezone.yaml - UserEventCriteria: $ref: ./UserEventCriteria.yaml - UserEventType: $ref: ./UserEventType.yaml - UserInfo: $ref: ./UserInfo.yaml - UserList: $ref: ./UserList.yaml - UserTrackingSubscription: $ref: ./UserTrackingSubscription.yaml - ZonalPresenceNotification: $ref: ./ZonalPresenceNotification.yaml - ZonalTrafficSubscription: $ref: ./ZonalTrafficSubscription.yaml - ZoneId: $ref: ./ZoneId.yaml - ZoneInfo: $ref: ./ZoneInfo.yaml - ZoneList: $ref: ./ZoneList.yaml - ZoneStatusNotification: $ref: ./ZoneStatusNotification.yaml - ZoneStatusSubscription: $ref: ./ZoneStatusSubscription.yaml \ No newline at end of file diff --git a/externalDocs/index.yaml b/externalDocs/index.yaml index 132dc247d5eb4862900aa53492346931cadada96..20a5a1b0a6b9d12870aaca43efe5c1e39dfe949b 100644 --- a/externalDocs/index.yaml +++ b/externalDocs/index.yaml @@ -1,2 +1,2 @@ - description: "ETSI MEC013 V1.0.1 Location Service API" - url: "https://docbox.etsi.org/ISG/MEC/70-Draft/0013LocationApi" \ No newline at end of file +description: 'ETSI MEC013 V1.1.1 Location Service API' +url: 'http://www.etsi.org/deliver/etsi_gs/MEC/001_099/013/01.01.01_60/gs_mec013v010101p.pdf' \ No newline at end of file diff --git a/info/index.yaml b/info/index.yaml index ba27da53a38a7cf1b20a97dcbf185a8ef35e2539..6cf6a33dd8ff82edeb758a42400f1bd5d3ace051 100644 --- a/info/index.yaml +++ b/info/index.yaml @@ -1,6 +1,6 @@ - description: "The MEC-013 Location API described using OpenAPI, which is based on the Open Mobile Alliance's specification RESTful Network API for Zonal Presence" - version: '1.0.1' - title: 'MEC Location API' - license: - name: ETSI Forge copyright notice - url: 'https://forge.etsi.org/etsi-forge-copyright-notice.txt' \ No newline at end of file +title: 'Location API' +version: '1.1.1' +description: "The ETSI MEC ISG MEC012 Location API described using OpenAPI. The API is based on the Open Mobile Alliance's specification RESTful Network API for Zonal Presence" +license: + name: ETSI Forge copyright notice + url: 'https://forge.etsi.org/etsi-forge-copyright-notice.txt' \ No newline at end of file diff --git a/parameters/Body.UserTrackingSubscription.yaml b/parameters/Body.UserTrackingSubscription.yaml new file mode 100644 index 0000000000000000000000000000000000000000..62164ae776f11efccbde6f9cc9c127c41d2df0eb --- /dev/null +++ b/parameters/Body.UserTrackingSubscription.yaml @@ -0,0 +1,6 @@ +name: userTrackingSubscription +in: body +description: User Tracking Subscription +required: true +schema: + $ref: '#/definitions/UserTrackingSubscription' \ No newline at end of file diff --git a/parameters/Body.ZonalTrafficSubscription.yaml b/parameters/Body.ZonalTrafficSubscription.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b33fcefac87315100048d18c05cee3576a49dd5b --- /dev/null +++ b/parameters/Body.ZonalTrafficSubscription.yaml @@ -0,0 +1,6 @@ +name: zonalTrafficSubscription +in: body +description: Zonal Traffic Subscription +required: true +schema: + $ref: '#/definitions/ZonalTrafficSubscription' \ No newline at end of file diff --git a/parameters/Body.ZoneStatusSubscription.yaml b/parameters/Body.ZoneStatusSubscription.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7dfc296d489ae283ac7bc4b6a7845e7f61f5d040 --- /dev/null +++ b/parameters/Body.ZoneStatusSubscription.yaml @@ -0,0 +1,6 @@ +name: zoneStatusSubscription +in: body +description: Zone Status Subscription +required: true +schema: + $ref: '#/definitions/ZoneStatusSubscription' \ No newline at end of file diff --git a/parameters/Path.AccessPointId.yaml b/parameters/Path.AccessPointId.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d1f4b5719863c3e1789436b2e15bed4b8754906d --- /dev/null +++ b/parameters/Path.AccessPointId.yaml @@ -0,0 +1,5 @@ +name: accessPointId +in: path +description: Access Point ID +required: true +type: string \ No newline at end of file diff --git a/parameters/Path.SubscriptionId.yaml b/parameters/Path.SubscriptionId.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9d9f9d0d972334f9519d077df9af4a2e852dd640 --- /dev/null +++ b/parameters/Path.SubscriptionId.yaml @@ -0,0 +1,5 @@ +name: subscriptionId +in: path +description: Subscription ID +required: true +type: string \ No newline at end of file diff --git a/parameters/Path.UserId.yaml b/parameters/Path.UserId.yaml new file mode 100644 index 0000000000000000000000000000000000000000..720237f54dfb350e21a0e6153a70f2bd34de8358 --- /dev/null +++ b/parameters/Path.UserId.yaml @@ -0,0 +1,5 @@ +name: userId +in: path +description: User ID +required: true +type: string \ No newline at end of file diff --git a/parameters/Path.ZoneId.yaml b/parameters/Path.ZoneId.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8d2c71908e30563dc4d7fe498a979f7e27104386 --- /dev/null +++ b/parameters/Path.ZoneId.yaml @@ -0,0 +1,5 @@ +name: zoneId +in: path +description: Zone ID +required: true +type: string \ No newline at end of file diff --git a/parameters/AccessPointId.yaml b/parameters/Query.AccessPointId.yaml similarity index 100% rename from parameters/AccessPointId.yaml rename to parameters/Query.AccessPointId.yaml diff --git a/parameters/InterestRealm.yaml b/parameters/Query.InterestRealm.yaml similarity index 100% rename from parameters/InterestRealm.yaml rename to parameters/Query.InterestRealm.yaml diff --git a/parameters/ZoneId.yaml b/parameters/Query.ZoneId.yaml similarity index 100% rename from parameters/ZoneId.yaml rename to parameters/Query.ZoneId.yaml diff --git a/parameters/index.yaml b/parameters/index.yaml index 249147f44faec3e80588c5e1b421fd42ac2b2353..79aa6506d85c2814475dac64a5e89325386938c8 100644 --- a/parameters/index.yaml +++ b/parameters/index.yaml @@ -1,6 +1,20 @@ -ZoneId: - $ref: ./ZoneId.yaml -AccessPointId: - $ref: ./AccessPointId.yaml -InterestRealm: - $ref: ./InterestRealm.yaml \ No newline at end of file +Body.UserTrackingSubscription: + $ref: ./Body.UserTrackingSubscription.yaml +Body.ZonalTrafficSubscription: + $ref: ./Body.ZonalTrafficSubscription.yaml +Body.ZoneStatusSubscription: + $ref: ./Body.ZoneStatusSubscription.yaml +Path.AccessPointId: + $ref: ./Path.AccessPointId.yaml +Path.SubscriptionId: + $ref: ./Path.SubscriptionId.yaml +Path.UserId: + $ref: ./Path.UserId.yaml +Path.ZoneId: + $ref: ./Path.ZoneId.yaml +Query.AccessPointId: + $ref: ./Query.AccessPointId.yaml +Query.InterestRealm: + $ref: ./Query.InterestRealm.yaml +Query.ZoneId: + $ref: ./Query.ZoneId.yaml diff --git a/paths/SubsUserTrackId_Del.yaml b/paths/SubsUserTrackId_Del.yaml index 0752b6a69a717f8d1f5f555ca79831641340c8be..766658409f00ca6ee8ceed321d05bed37c150714 100644 --- a/paths/SubsUserTrackId_Del.yaml +++ b/paths/SubsUserTrackId_Del.yaml @@ -3,11 +3,7 @@ description: produces: - application/json parameters: -- name: subscriptionId - in: path - description: Subscription ID - required: true - type: string +- $ref: '#/parameters/Path.SubscriptionId' responses: 204: diff --git a/paths/SubsUserTrackId_Get.yaml b/paths/SubsUserTrackId_Get.yaml index 8ec55f7ff25bf0a93d12f9ef2aa35f421dcc0c1b..07445e75965c8f33e14415a41ec2042323a9dc35 100644 --- a/paths/SubsUserTrackId_Get.yaml +++ b/paths/SubsUserTrackId_Get.yaml @@ -3,11 +3,7 @@ description: produces: - application/json parameters: -- name: subscriptionId - in: path - description: Subscription ID - required: true - type: string +- $ref: '#/parameters/Path.SubscriptionId' responses: 200: diff --git a/paths/SubsUserTrackId_Put.yaml b/paths/SubsUserTrackId_Put.yaml index 845be5eb369ed8c20e2fac2fcb419e52838f837f..ab57b4852c2ff5ffb1cbddf05e649230f5f179e5 100644 --- a/paths/SubsUserTrackId_Put.yaml +++ b/paths/SubsUserTrackId_Put.yaml @@ -3,17 +3,8 @@ description: produces: - application/json parameters: -- name: subscriptionId - in: path - description: Subscription ID - required: true - type: string -- name: userTrackingSubscription - in: body - description: User Tracking Subscription - required: true - schema: - $ref: '#/definitions/UserTrackingSubscription' +- $ref: '#/parameters/Path.SubscriptionId' +- $ref: '#/parameters/Body.UserTrackingSubscription' responses: 200: diff --git a/paths/SubsUserTrack_Post.yaml b/paths/SubsUserTrack_Post.yaml index d1c702180db24978b79b03ebc987c435a2158571..8097c74549cf4cbfbd5163073de98a133300daf1 100644 --- a/paths/SubsUserTrack_Post.yaml +++ b/paths/SubsUserTrack_Post.yaml @@ -3,12 +3,7 @@ description: produces: - application/json parameters: -- name: userTrackingSubscription - in: body - description: User Tracking Subscription - required: true - schema: - $ref: '#/definitions/UserTrackingSubscription' +- $ref: '#/parameters/Body.UserTrackingSubscription' responses: 201: diff --git a/paths/SubsZonalTrafId_Del.yaml b/paths/SubsZonalTrafId_Del.yaml index 08e1dc25cd1f2193ae6b5ab4344613a81ac4310b..69317c2b6efc8c97e1439cbbfdee5a4011887fde 100644 --- a/paths/SubsZonalTrafId_Del.yaml +++ b/paths/SubsZonalTrafId_Del.yaml @@ -3,11 +3,7 @@ description: produces: - application/json parameters: -- name: subscriptionId - in: path - description: Subscription ID - required: true - type: string +- $ref: '#/parameters/Path.SubscriptionId' responses: 204: diff --git a/paths/SubsZonalTrafId_Get.yaml b/paths/SubsZonalTrafId_Get.yaml index 7db22b104e2bbc545d02188c2c3765f874427f85..904eef93cc92f934c9aa7fb5902f0b6cc4a1bc64 100644 --- a/paths/SubsZonalTrafId_Get.yaml +++ b/paths/SubsZonalTrafId_Get.yaml @@ -3,11 +3,7 @@ description: produces: - application/json parameters: -- name: subscriptionId - in: path - description: Subscription ID - required: true - type: string +- $ref: '#/parameters/Path.SubscriptionId' responses: 200: diff --git a/paths/SubsZonalTrafId_Put.yaml b/paths/SubsZonalTrafId_Put.yaml index 10a84a30b78df0480341a58fcb99edccaad4766e..41cc486732944ed7f790daa7be3644fe1a900cf6 100644 --- a/paths/SubsZonalTrafId_Put.yaml +++ b/paths/SubsZonalTrafId_Put.yaml @@ -3,17 +3,8 @@ description: produces: - application/json parameters: -- name: subscriptionId - in: path - description: Subscription ID - required: true - type: string -- name: zonalTrafficSubscription - in: body - description: Zonal Traffic Subscription - required: true - schema: - $ref: '#/definitions/ZonalTrafficSubscription' +- $ref: '#/parameters/Path.SubscriptionId' +- $ref: '#/parameters/Body.ZonalTrafficSubscription' responses: 200: diff --git a/paths/SubsZonalTraf_Post.yaml b/paths/SubsZonalTraf_Post.yaml index 37332cae9a54be02d763cecb5dcc2be57a06135c..ad5f2bc43ac05c6e283551fbea78c25e77394c4f 100644 --- a/paths/SubsZonalTraf_Post.yaml +++ b/paths/SubsZonalTraf_Post.yaml @@ -3,12 +3,7 @@ description: produces: - application/json parameters: -- name: zonalTrafficSubscription - in: body - description: Zonal Traffic Subscription - required: true - schema: - $ref: '#/definitions/ZonalTrafficSubscription' +- $ref: '#/parameters/Body.ZonalTrafficSubscription' responses: 201: diff --git a/paths/SubsZoneStatId.yaml b/paths/SubsZoneStatId.yaml index 4f330a336f6d55427339130a978beceb0023c665..7507a83d9a43ce71b3382e59546e57149e27818f 100644 --- a/paths/SubsZoneStatId.yaml +++ b/paths/SubsZoneStatId.yaml @@ -2,4 +2,7 @@ get: $ref: ./SubsZoneStatId_Get.yaml put: - $ref: ./SubsZoneStatId_Put.yaml \ No newline at end of file + $ref: ./SubsZoneStatId_Put.yaml + +delete: + $ref: ./SubsZoneStatId_Del.yaml \ No newline at end of file diff --git a/paths/SubsZoneStatId_Del.yaml b/paths/SubsZoneStatId_Del.yaml index 08e1dc25cd1f2193ae6b5ab4344613a81ac4310b..69317c2b6efc8c97e1439cbbfdee5a4011887fde 100644 --- a/paths/SubsZoneStatId_Del.yaml +++ b/paths/SubsZoneStatId_Del.yaml @@ -3,11 +3,7 @@ description: produces: - application/json parameters: -- name: subscriptionId - in: path - description: Subscription ID - required: true - type: string +- $ref: '#/parameters/Path.SubscriptionId' responses: 204: diff --git a/paths/SubsZoneStatId_Get.yaml b/paths/SubsZoneStatId_Get.yaml index 30b2cbdda14b8c4bcd0ae6070b59675af55f43d1..bf09fe0b9cb43dd92da1c32cabc25e18795c456d 100644 --- a/paths/SubsZoneStatId_Get.yaml +++ b/paths/SubsZoneStatId_Get.yaml @@ -3,11 +3,7 @@ description: produces: - application/json parameters: -- name: subscriptionId - in: path - description: Subscription ID - required: true - type: string +- $ref: '#/parameters/Path.SubscriptionId' responses: 200: diff --git a/paths/SubsZoneStatId_Put.yaml b/paths/SubsZoneStatId_Put.yaml index a4358d975081c7ab9a2954a91aef9bebc74df291..11883247ec702bd32788c25581aae0145de7d967 100644 --- a/paths/SubsZoneStatId_Put.yaml +++ b/paths/SubsZoneStatId_Put.yaml @@ -3,17 +3,8 @@ description: produces: - application/json parameters: -- name: subscriptionId - in: path - description: Subscription ID - required: true - type: string -- name: zoneStatusSubscription - in: body - description: Zone Status Subscription - required: true - schema: - $ref: '#/definitions/ZoneStatusSubscription' +- $ref: '#/parameters/Path.SubscriptionId' +- $ref: '#/parameters/Body.ZoneStatusSubscription' responses: 200: diff --git a/paths/SubsZoneStat_Post.yaml b/paths/SubsZoneStat_Post.yaml index 527f156451d3f25ddef5b2b1ca0ccbac20764b13..eccb63450fdf687bdbaae10ac1a4f7185220ccd1 100644 --- a/paths/SubsZoneStat_Post.yaml +++ b/paths/SubsZoneStat_Post.yaml @@ -3,13 +3,7 @@ description: produces: - application/json parameters: -- name: zoneStatusSubscription - in: body - description: Zone Status Subscription - required: true - schema: - $ref: '#/definitions/ZoneStatusSubscription' - +- $ref: '#/parameters/Body.ZoneStatusSubscription' responses: 201: diff --git a/paths/UsersId_Get.yaml b/paths/UsersId_Get.yaml index 0dc6e990f643939d2038fce55764371bda9d9ffb..f661b4a9f536476e2a80a241175b36964eb4b983 100644 --- a/paths/UsersId_Get.yaml +++ b/paths/UsersId_Get.yaml @@ -3,11 +3,7 @@ description: produces: - application/json parameters: -- name: userId - in: path - description: User ID - required: true - type: string +- $ref: '#/parameters/Path.UserId' responses: 200: diff --git a/paths/Users_Get.yaml b/paths/Users_Get.yaml index bce8763600f13b496f217b334ede0b15973d7baa..2d57527ab426c966d14cdd7ae49994dab585b716 100644 --- a/paths/Users_Get.yaml +++ b/paths/Users_Get.yaml @@ -3,8 +3,8 @@ description: produces: - application/json parameters: -- $ref: '#/parameters/ZoneId' -- $ref: '#/parameters/AccessPointId' +- $ref: '#/parameters/Query.ZoneId' +- $ref: '#/parameters/Query.AccessPointId' responses: 200: diff --git a/paths/ZonesIdApsId_Get.yaml b/paths/ZonesIdApsId_Get.yaml index 9ed91cd8b24b8dbe3b86333e80cea85b68008fbd..e592eb8f765b3f353d7f5ad1308a10f32c0eb2d7 100644 --- a/paths/ZonesIdApsId_Get.yaml +++ b/paths/ZonesIdApsId_Get.yaml @@ -3,16 +3,8 @@ description: produces: - application/json parameters: -- name: zoneId - in: path - description: Zone ID - required: true - type: string -- name: accessPointId - in: path - description: Access Point ID - required: true - type: string +- $ref: '#/parameters/Path.ZoneId' +- $ref: '#/parameters/Path.AccessPointId' responses: 200: diff --git a/paths/ZonesIdAps_Get.yaml b/paths/ZonesIdAps_Get.yaml index 7edf33ca1ab1636a8c37056a9e910084e7223bc7..a00ac7f4001525499cb199330a9bbf8e8b1feba5 100644 --- a/paths/ZonesIdAps_Get.yaml +++ b/paths/ZonesIdAps_Get.yaml @@ -3,12 +3,8 @@ description: produces: - application/json parameters: -- name: zoneId - in: path - description: Zone ID - required: true - type: string -- $ref: '#/parameters/InterestRealm' +- $ref: '#/parameters/Path.ZoneId' +- $ref: '#/parameters/Query.InterestRealm' responses: 200: diff --git a/paths/ZonesId_Get.yaml b/paths/ZonesId_Get.yaml index 24d9b3b63841bbc7a7aab88e726f55d7c11d7307..ba5f74bd7406c94606dfe1204a42101b116aa040 100644 --- a/paths/ZonesId_Get.yaml +++ b/paths/ZonesId_Get.yaml @@ -3,11 +3,7 @@ description: produces: - application/json parameters: -- name: zoneId - in: path - description: Zone ID - required: true - type: string +- $ref: '#/parameters/Path.ZoneId' responses: 200: diff --git a/paths/Zones_Get.yaml b/paths/Zones_Get.yaml index 7682663072c7b8e096e8f52eaebb107102918630..bc7abc42a855741250ca6e80413ef0b6f67f64a6 100644 --- a/paths/Zones_Get.yaml +++ b/paths/Zones_Get.yaml @@ -12,53 +12,4 @@ responses: examples: application/json: - $ref: '../examples/ZoneList.json' - -# works, but what does it add?! -# application/json: -# $ref: '../examples/index.yaml#/ZonesGetResponse' - -# works -# application/json: -# $ref: '../examples/ZonesGetResponse.json' - -# works -# application/json: -# { -# "zoneList": { -# "zone": -# [ -# { -# "zoneId": "zone01", -# "numberOfAccessPoints": "3", -# "numberOfUnserviceableAccessPoints": "1", -# "numberOfUsers": "10", -# "resourceURL": "http://example.com/exampleAPI/location/v1/zones/zone01" -# }, -# { -# "zoneId": "zone02", -# "numberOfAccessPoints": "12", -# "numberOfUnserviceableAccessPoints": "0", -# "numberOfUsers": "36", -# "resourceURL": "http://example.com/exampleAPI/location/v1/zones/zone02" -# } -# ], -# "resourceURL": "http://example.com/exampleAPI/location/v1/zones" -# } -# } - -# works -# application/json: -# zoneList: -# zone: -# - zoneId: zone01 -# numberOfAccessPoints: '3' -# numberOfUnserviceableAccessPoints: '1' -# numberOfUsers: '10' -# resourceURL: http://example.com/exampleAPI/location/v1/zones/zone01 -# - zoneId: zone02 -# numberOfAccessPoints: '12' -# numberOfUnserviceableAccessPoints: '0' -# numberOfUsers: '36' -# resourceURL: http://example.com/exampleAPI/location/v1/zones/zone02 -# resourceURL: http://example.com/exampleAPI/location/v1/zones \ No newline at end of file + $ref: '../examples/ZoneList.json' \ No newline at end of file