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
44 $ref: '#/components/schemas/RestCmHandle'
48 $ref: '#/components/schemas/RestCmHandle'
63 $ref: '#/components/schemas/RestCmHandleAdditionalProperties'
64 RestCmHandleAdditionalProperties:
74 $ref: '#/components/schemas/ConditionsData'
79 $ref: '#/components/schemas/ConditionProperties'
84 example: hasAllModules
86 $ref: '#/components/schemas/ModuleNamesAsJsonArray'
87 ModuleNamesAsJsonArray:
91 $ref: '#/components/schemas/ModuleNameAsJsonObject'
92 ModuleNameAsJsonObject:
96 example: someModuleName
103 $ref: '#/components/schemas/CmHandleProperties'
108 $ref: '#/components/schemas/CmHandleProperty'
113 example: someCmHandleId
119 description: The identifier for a network function, network element, subnetwork or any other cm object by managed Network CM Proxy
131 requiredXpathInQuery:
138 includeDescendantsOptionInQuery:
139 name: include-descendants
141 description: include-descendants
149 description: cps-path
154 resourceIdentifierInQuery:
155 name: resourceIdentifier
157 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.
165 resourceIdentifier: \parent\child
168 resourceIdentifier: \parent\listElement[key=value]
171 resourceIdentifier: \parent\listElement[key=value]\grandChild
174 resourceIdentifier: parent=1,child=abc
179 description: Accept parameter for response, if accept parameter is null, that means client can accept any format.
182 enum: [ application/json, application/yang-data+json ]
186 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'.
194 options: (key1=value1,key2=value2)
197 options: (key1=value1,key2=value1/value2)
200 options: (key1=10,key2=value2,key3=[val31;val32])
201 contentParamInHeader:
205 description: Content parameter for request, if content parameter is null, default value is application/json.
208 default: application/json
213 description: The specified resource was not found
217 $ref: '#/components/schemas/ErrorMessage'
219 description: Unauthorized
223 $ref: '#/components/schemas/ErrorMessage'
225 description: Forbidden
229 $ref: '#/components/schemas/ErrorMessage'
231 description: Bad Request
235 $ref: '#/components/schemas/ErrorMessage'
237 description: Conflict
241 $ref: '#/components/schemas/ErrorMessage'
243 description: The given path has not been implemented
247 $ref: '#/components/schemas/ErrorMessage'
258 description: No Content