blob: 00d715644d45c6f72a3846000d4939bb6df646e6 [file] [log] [blame]
puthuparambil.aditya39450c52022-03-29 11:22:31 +01001# ============LICENSE_START=======================================================
leventecsanyifff80c02023-04-05 11:42:30 +02002# Copyright (C) 2021-2023 Nordix Foundation
puthuparambil.aditya39450c52022-03-29 11:22:31 +01003# Modifications Copyright (C) 2022 Bell Canada
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
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
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.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
DylanB95ESTb5a23832021-06-02 19:45:46 +010020components:
JosephKeenandfe45ff2022-10-26 15:17:59 +010021 securitySchemes:
22 basicAuth:
23 type: http
24 scheme: basic
DylanB95ESTb5a23832021-06-02 19:45:46 +010025 schemas:
26 ErrorMessage:
27 type: object
28 title: Error
29 properties:
30 status:
31 type: string
32 message:
33 type: string
34 details:
35 type: string
36
tragait2270d762021-07-08 15:42:19 +010037 CmHandles:
38 type: object
39 properties:
40 cmHandles:
41 type: array
lukegleeson996152a2021-11-30 17:06:03 +000042 example: ["cmHandleId1","cmHandleId2","cmHandleId3"]
tragait2270d762021-07-08 15:42:19 +010043 items:
44 type: string
45
niamhcoreacc0f8b2021-10-06 09:49:12 +010046 ModuleReferencesRequest:
niamhcore3139ece2021-07-30 16:25:16 +010047 type: object
48 properties:
leventecsanyi8db6a302024-04-02 14:37:57 +020049 moduleSetTag:
50 type: string
niamhcoreacc0f8b2021-10-06 09:49:12 +010051 cmHandleProperties:
52 $ref: '#/components/schemas/cmHandleProperties'
53
raviteja.karumuri97843842023-06-19 16:43:32 +010054 ResourceDataOperationRequests:
raviteja.karumuri7272f112023-05-24 18:23:38 +010055 type: array
56 items:
57 type: object
raviteja.karumuri97843842023-06-19 16:43:32 +010058 title: 'DataOperationRequest'
raviteja.karumuri7272f112023-05-24 18:23:38 +010059 properties:
60 operation:
61 type: string
62 example: 'read'
63 operationId:
64 description: 'it is recommended that the operationId is unique within the scope of the request'
65 type: string
66 example: '12'
67 datastore:
68 type: string
69 example: 'ncmp-datastore:passthrough-operational'
70 options:
71 type: string
72 example: 'some option'
73 resourceIdentifier:
74 type: string
75 example: 'some resource identifier'
76 cmHandles:
77 type: array
78 items:
79 $ref: '#/components/schemas/cmHandle'
80 required:
81 - operation
82 - operationId
83 - datastore
84 - cmHandles
85
86 cmHandle:
87 type: object
88 title: 'cmHandle'
89 properties:
90 id:
91 type: string
92 cmHandleProperties:
93 additionalProperties:
94 type: string
95 example:
96 id: cmHandle123
97 cmHandleProperties:
98 myProp: some value
99 otherProp: other value
100
niamhcoreacc0f8b2021-10-06 09:49:12 +0100101 ModuleResourcesReadRequest:
102 type: object
103 properties:
niamhcore3139ece2021-07-30 16:25:16 +0100104 data:
105 type: object
106 properties:
107 modules:
108 type: array
109 items:
110 type: object
111 properties:
112 name:
lukegleeson996152a2021-11-30 17:06:03 +0000113 type: string
114 example: my-name
niamhcore3139ece2021-07-30 16:25:16 +0100115 revision:
lukegleeson996152a2021-11-30 17:06:03 +0000116 type: string
117 example: my-revision
niamhcore3139ece2021-07-30 16:25:16 +0100118 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +0100119 $ref: '#/components/schemas/cmHandleProperties'
niamhcore3139ece2021-07-30 16:25:16 +0100120
niamhcore577efb02021-08-11 16:13:53 +0100121 ModuleSet:
122 type: object
123 properties:
124 schemas:
125 type: array
126 items:
127 type: object
128 properties:
129 moduleName:
130 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000131 example: my-module-name
niamhcore577efb02021-08-11 16:13:53 +0100132 revision:
lukegleeson996152a2021-11-30 17:06:03 +0000133 type: string
134 example: my-revision
niamhcore577efb02021-08-11 16:13:53 +0100135 namespace:
136 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000137 example: my-namespace
niamhcore577efb02021-08-11 16:13:53 +0100138
niamhcore4f431882021-09-21 16:08:29 +0100139 YangResources:
140 type: array
141 items:
niamhcore4f431882021-09-21 16:08:29 +0100142 $ref: '#/components/schemas/YangResource'
143
144 YangResource:
145 properties:
146 yangSource:
147 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000148 example: my-yang-source
niamhcore4f431882021-09-21 16:08:29 +0100149 moduleName:
150 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000151 example: my-module-name
niamhcore4f431882021-09-21 16:08:29 +0100152 revision:
lukegleeson996152a2021-11-30 17:06:03 +0000153 type: string
154 example: my-revision
niamhcore4f431882021-09-21 16:08:29 +0100155
DylanB95EST5fe0dae2021-11-09 13:54:35 +0000156 DataAccessRequest:
tragaite398be52021-08-06 17:01:31 +0100157 type: object
158 properties:
159 operation:
160 type: string
tragaitdffff5d2022-01-10 12:16:25 +0000161 enum: [ read, create, update, patch, delete ]
lukegleeson996152a2021-11-30 17:06:03 +0000162 example: read
niamhcore79e41e02021-08-20 11:24:06 +0100163 dataType:
164 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000165 example: my-data-type
niamhcore79e41e02021-08-20 11:24:06 +0100166 data:
tragaitfa11e9c2021-09-14 13:47:52 +0100167 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000168 example: my-data
niamhcore79e41e02021-08-20 11:24:06 +0100169 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +0100170 $ref: '#/components/schemas/cmHandleProperties'
mpriyank78e1d062022-04-08 15:12:22 +0530171 requestId:
172 type: string
JosephKeenan2cd8b982022-05-23 15:43:05 +0100173 example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7
tragait907e3782021-10-04 16:02:57 +0100174
175 cmHandleProperties:
176 type: object
egernug1118bed2023-06-28 10:57:53 +0100177 nullable: true
tragait907e3782021-10-04 16:02:57 +0100178 additionalProperties:
179 type: string
180 example: {"prop1":"value1","prop2":"value2"}
niamhcore79e41e02021-08-20 11:24:06 +0100181
DylanB95ESTb5a23832021-06-02 19:45:46 +0100182 responses:
lukegleeson996152a2021-11-30 17:06:03 +0000183 NoContent:
184 description: No Content
185 content: {}
raviteja.karumuri7272f112023-05-24 18:23:38 +0100186
DylanB95ESTb5a23832021-06-02 19:45:46 +0100187 BadRequest:
188 description: Bad Request
189 content:
190 application/json:
191 schema:
192 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000193 example:
194 status: 400
195 message: Bad Request
196 details: The provided request is not valid
raviteja.karumuri7272f112023-05-24 18:23:38 +0100197
lukegleeson996152a2021-11-30 17:06:03 +0000198 NotFound:
199 description: The specified resource was not found
200 content:
201 application/json:
202 schema:
203 $ref: '#/components/schemas/ErrorMessage'
204 example:
205 status: 404
206 message: Resource Not Found
207 details: The requested resource is not found
raviteja.karumuri7272f112023-05-24 18:23:38 +0100208
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000209 ServerError:
210 description: Internal Server Error
DylanB95ESTb5a23832021-06-02 19:45:46 +0100211 content:
212 application/json:
213 schema:
214 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000215 example:
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000216 status: 500
217 message: Internal Server Error
218 details: Internal Server Error occured
raviteja.karumuri7272f112023-05-24 18:23:38 +0100219
leventecsanyifff80c02023-04-05 11:42:30 +0200220 NotImplemented:
221 description: Not Implemented
222 content:
223 application/json:
224 schema:
225 $ref: '#/components/schemas/ErrorMessage'
226 example:
227 status: 501
228 message: Not Implemented
229 details: Method Not Implemented
raviteja.karumuri7272f112023-05-24 18:23:38 +0100230
niamhcore3139ece2021-07-30 16:25:16 +0100231 parameters:
232 cmHandleInPath:
233 name: cmHandle
234 in: path
235 description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy
236 required: true
237 schema:
tragaitf01d5672021-08-19 11:19:54 +0100238 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000239 example: my-cm-handle
tragaitf01d5672021-08-19 11:19:54 +0100240
niamhcore2fb3f662021-09-29 15:32:32 +0100241 resourceIdentifierInQuery:
tragaitf01d5672021-08-19 11:19:54 +0100242 name: resourceIdentifier
niamhcore2fb3f662021-09-29 15:32:32 +0100243 in: query
tragaitf01d5672021-08-19 11:19:54 +0100244 description: Resource identifier to get/set the resource data
245 required: true
niamhcore2fb3f662021-09-29 15:32:32 +0100246 allowReserved: true
tragaitf01d5672021-08-19 11:19:54 +0100247 schema:
248 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000249 example: my-schema:my-node
tragaitf01d5672021-08-19 11:19:54 +0100250
tragait907e3782021-10-04 16:02:57 +0100251 optionsParamInQuery:
252 name: options
tragaitf01d5672021-08-19 11:19:54 +0100253 in: query
tragait907e3782021-10-04 16:02:57 +0100254 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'.
tragaitf01d5672021-08-19 11:19:54 +0100255 required: false
256 schema:
257 type: string
tragait907e3782021-10-04 16:02:57 +0100258 allowReserved: true
259 examples:
260 sample1:
261 value:
262 options: (key1=value1,key2=value2)
263 sample2:
264 value:
265 options: (key1=value1,key2=value1/value2)
266 sample3:
267 value:
mpriyank78e1d062022-04-08 15:12:22 +0530268 options: (key1=10,key2=value2,key3=val31,val32)
raviteja.karumuri7272f112023-05-24 18:23:38 +0100269
mpriyank78e1d062022-04-08 15:12:22 +0530270 topicParamInQuery:
JosephKeenan2cd8b982022-05-23 15:43:05 +0100271 name: topic
mpriyank78e1d062022-04-08 15:12:22 +0530272 in: query
mpriyank7b7297c2022-09-14 10:47:45 +0100273 description: topic name passed from client(NCMP).
mpriyank78e1d062022-04-08 15:12:22 +0530274 required: false
275 schema:
276 type: string
277 allowReserved: true
278 examples:
279 sample1:
JosephKeenan2cd8b982022-05-23 15:43:05 +0100280 value: my-topic-name
raviteja.karumuri7272f112023-05-24 18:23:38 +0100281
282 requiredTopicParamInQuery:
283 name: topic
284 in: query
285 description: mandatory topic name passed from client(NCMP).
286 required: true
287 schema:
288 type: string
289 allowReserved: true
290 examples:
291 sample1:
292 value:
293 topic: my-topic-name
294
295 requiredRequestIdParamInQuery:
296 name: requestId
297 in: query
298 description: request Id generated by NCMP and sent as an acknowledgement for the client request the same including here.
299 required: true
300 schema:
301 type: string
302 allowReserved: true
303 examples:
304 sample1:
305 value: 4753fc1f-7de2-449a-b306-a6204b5370b3
306
sourabh_sourabhe648aba2023-03-13 15:49:35 +0000307 datastoreName:
308 name: datastore-name
309 in: path
310 description: The type of the requested data
311 required: true
312 schema:
313 type: string
314 example: ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running
JosephKeenandfe45ff2022-10-26 15:17:59 +0100315
316security:
317 - basicAuth: []