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=========================================================
33 # DMI Server Exception Schema
35 title: DMI Error Message
40 example: "Bad Gateway Error Message NCMP"
51 RestDmiPluginRegistration:
56 example: my-dmi-plugin
60 example: my-dmi-data-plugin
64 example: my-dmi-model-plugin
69 $ref: '#/components/schemas/RestInputCmHandle'
73 $ref: '#/components/schemas/RestInputCmHandle'
75 cmHandle: my-cm-handle
77 add-my-property: add-property
78 update-my-property: updated-property
79 delete-my-property: '~'
80 publicCmHandleProperties:
81 add-my-property: add-property
82 update-my-property: updated-property
83 delete-my-property: '~'
88 example: [my-cm-handle1, my-cm-handle2, my-cm-handle3]
99 $ref: '#/components/schemas/RestCmHandleProperties'
100 publicCmHandleProperties:
101 $ref: '#/components/schemas/RestCmHandleProperties'
102 RestCmHandleProperties:
104 additionalProperties:
112 $ref: '#/components/schemas/ConditionsData'
117 $ref: '#/components/schemas/ConditionProperties'
122 example: hasAllModules
124 $ref: '#/components/schemas/ModuleNamesAsJsonArray'
125 ModuleNamesAsJsonArray:
129 $ref: '#/components/schemas/ModuleNameAsJsonObject'
130 example: [my-module-1, my-module-2, my-module-3]
131 ModuleNameAsJsonObject:
142 $ref: '#/components/schemas/CmHandleProperties'
147 $ref: '#/components/schemas/CmHandleProperty'
152 example: my-cm-handle-id
156 title: Module reference details
160 example: my-module-name
163 example: my-module-revision
167 title: CM handle Details
171 example: my-cm-handle1
172 publicCmHandleProperties:
173 $ref: '#/components/schemas/CmHandlePublicProperties'
174 CmHandlePublicProperties:
178 additionalProperties:
184 summary: Sample request
185 description: Sample request body
188 bookstore-name: Chapters
202 dataSamplePatchRequest:
203 summary: Sample patch request
204 description: Sample patch request body
206 ietf-restconf:yang-patch:
214 bookstore-name: Chapters
232 bookstore-name: Novels
247 summary: Sample response
248 description: Sample response for selecting 'sample 1'.
268 description: The identifier for a network function, network element, subnetwork or any other cm object by managed Network CM Proxy
272 example: my-cm-handle
281 requiredXpathInQuery:
288 includeDescendantsOptionInQuery:
289 name: include-descendants
291 description: include-descendants
299 description: cps-path
304 resourceIdentifierInQuery:
305 name: resourceIdentifier
307 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.
315 resourceIdentifier: \shops\bookstore
318 resourceIdentifier: \shops\bookstore\categories[@code=1]
321 resourceIdentifier: parent=shops,child=bookstore
326 description: Accept parameter for response, if accept parameter is null, that means client can accept any format.
329 enum: [ application/json, application/yang-data+json ]
333 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.
344 options: (fields=book)
347 options: (depth=2,fields=book/authors)
351 description: topic parameter in query.
360 contentParamInHeader:
364 description: Content parameter for request, if content parameter is null, default value is application/json.
367 default: application/json
368 example: application/yang-data+json
372 description: The specified resource was not found
376 $ref: '#/components/schemas/ErrorMessage'
379 message: Not found error message
380 details: Not found error details
382 description: Unauthorized
386 $ref: '#/components/schemas/ErrorMessage'
389 message: Unauthorized error message
390 details: Unauthorized error details
392 description: Forbidden
396 $ref: '#/components/schemas/ErrorMessage'
399 message: Forbidden error message
400 details: Forbidden error details
402 description: Bad Request
406 $ref: '#/components/schemas/ErrorMessage'
408 status: 400 BAD_REQUEST
409 message: Bad request error message
410 details: Bad request error details
412 description: Conflict
416 $ref: '#/components/schemas/ErrorMessage'
419 message: Conflict error message
420 details: Conflict error details
422 description: The given path has not been implemented
426 $ref: '#/components/schemas/ErrorMessage'
429 message: Not implemented error message
430 details: Not implemented error details
441 description: No Content
444 description: Internal Server Error
448 $ref: "#/components/schemas/ErrorMessage"
451 message: Internal Server Error
452 details: Internal Server Error occurred
454 description: Bad Gateway
458 $ref: "#/components/schemas/DmiErrorMessage"
460 message: "Bad Gateway Error Message NCMP"