1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021-2022 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: my-dmi-plugin
44 example: my-dmi-data-plugin
48 example: my-dmi-model-plugin
53 $ref: '#/components/schemas/RestCmHandle'
57 cmHandle: my-cm-handle
59 add-my-property: add-property
60 update-my-property: updated-property
61 delete-my-property: '~'
62 publicCmHandleProperties:
63 add-my-property: add-property
64 update-my-property: updated-property
65 delete-my-property: '~'
67 $ref: '#/components/schemas/RestCmHandle'
72 example: [my-cm-handle1, my-cm-handle2, my-cm-handle3]
83 $ref: '#/components/schemas/RestCmHandleProperties'
84 publicCmHandleProperties:
85 $ref: '#/components/schemas/RestCmHandleProperties'
86 RestCmHandleProperties:
96 $ref: '#/components/schemas/ConditionsData'
101 $ref: '#/components/schemas/ConditionProperties'
106 example: hasAllModules
108 $ref: '#/components/schemas/ModuleNamesAsJsonArray'
109 ModuleNamesAsJsonArray:
113 $ref: '#/components/schemas/ModuleNameAsJsonObject'
114 example: [my-module-1, my-module-2, my-module-3]
115 ModuleNameAsJsonObject:
126 $ref: '#/components/schemas/CmHandleProperties'
131 $ref: '#/components/schemas/CmHandleProperty'
136 example: my-cm-handle-id
140 title: Module reference details
144 example: my-module-name
147 example: my-module-revision
151 summary: Sample request
152 description: Sample request body
155 bookstore-name: Chapters
169 dataSamplePatchRequest:
170 summary: Sample patch request
171 description: Sample patch request body
173 ietf-restconf:yang-patch:
181 bookstore-name: Chapters
199 bookstore-name: Novels
214 summary: Sample response
215 description: Sample response for selecting 'sample 1'.
235 description: The identifier for a network function, network element, subnetwork or any other cm object by managed Network CM Proxy
239 example: my-cm-handle
248 requiredXpathInQuery:
255 includeDescendantsOptionInQuery:
256 name: include-descendants
258 description: include-descendants
266 description: cps-path
271 resourceIdentifierInQuery:
272 name: resourceIdentifier
274 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.
282 resourceIdentifier: \shops\bookstore
285 resourceIdentifier: \shops\bookstore\categories[@code=1]
288 resourceIdentifier: parent=shops,child=bookstore
293 description: Accept parameter for response, if accept parameter is null, that means client can accept any format.
296 enum: [ application/json, application/yang-data+json ]
300 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'. The format of options parameter depend on the associated DMI Plugin implementation.
311 options: (fields=book)
314 options: (depth=2,fields=book/authors)
315 contentParamInHeader:
319 description: Content parameter for request, if content parameter is null, default value is application/json.
322 default: application/json
323 example: application/yang-data+json
327 description: The specified resource was not found
331 $ref: '#/components/schemas/ErrorMessage'
334 message: Not found error message
335 details: Not found error details
337 description: Unauthorized
341 $ref: '#/components/schemas/ErrorMessage'
344 message: Unauthorized error message
345 details: Unauthorized error details
347 description: Forbidden
351 $ref: '#/components/schemas/ErrorMessage'
354 message: Forbidden error message
355 details: Forbidden error details
357 description: Bad Request
361 $ref: '#/components/schemas/ErrorMessage'
363 status: 400 BAD_REQUEST
364 message: Bad request error message
365 details: Bad request error details
367 description: Conflict
371 $ref: '#/components/schemas/ErrorMessage'
374 message: Conflict error message
375 details: Conflict error details
377 description: The given path has not been implemented
381 $ref: '#/components/schemas/ErrorMessage'
384 message: Not implemented error message
385 details: Not implemented error details
396 description: No Content
399 description: Internal Server Error
403 $ref: "#/components/schemas/ErrorMessage"
406 message: Internal Server Error
407 details: Internal Server Error occurred