blob: 3ec7bfd11536d0791f6aa886bb7c8d43672d5cd2 [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001# ============LICENSE_START=======================================================
lukegleeson15b93e72021-07-07 15:25:30 +01002# Copyright (C) 2021 Nordix Foundation
3# Modifications Copyright (C) 2021 Pantheon.tech
tragait34a94b92021-03-30 12:02:27 +01004# ================================================================================
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
8#
9# http://www.apache.org/licenses/LICENSE-2.0
lukegleeson15b93e72021-07-07 15:25:30 +010010#
tragait34a94b92021-03-30 12:02:27 +010011# 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.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
Hanif Kukkalli83e318f2021-02-23 12:26:39 +010020nodeByCmHandleAndXpath:
Ruslan Kashapov9f52f602021-01-22 12:53:01 +020021 get:
Hanif Kukkalli83e318f2021-02-23 12:26:39 +010022 description: Get a node with an option to retrieve all the children for a given cm Handle
DylanB95EST4f4178c2021-07-02 13:30:42 +010023 deprecated: true
Ruslan Kashapov9f52f602021-01-22 12:53:01 +020024 tags:
tragait34a94b92021-03-30 12:02:27 +010025 - network-cm-proxy
Hanif Kukkalli83e318f2021-02-23 12:26:39 +010026 summary: Get a node given a cm Handle and xpath
27 operationId: getNodeByCmHandleAndXpath
28 parameters:
29 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
30 - $ref: 'components.yaml#/components/parameters/xpathInQuery'
31 - $ref: 'components.yaml#/components/parameters/includeDescendantsOptionInQuery'
Ruslan Kashapov9f52f602021-01-22 12:53:01 +020032 responses:
33 200:
34 $ref: 'components.yaml#/components/responses/Ok'
35 400:
36 $ref: 'components.yaml#/components/responses/BadRequest'
37 401:
38 $ref: 'components.yaml#/components/responses/Unauthorized'
39 403:
40 $ref: 'components.yaml#/components/responses/Forbidden'
Hanif Kukkalli83e318f2021-02-23 12:26:39 +010041 404:
42 $ref: 'components.yaml#/components/responses/NotFound'
niamhcoreb5d573b2021-02-26 10:13:48 +000043
44nodesByCmHandleAndCpsPath:
45 get:
46 description: Query nodes for the given cps path and cm Handle
DylanB95EST4f4178c2021-07-02 13:30:42 +010047 deprecated: true
niamhcoreb5d573b2021-02-26 10:13:48 +000048 tags:
tragait34a94b92021-03-30 12:02:27 +010049 - network-cm-proxy
niamhcoreb5d573b2021-02-26 10:13:48 +000050 summary: Query data nodes
51 operationId: queryNodesByCmHandleAndCpsPath
52 parameters:
53 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
54 - $ref: 'components.yaml#/components/parameters/cpsPathInQuery'
niamhcore32446dc2021-03-01 13:25:13 +000055 - $ref: 'components.yaml#/components/parameters/includeDescendantsOptionInQuery'
niamhcoreb5d573b2021-02-26 10:13:48 +000056 responses:
57 200:
58 $ref: 'components.yaml#/components/responses/Ok'
59 400:
60 $ref: 'components.yaml#/components/responses/BadRequest'
61 401:
62 $ref: 'components.yaml#/components/responses/Unauthorized'
63 403:
64 $ref: 'components.yaml#/components/responses/Forbidden'
65 404:
66 $ref: 'components.yaml#/components/responses/NotFound'
67
68nodesByCmHandleAndXpath:
Ruslan Kashapovd07ebc82021-04-20 11:14:30 +030069 post:
70 description: Create a node with descendants for the given CM Handle; top level or under existing node (requires xpath)
DylanB95EST4f4178c2021-07-02 13:30:42 +010071 deprecated: true
Ruslan Kashapovd07ebc82021-04-20 11:14:30 +030072 tags:
73 - network-cm-proxy
74 summary: Create a node with descendants
75 operationId: createNode
76 parameters:
77 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
78 - $ref: 'components.yaml#/components/parameters/xpathInQuery'
79 requestBody:
80 required: true
81 content:
82 application/json:
83 schema:
84 type: string
85 responses:
86 201:
87 $ref: 'components.yaml#/components/responses/Created'
88 400:
89 $ref: 'components.yaml#/components/responses/BadRequest'
90 401:
91 $ref: 'components.yaml#/components/responses/Unauthorized'
92 403:
93 $ref: 'components.yaml#/components/responses/Forbidden'
94 404:
95 $ref: 'components.yaml#/components/responses/NotFound'
96
niamhcoreb5d573b2021-02-26 10:13:48 +000097 patch:
98 description: Update node leaves for the given cps path and cm Handle
DylanB95EST4f4178c2021-07-02 13:30:42 +010099 deprecated: true
niamhcoreb5d573b2021-02-26 10:13:48 +0000100 tags:
tragait34a94b92021-03-30 12:02:27 +0100101 - network-cm-proxy
niamhcoreb5d573b2021-02-26 10:13:48 +0000102 summary: Update node leaves
103 operationId: updateNodeLeaves
104 parameters:
105 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
106 - $ref: 'components.yaml#/components/parameters/xpathInQuery'
107 requestBody:
108 required: true
109 content:
110 application/json:
111 schema:
112 type: string
113 responses:
114 200:
115 $ref: 'components.yaml#/components/responses/Ok'
116 400:
117 $ref: 'components.yaml#/components/responses/BadRequest'
118 401:
119 $ref: 'components.yaml#/components/responses/Unauthorized'
120 403:
121 $ref: 'components.yaml#/components/responses/Forbidden'
122 404:
123 $ref: 'components.yaml#/components/responses/NotFound'
124
125 put:
126 description: Replace a node with descendants for the given cps path and cm Handle
DylanB95EST4f4178c2021-07-02 13:30:42 +0100127 deprecated: true
niamhcoreb5d573b2021-02-26 10:13:48 +0000128 tags:
tragait34a94b92021-03-30 12:02:27 +0100129 - network-cm-proxy
niamhcoreb5d573b2021-02-26 10:13:48 +0000130 summary: Replace a node with descendants
131 operationId: replaceNode
132 parameters:
133 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
134 - $ref: 'components.yaml#/components/parameters/xpathInQuery'
135 requestBody:
136 required: true
137 content:
138 application/json:
139 schema:
140 type: string
141 responses:
142 200:
143 $ref: 'components.yaml#/components/responses/Ok'
144 400:
145 $ref: 'components.yaml#/components/responses/BadRequest'
146 401:
147 $ref: 'components.yaml#/components/responses/Unauthorized'
148 403:
149 $ref: 'components.yaml#/components/responses/Forbidden'
150 404:
Ruslan Kashapov1baf48d2021-05-07 10:46:27 +0300151 $ref: 'components.yaml#/components/responses/NotFound'
152
153listNodeByCmHandleAndXpath:
154 post:
155 description: Add one or more list-node child elements under existing node for the given CM Handle
DylanB95EST4f4178c2021-07-02 13:30:42 +0100156 deprecated: true
Ruslan Kashapov1baf48d2021-05-07 10:46:27 +0300157 tags:
158 - network-cm-proxy
159 summary: Add list-node child element(s)
160 operationId: addListNodeElements
161 parameters:
162 - $ref: 'components.yaml#/components/parameters/cmHandleInPath'
163 - $ref: 'components.yaml#/components/parameters/requiredXpathInQuery'
164 requestBody:
165 required: true
166 content:
167 application/json:
168 schema:
169 type: string
170 responses:
171 201:
172 $ref: 'components.yaml#/components/responses/Created'
173 400:
174 $ref: 'components.yaml#/components/responses/BadRequest'
175 401:
176 $ref: 'components.yaml#/components/responses/Unauthorized'
177 403:
178 $ref: 'components.yaml#/components/responses/Forbidden'
179 404:
lukegleeson15b93e72021-07-07 15:25:30 +0100180 $ref: 'components.yaml#/components/responses/NotFound'
DylanB95EST4f4178c2021-07-02 13:30:42 +0100181
182updateDmiRegistration:
183 post:
184 description: Register a DMI Plugin with any new CM Handles.
185 tags:
186 - network-cm-proxy
187 summary: DMI notifies NCMP of new CM Handles
188 operationId: updateDmiPluginRegistration
189 requestBody:
190 required: true
191 content:
192 application/json:
193 schema:
194 $ref: 'components.yaml#/components/schemas/RestDmiPluginRegistration'
195 responses:
196 201:
197 $ref: 'components.yaml#/components/responses/Created'
198 400:
199 $ref: 'components.yaml#/components/responses/BadRequest'
200 401:
201 $ref: 'components.yaml#/components/responses/Unauthorized'
202 403:
203 $ref: 'components.yaml#/components/responses/Forbidden'