1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 Nordix Foundation
3 # Modifications Copyright (C) 2021 Pantheon.tech
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
35 RestDmiPluginRegistration:
40 example: onap-dmi-plugin
43 example: onap-dmi-data-plugin
46 example: onap-dmi-model-plugin
50 $ref: '#/components/schemas/RestCmHandle'
54 $ref: '#/components/schemas/RestCmHandle'
69 $ref: '#/components/schemas/RestCmHandleAdditionalProperties'
70 RestCmHandleAdditionalProperties:
80 $ref: '#/components/schemas/ConditionsData'
85 $ref: '#/components/schemas/ConditionProperties'
90 example: hasAllModules
92 $ref: '#/components/schemas/ModuleNamesAsJsonArray'
93 ModuleNamesAsJsonArray:
97 $ref: '#/components/schemas/ModuleNameAsJsonObject'
98 ModuleNameAsJsonObject:
102 example: someModuleName
109 $ref: '#/components/schemas/CmHandleProperties'
114 $ref: '#/components/schemas/CmHandleProperty'
119 example: someCmHandleId
125 description: The identifier for a network function, network element, subnetwork or any other cm object by managed Network CM Proxy
137 requiredXpathInQuery:
144 includeDescendantsOptionInQuery:
145 name: include-descendants
147 description: include-descendants
155 description: cps-path
160 resourceIdentifierInQuery:
161 name: resourceIdentifier
163 description: The format of resource identifier depend on the associated DMI Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but it can really be anything.
171 resourceIdentifier: \parent\child
174 resourceIdentifier: \parent\listElement[key=value]
177 resourceIdentifier: \parent\listElement[key=value]\grandChild
180 resourceIdentifier: parent=1,child=abc
185 description: Accept parameter for response, if accept parameter is null, that means client can accept any format.
188 enum: [ application/json, application/yang-data+json ]
192 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'.
200 options: (key1=value1,key2=value2)
203 options: (key1=value1,key2=value1/value2)
206 options: (key1=10,key2=value2,key3=[val31;val32])
207 contentParamInHeader:
211 description: Content parameter for request, if content parameter is null, default value is application/json.
214 default: application/json
219 description: The specified resource was not found
223 $ref: '#/components/schemas/ErrorMessage'
225 description: Unauthorized
229 $ref: '#/components/schemas/ErrorMessage'
231 description: Forbidden
235 $ref: '#/components/schemas/ErrorMessage'
237 description: Bad Request
241 $ref: '#/components/schemas/ErrorMessage'
243 description: Conflict
247 $ref: '#/components/schemas/ErrorMessage'
249 description: The given path has not been implemented
253 $ref: '#/components/schemas/ErrorMessage'
264 description: No Content