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/RestInputCmHandle'
57 $ref: '#/components/schemas/RestInputCmHandle'
59 cmHandle: my-cm-handle
61 add-my-property: add-property
62 update-my-property: updated-property
63 delete-my-property: '~'
64 publicCmHandleProperties:
65 add-my-property: add-property
66 update-my-property: updated-property
67 delete-my-property: '~'
72 example: [my-cm-handle1, my-cm-handle2, my-cm-handle3]
73 DmiPluginRegistrationErrorResponse:
76 failedCreatedCmHandles:
79 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
82 "cmHandle": "my-cm-handle-01",
84 "errorText": "cm-handle already exists"
87 failedUpdatedCmHandles:
90 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
93 "cmHandle": "my-cm-handle-02",
95 "errorText": "cm-handle does not exist"
98 failedRemovedCmHandles:
101 $ref: '#/components/schemas/CmHandlerRegistrationErrorResponse'
104 "cmHandle": "my-cm-handle-02",
106 "errorText": "cm-handle does not exist"
109 CmHandlerRegistrationErrorResponse:
114 example: my-cm-handle
120 example: 'cm-handle already exists'
129 example: my-cm-handle
131 $ref: '#/components/schemas/RestCmHandleProperties'
132 publicCmHandleProperties:
133 $ref: '#/components/schemas/RestCmHandleProperties'
134 RestCmHandleProperties:
136 additionalProperties:
144 $ref: '#/components/schemas/ConditionsData'
149 $ref: '#/components/schemas/ConditionProperties'
154 example: hasAllModules
156 $ref: '#/components/schemas/ModuleNamesAsJsonArray'
157 ModuleNamesAsJsonArray:
161 $ref: '#/components/schemas/ModuleNameAsJsonObject'
162 example: [my-module-1, my-module-2, my-module-3]
163 ModuleNameAsJsonObject:
174 $ref: '#/components/schemas/CmHandleProperties'
179 $ref: '#/components/schemas/CmHandleProperty'
184 example: my-cm-handle-id
188 title: Module reference details
192 example: my-module-name
195 example: my-module-revision
199 title: CM handle Details
203 example: my-cm-handle1
204 publicCmHandleProperties:
205 $ref: '#/components/schemas/CmHandlePublicProperties'
206 CmHandlePublicProperties:
210 additionalProperties:
216 summary: Sample request
217 description: Sample request body
220 bookstore-name: Chapters
234 dataSamplePatchRequest:
235 summary: Sample patch request
236 description: Sample patch request body
238 ietf-restconf:yang-patch:
246 bookstore-name: Chapters
264 bookstore-name: Novels
279 summary: Sample response
280 description: Sample response for selecting 'sample 1'.
300 description: The identifier for a network function, network element, subnetwork or any other cm object by managed Network CM Proxy
304 example: my-cm-handle
313 requiredXpathInQuery:
320 includeDescendantsOptionInQuery:
321 name: include-descendants
323 description: include-descendants
331 description: cps-path
336 resourceIdentifierInQuery:
337 name: resourceIdentifier
339 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.
347 resourceIdentifier: \shops\bookstore
350 resourceIdentifier: \shops\bookstore\categories[@code=1]
353 resourceIdentifier: parent=shops,child=bookstore
358 description: Accept parameter for response, if accept parameter is null, that means client can accept any format.
361 enum: [ application/json, application/yang-data+json ]
365 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.
376 options: (fields=book)
379 options: (depth=2,fields=book/authors)
383 description: topic parameter in query.
392 contentParamInHeader:
396 description: Content parameter for request, if content parameter is null, default value is application/json.
399 default: application/json
400 example: application/yang-data+json
404 description: The specified resource was not found
408 $ref: '#/components/schemas/ErrorMessage'
411 message: Not found error message
412 details: Not found error details
414 description: Unauthorized
418 $ref: '#/components/schemas/ErrorMessage'
421 message: Unauthorized error message
422 details: Unauthorized error details
424 description: Forbidden
428 $ref: '#/components/schemas/ErrorMessage'
431 message: Forbidden error message
432 details: Forbidden error details
434 description: Bad Request
438 $ref: '#/components/schemas/ErrorMessage'
440 status: 400 BAD_REQUEST
441 message: Bad request error message
442 details: Bad request error details
444 description: Conflict
448 $ref: '#/components/schemas/ErrorMessage'
451 message: Conflict error message
452 details: Conflict error details
454 description: The given path has not been implemented
458 $ref: '#/components/schemas/ErrorMessage'
461 message: Not implemented error message
462 details: Not implemented error details
473 description: No Content
476 description: Internal Server Error
480 $ref: "#/components/schemas/ErrorMessage"
483 message: Internal Server Error
484 details: Internal Server Error occurred