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===================================
20 description: This is a draft API for RIC appmgr
25 url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
34 summary: Health check of xApp Manager
37 operationId: getHealth
40 description: Status of xApp Manager is ok
43 summary: Deploy a xapp
46 operationId: deployXapp
54 description: xApp information
62 description: Name of the xApp
66 description: xApp successfully created
68 $ref: '#/definitions/Xapp'
70 description: Invalid input
72 description: Internal error
74 summary: Returns the status of all xapps
77 operationId: getAllXapps
82 description: successful query of xApps
84 $ref: '#/definitions/AllXapps'
86 description: Internal error
89 summary: Returns the status of a given xapp
92 operationId: getXappByName
98 description: Name of xApp
103 description: successful operation
105 $ref: '#/definitions/Xapp'
107 description: Invalid ID supplied
109 description: Xapp not found
111 description: Internal error
113 summary: Undeploy an existing xapp
116 operationId: undeployXapp
120 description: Xapp to be undeployed
125 description: Successful deletion of xApp
127 description: Invalid xApp name supplied
129 description: Internal error
130 '/xapps/{xAppName}/instances/{xAppInstanceName}':
132 summary: Returns the status of a given xapp
135 operationId: getXappInstanceByName
141 description: Name of xApp
144 - name: xAppInstanceName
146 description: Name of xApp instance to get information
151 description: successful operation
153 $ref: '#/definitions/XappInstance'
155 description: Invalid name supplied
157 description: Xapp not found
159 description: Internal error
162 summary: Create xApp config
165 operationId: createXappConfig
173 description: xApp config
175 $ref: '#/definitions/xAppConfig'
178 description: xApp config successfully created
180 $ref: '#/definitions/xAppConfig'
182 description: Invalid input
184 description: Validation of configuration failed
186 description: Internal error
188 summary: Modify xApp config
191 operationId: ModifyXappConfig
199 description: xApp config
201 $ref: '#/definitions/xAppConfig'
204 description: xApp config successfully modified
206 $ref: '#/definitions/xAppConfig'
208 description: Invalid input
210 description: Validation of configuration failed
212 description: Internal error
214 summary: Returns the configuration of all xapps
217 operationId: getAllXappConfig
222 description: successful query of xApp config
224 $ref: '#/definitions/AllXappConfig'
226 description: Internal error
228 summary: Delete xApp configuration
231 operationId: deleteXappConfig
233 - name: xAppConfigInfo
235 description: xApp configuration information
237 $ref: '#/definitions/xAppConfigInfo'
240 description: Successful deletion of xApp
242 description: Invalid parameters supplied
244 description: Internal error
247 summary: Subscribe event
251 operationId: addSubscription
257 - name: subscriptionRequest
259 description: New subscription
262 $ref: '#/definitions/subscriptionRequest'
265 description: Subscription successful
267 $ref: '#/definitions/subscriptionResponse'
269 description: Invalid input
271 summary: Returns all subscriptions
275 operationId: getSubscriptions
280 description: successful query of subscriptions
282 $ref: '#/definitions/allSubscriptions'
283 '/subscriptions/{subscriptionId}':
285 summary: Returns the information of subscription
289 operationId: getSubscriptionById
293 - name: subscriptionId
295 description: ID of subscription
300 description: successful operation
302 $ref: '#/definitions/subscription'
304 description: Invalid ID supplied
306 description: Subscription not found
308 summary: Modify event subscription
312 operationId: modifySubscription
318 - name: subscriptionId
320 description: ID of subscription
324 name: subscriptionRequest
325 description: Modified subscription
328 $ref: '#/definitions/subscriptionRequest'
331 description: Subscription modification successful
333 $ref: '#/definitions/subscriptionResponse'
335 description: Invalid input
337 summary: Unsubscribe event
342 operationId: deleteSubscription
344 - name: subscriptionId
346 description: ID of subscription
351 description: Successful deletion of subscription
353 description: Invalid subscription supplied
358 $ref: '#/definitions/Xapp'
369 description: xapp status in the RIC
383 $ref: '#/definitions/XappInstance'
391 example: xapp-dummy-6cd577d9-4v255
394 description: xapp instance status
413 example: ControlIndication
418 example: LoadIndication
428 description: Name of the xApp
432 description: Name of the config map
433 example: xapp-dummy-config-map
436 description: Name of the namespace
446 $ref: '#/definitions/xAppConfigInfo'
449 description: Schema of configuration in JSON format
452 description: Configuration in JSON format
456 $ref: '#/definitions/xAppConfig'
467 example: 'http://localhost:11111/apps/webhook/'
470 description: Event which is subscribed
477 description: Maximum number of retries
481 description: Time in seconds to wait before next retry
483 subscriptionResponse:
488 example: 1ILBltYYzEGzWRrVPZKmuUmhwcc
494 description: Event which is subscribed
503 $ref: '#/definitions/subscription'
509 example: 1ILBltYYzEGzWRrVPZKmuUmhwcc
512 example: 'http://localhost:11111/apps/webhook/'
515 description: Event which is subscribed
523 description: Maximum number of retries
527 description: Time in seconds to wait before next retry
529 subscriptionNotification:
534 example: 1ILBltYYzEGzWRrVPZKmuUmhwcc
540 description: Event to be notified
546 $ref: '#/definitions/AllXapps'