Newer
Older
{
"swagger": "2.0",
"info": {
"title": "Location API",
"version": "1.1.1",
Walter Featherstone
committed
"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",
"name": "BSD-3-Clause",
"url": "https://forge.etsi.org/legal-matters"
}
},
"externalDocs": {
Walter Featherstone
committed
"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"
},
"host": "127.0.0.1:8081",
Walter Featherstone
committed
"basePath": "/exampleAPI/location/v1",
"schemes": [
"http",
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
Walter Featherstone
committed
"tags": [
{
"name": "zones"
},
{
"name": "users"
},
{
"name": "subscriptions"
}
],
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
87
88
89
90
91
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
117
118
119
"parameters": {
"Body.UserTrackingSubscription": {
"name": "userTrackingSubscription",
"in": "body",
"description": "User Tracking Subscription",
"required": true,
"schema": {
"$ref": "#/definitions/UserTrackingSubscription"
}
},
"Body.ZonalTrafficSubscription": {
"name": "zonalTrafficSubscription",
"in": "body",
"description": "Zonal Traffic Subscription",
"required": true,
"schema": {
"$ref": "#/definitions/ZonalTrafficSubscription"
}
},
"Body.ZoneStatusSubscription": {
"name": "zoneStatusSubscription",
"in": "body",
"description": "Zone Status Subscription",
"required": true,
"schema": {
"$ref": "#/definitions/ZoneStatusSubscription"
}
},
"Path.AccessPointId": {
"name": "accessPointId",
"in": "path",
"description": "Access Point ID",
"required": true,
"type": "string"
},
"Path.SubscriptionId": {
"name": "subscriptionId",
"in": "path",
"description": "Subscription ID",
"required": true,
"type": "string"
},
"Path.UserId": {
"name": "userId",
"in": "path",
"description": "User ID",
"required": true,
"type": "string"
},
"Path.ZoneId": {
"name": "zoneId",
"in": "path",
"description": "Zone ID",
"required": true,
"type": "string"
},
"Query.AccessPointId": {
"name": "accessPointId",
"in": "query",
"description": "Identifier of access point, reference \"definitions\" for string format",
"required": false,
"type": "string"
},
"Query.InterestRealm": {
"name": "interestRealm",
"in": "query",
"description": "Interest realm of access point (e.g. geographical area, a type of industry etc.).",
"required": false,
"type": "string"
},
"Query.ZoneId": {
"name": "zoneId",
"in": "query",
"description": "Zone ID",
"required": true,
"type": "string"
}
},
"paths": {
"/zones": {
"get": {
Walter Featherstone
committed
"tags": [
"zones"
],
"operationId": "zonesGet",
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
153
154
155
156
157
158
159
160
161
162
163
164
165
"description": "Used to get a list of identifiers for zones authorized for use by the application.",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Successful response to a query regarding the status of a zone",
"schema": {
"properties": {
"zoneList": {
"$ref": "#/definitions/ZoneList"
}
}
},
"examples": {
"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"
}
}
}
}
}
}
},
"/zones/{zoneId}": {
Walter Featherstone
committed
"parameters": [
{
"$ref": "#/parameters/Path.ZoneId"
}
],
Walter Featherstone
committed
"tags": [
"zones"
],
"operationId": "zonesGetById",
"description": "Used to get the status of a zone.",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Successful response to a query regarding the status of a zone",
"schema": {
"properties": {
"zoneInfo": {
"$ref": "#/definitions/ZoneInfo"
}
}
},
"examples": {
"application/json": {
"zoneInfo": {
"zoneId": "zone01",
"numberOfAccessPoints": "3",
"numberOfUnserviceableAccessPoints": "1",
"numberOfUsers": "10",
"resourceURL": "http://example.com/exampleAPI/location/v1/zones/zone01"
}
}
}
Loading full blame...