2 #==================================================================================
3 # Copyright (c) 2019 AT&T Intellectual Property.
4 # Copyright (c) 2019 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.
18 # This source code is part of the near-RT RIC (RAN Intelligent Controller)
19 # platform project (RICP).
21 #==================================================================================
25 # Abstract: Routing Manager's RESTful API definition
26 # Date: 28 August 2019
30 title: Routing Manager
31 description: "This is the Swagger/OpenAPI 2.0 definition of Routing Manager's Northbound API."
35 url: "http://www.apache.org/licenses/LICENSE-2.0.html"
40 description: "Available handles"
42 # description: "Find out more"
43 # url: "http://127.0.0.1"
45 description: "Health of the system"
54 summary: "Retrive the health of Routing Manager"
55 description: "By performing a GET method on the health resource, the API caller is able to retrieve the health of Routing Manager"
56 operationId: "get_health"
59 # - "application/yaml"
62 # - "application/yaml"
65 description: "The health of the system"
67 "$ref": "#/definitions/health-status"
72 summary: "Placeholder for further usage"
73 description: "Placeholder for further usage."
74 operationId: "get_handles"
77 # - "application/yaml"
80 # - "application/yaml"
83 description: "Dummy response"
88 summary: "Provide callback"
89 description: "By performing a POST method on the xapp-handle resource, the API caller is able to perform a callback on Routing Manager."
90 operationId: "provide_xapp_handle"
93 # - "application/yaml"
96 # - "application/yaml"
99 name: "xapp-callback-data"
100 description: "xApp related callback data"
103 $ref: "#/definitions/xapp-callback-data"
106 description: "Invalid data"
108 description: "Callback received"
109 /handles/xapp-subscription-handle:
113 summary: "API for updating about new xapp subscription"
114 description: "By performing a POST method on the xapp-subscription-handle resource, the API caller is able to update the Routing manager about the creation of new subscription by an Xapp instance."
115 operationId: "provide_xapp_subscription_handle"
118 # - "application/yaml"
121 # - "application/yaml"
124 name: "xapp-subscription-data"
125 description: "xApp related subscription data"
128 $ref: "#/definitions/xapp-subscription-data"
131 description: "Invalid data"
133 description: "Xapp Subscription data received"
137 summary: "API for deleting an xapp subscription"
138 description: "By performing the delete operation on xapp-subscription-handle resource, the API caller will be able to update routing manager about the deletion of an xapp's subscription"
139 operationId: "delete_xapp_subscription_handle"
144 name: "xapp-subscription-data"
145 description: "xApp related subscription data"
148 $ref: "#/definitions/xapp-subscription-data"
151 description: "Content not found"
153 description: "Xapp Subscription deleted"
154 /handles/xapp-subscription-handle/{subscription_id}:
158 summary: "API for updating the subscriber xApp list"
159 description: "By performing a PUT method on a xapp-subscription-handle/{subscription_id} resource, the API caller is able to update the Routing manager about the list of subscriber xApps related to the subscription denoted by the {subsription_id}."
160 operationId: "update_xapp_subscription_handle"
163 # - "application/yaml"
166 # - "application/yaml"
169 name: subscription_id
173 description: "Subscription ID"
176 description: "xApp list"
179 $ref: "#/definitions/xapp-list"
182 description: "Invalid data"
184 description: "Xapp list received"
206 type: "string" #This should be a JSON object, array of xapps
207 xapp-subscription-data:
215 type: "string" #This is the xapp instance hostname or ip address
216 port: #xapp instance port address
221 subscription_id: #subscription sequence number
227 $ref: '#/definitions/xapp-element'
235 type: "string" #This is the xapp instance hostname or ip address
236 port: #xapp instance port address
243 description: "Routing Manager"
244 url: "http://placeholder"