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
43 example: my-dmi-data-plugin
46 example: my-dmi-model-plugin
50 $ref: '#/components/schemas/RestCmHandle'
54 cmHandle: my-cm-handle
56 add-my-property: add-property
57 update-my-property: updated-property
58 delete-my-property: '~'
59 publicCmHandleProperties:
60 add-my-property: add-property
61 update-my-property: updated-property
62 delete-my-property: '~'
64 $ref: '#/components/schemas/RestCmHandle'
69 example: [my-cm-handle1, my-cm-handle2, my-cm-handle3]
80 $ref: '#/components/schemas/RestCmHandleProperties'
81 publicCmHandleProperties:
82 $ref: '#/components/schemas/RestCmHandleProperties'
83 RestCmHandleProperties:
93 $ref: '#/components/schemas/ConditionsData'
98 $ref: '#/components/schemas/ConditionProperties'
103 example: hasAllModules
105 $ref: '#/components/schemas/ModuleNamesAsJsonArray'
106 ModuleNamesAsJsonArray:
110 $ref: '#/components/schemas/ModuleNameAsJsonObject'
111 example: [my-module-1, my-module-2, my-module-3]
112 ModuleNameAsJsonObject:
123 $ref: '#/components/schemas/CmHandleProperties'
128 $ref: '#/components/schemas/CmHandleProperty'
133 example: my-cm-handle-id
137 title: Module reference details
141 example: my-module-name
144 example: my-module-revision
148 summary: Sample request
149 description: Sample request body
152 bookstore-name: Chapters
166 dataSamplePatchRequest:
167 summary: Sample patch request
168 description: Sample patch request body
170 ietf-restconf:yang-patch:
178 bookstore-name: Chapters
196 bookstore-name: Novels
211 summary: Sample response
212 description: Sample response for selecting 'sample 1'.
232 description: The identifier for a network function, network element, subnetwork or any other cm object by managed Network CM Proxy
236 example: my-cm-handle
245 requiredXpathInQuery:
252 includeDescendantsOptionInQuery:
253 name: include-descendants
255 description: include-descendants
263 description: cps-path
268 resourceIdentifierInQuery:
269 name: resourceIdentifier
271 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.
279 resourceIdentifier: \shops\bookstore
282 resourceIdentifier: \shops\bookstore\categories[@code=1]
285 resourceIdentifier: parent=shops,child=bookstore
290 description: Accept parameter for response, if accept parameter is null, that means client can accept any format.
293 enum: [ application/json, application/yang-data+json ]
297 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.
308 options: (fields=book)
311 options: (depth=2,fields=book/authors)
312 contentParamInHeader:
316 description: Content parameter for request, if content parameter is null, default value is application/json.
319 default: application/json
320 example: application/yang-data+json
324 description: The specified resource was not found
328 $ref: '#/components/schemas/ErrorMessage'
331 message: Not found error message
332 details: Not found error details
334 description: Unauthorized
338 $ref: '#/components/schemas/ErrorMessage'
341 message: Unauthorized error message
342 details: Unauthorized error details
344 description: Forbidden
348 $ref: '#/components/schemas/ErrorMessage'
351 message: Forbidden error message
352 details: Forbidden error details
354 description: Bad Request
358 $ref: '#/components/schemas/ErrorMessage'
360 status: 400 BAD_REQUEST
361 message: Bad request error message
362 details: Bad request error details
364 description: Conflict
368 $ref: '#/components/schemas/ErrorMessage'
371 message: Conflict error message
372 details: Conflict error details
374 description: The given path has not been implemented
378 $ref: '#/components/schemas/ErrorMessage'
381 message: Not implemented error message
382 details: Not implemented error details
393 description: No Content
396 description: Internal Server Error
400 $ref: "#/components/schemas/ErrorMessage"
403 message: Internal Server Error
404 details: Internal Server Error occurred