1 # ==================================================================================
2 # Copyright (c) 2020 AT&T Intellectual Property.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # ==================================================================================
18 title: RIC xApp onboarder API
19 description: APIs to manage the xApp helm charts
25 description: onboard xApps
27 description: health check
29 description: Managing helm charts
35 summary: Returns the list of xApp helm charts that have been onboarded
36 operationId: get_charts_list
39 description: Get helm chart list OK
42 description: Get helm chart list failed
46 $ref: '#/components/schemas/error_message'
48 /charts/xapp/{xapp_chart_name}:
52 summary: Returns the helm chart for the specified xApp
53 operationId: get_version_list
55 - name: xapp_chart_name
62 description: Get helm chart OK
65 description: Get helm chart failed
69 $ref: '#/components/schemas/error_message'
71 /charts/xapp/{xapp_chart_name}/ver/{version}:
75 summary: Returns the helm chart for the specified xApp and version
76 operationId: get_charts_fetcher
78 - name: xapp_chart_name
90 description: Get helm chart package OK
93 description: Get helm chart package failed
97 $ref: '#/components/schemas/error_message'
99 /charts/xapp/{xapp_chart_name}/ver/{version}/values.yaml:
103 summary: Returns the helm values
104 description: yaml file of the specified xApp and version.
105 operationId: get_values_yaml_fetcher
107 - name: xapp_chart_name
119 description: Get helm chart values.yaml OK
122 description: Get helm chart values.yaml failed
126 $ref: '#/components/schemas/error_message'
132 summary: Returns the health condition of the xApp onboarder
133 operationId: get_health_check
136 description: Health check OK
140 $ref: '#/components/schemas/status'
142 description: xApp onboarder is not ready
146 $ref: '#/components/schemas/error_message'
152 summary: Onboard xApp using the xApp descriptor and schema in the request body
153 operationId: post_onboardx_apps
158 $ref: '#/components/schemas/descriptor'
162 description: xApp onboard successfully.
166 $ref: '#/components/schemas/status'
168 description: xApp descriptor format error
172 $ref: '#/components/schemas/error_message'
174 description: xApp onboarder is not ready
178 $ref: '#/components/schemas/error_message'
179 x-codegen-request-body-name: payload
185 summary: Onboard xApp after downloading the xApp descriptor and schema from
187 operationId: post_onboardx_apps_download
192 $ref: '#/components/schemas/descriptor_remote'
196 description: xApp onboard successfully.
200 $ref: '#/components/schemas/status'
202 description: xApp descriptor format error
206 $ref: '#/components/schemas/error_message'
208 description: xApp onboarder is not ready
212 $ref: '#/components/schemas/error_message'
213 x-codegen-request-body-name: payload
223 $ref: '#/components/schemas/config'
224 controls-schema.json:
227 description: Controls schema file body
236 description: Name of the xApp chart
238 pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
240 description: Version of the xApp chart
250 description: source of the error
253 description: source of the error
256 description: http response message
264 description: status of the service
267 - config-file.json_url
270 config-file.json_url:
272 description: URL to download the config-file.json file
273 controls-schema.json_url:
275 description: URL to download the controls schema.json file
278 description: When any error occurs on mask
281 description: When a mask can't be parsed