1 # ========================LICENSE_START=================================
4 # Copyright (C) 2019 AT&T Intellectual Property and Nokia
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ========================LICENSE_END===================================
19 # This source code is part of the near-RT RIC (RAN Intelligent Controller)
20 # platform project (RICP).
25 description: "This is the Swagger/OpenAPI 2.0 definition of Routing Manager's Northbound\
28 title: "Routing Manager"
31 url: "http://www.apache.org/licenses/LICENSE-2.0.html"
36 description: "Available handles"
38 description: "Health of the system"
46 summary: "Retrive the health of Routing Manager"
47 description: "By performing a GET method on the health resource, the API caller\
48 \ is able to retrieve the health of Routing Manager"
49 operationId: "get_health"
57 description: "The health of the system"
59 $ref: "#/definitions/health-status"
64 summary: "Placeholder for further usage"
65 description: "Placeholder for further usage."
66 operationId: "get_handles"
74 description: "Dummy response"
79 summary: "Provide callback"
80 description: "By performing a POST method on the xapp-handle resource, the API\
81 \ caller is able to perform a callback on Routing Manager."
82 operationId: "provide_xapp_handle"
89 name: "xapp-callback-data"
90 description: "xApp related callback data"
93 $ref: "#/definitions/xapp-callback-data"
94 x-exportParamName: "XappCallbackData"
97 description: "Callback received"
99 description: "Invalid data"
100 /handles/xapp-subscription-handle:
104 summary: "API for updating about new xapp subscription"
105 description: "By performing a POST method on the xapp-subscription-handle resource,\
106 \ the API caller is able to update the Routing manager about the creation\
107 \ of new subscription by an Xapp instance."
108 operationId: "provide_xapp_subscription_handle"
115 name: "xapp-subscription-data"
116 description: "xApp related subscription data"
119 $ref: "#/definitions/xapp-subscription-data"
120 x-exportParamName: "XappSubscriptionData"
123 description: "Xapp Subscription data received"
125 description: "Invalid data"
129 summary: "API for deleting an xapp subscription"
130 description: "By performing the delete operation on xapp-subscription-handle\
131 \ resource, the API caller will be able to update routing manager about the\
132 \ deletion of an xapp's subscription"
133 operationId: "delete_xapp_subscription_handle"
138 name: "xapp-subscription-data"
139 description: "xApp related subscription data"
142 $ref: "#/definitions/xapp-subscription-data"
143 x-exportParamName: "XappSubscriptionData"
146 description: "Xapp Subscription deleted"
148 description: "Content not found"
149 /handles/xapp-subscription-handle/{subscription_id}:
153 summary: "API for updating the subscriber xApp list"
154 description: "By performing a PUT method on a xapp-subscription-handle/{subscription_id}\
155 \ resource, the API caller is able to update the Routing manager about the\
156 \ list of subscriber xApps related to the subscription denoted by the {subsription_id}."
157 operationId: "update_xapp_subscription_handle"
163 - name: "subscription_id"
165 description: "Subscription ID"
169 x-exportParamName: "SubscriptionId"
172 description: "xApp list"
175 $ref: "#/definitions/xapp-list"
176 x-exportParamName: "XappList"
179 description: "Xapp list received"
181 description: "Invalid data"
186 summary: "API for establishing platform routes when a new e2t instance gets\
188 description: "E2T updates its FQDN to E2M during its initialisation, hence\
189 \ after E2M informs routing manager about new E2T instances FQDN. At this\
190 \ point Routing Mgr would establish platform routes"
191 operationId: "create_new_e2t_handle"
199 description: "FQDN of the newly joined E2T instance"
202 $ref: "#/definitions/e2t-data"
203 x-exportParamName: "E2tData"
206 description: "new e2t instance is considered and platform routes are established"
208 description: "Invalid data"
212 summary: "API for clearing routes specific to a particular e2T instance"
213 description: "E2M would monitor E2T instances using its keep alive based mechanism\
214 \ during this time if an E2T instance is detected to be dead, E2M would distribute\
215 \ already associated ran's to other available/healthy E2T instances. Here\
216 \ E2M would share E2T instance address to be removed OR which is unhealthy\
217 \ and list of RAN instances to be dissociated and an association list which\
218 \ contains E2T FQDN and associated RAN names"
219 operationId: "delete_e2t_handle"
227 description: "FQDN of the newly joined E2T instance"
230 $ref: "#/definitions/e2t-delete-data"
231 x-exportParamName: "E2tData"
234 description: "new e2t instance is considered and platform routes are established"
236 description: "Invalid data"
237 /handles/associate-ran-to-e2t:
241 summary: "API for associating a ran to e2t instance"
242 description: "By performing a POST method on rane2tmapping, the API caller is\
243 \ able to update the Routing manager about the ran to e2t mapping which would\
244 \ be finally used to distribute routes to corresponding xApp and E2T instance"
245 operationId: "associate_ran_to_e2t_handle"
253 description: "ran to e2t mapping"
256 $ref: "#/definitions/ran-e2t-map"
257 x-exportParamName: "RanE2tList"
260 description: "e2t ran mapping recieved, platform routes"
262 description: "Invalid data"
263 /handles/dissociate-ran:
267 summary: "API to dissociate ran from e2t"
268 description: "By performing a POST method on rane2tmapping, routing manager\
269 \ will dissociate ran name from e2t instance by updating or clearing routes"
270 operationId: "dissociate_ran"
277 name: "dissociate-list"
278 description: "list of RAN to dissociate"
281 $ref: "#/definitions/ran-e2t-map"
282 x-exportParamName: "DissociateList"
285 description: "ran instances disociated"
287 description: "Invalid data"
311 xapp-subscription-data:
331 $ref: "#/definitions/xapp-element"
348 $ref: "#/definitions/ran-e2t-element"
357 $ref: "#/definitions/ranNamelist"
370 $ref: "#/definitions/ranNamelist"
378 ranNamelistTobeDissociated:
379 $ref: "#/definitions/ranNamelist"
381 $ref: "#/definitions/ran-e2t-map"
383 description: "Routing Manager"
384 url: "http://placeholder"