blob: 1e35c028786b73a0ef26e6862c2528d71c6e481e [file] [log] [blame]
puthuparambil.aditya39450c52022-03-29 11:22:31 +01001# ============LICENSE_START=======================================================
JosephKeenan2cd8b982022-05-23 15:43:05 +01002# Copyright (C) 2021-2022 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:
niamhcoreacc0f8b2021-10-06 09:49:12 +010049 cmHandleProperties:
50 $ref: '#/components/schemas/cmHandleProperties'
51
52 ModuleResourcesReadRequest:
53 type: object
54 properties:
niamhcore3139ece2021-07-30 16:25:16 +010055 data:
56 type: object
57 properties:
58 modules:
59 type: array
60 items:
61 type: object
62 properties:
63 name:
lukegleeson996152a2021-11-30 17:06:03 +000064 type: string
65 example: my-name
niamhcore3139ece2021-07-30 16:25:16 +010066 revision:
lukegleeson996152a2021-11-30 17:06:03 +000067 type: string
68 example: my-revision
niamhcore3139ece2021-07-30 16:25:16 +010069 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +010070 $ref: '#/components/schemas/cmHandleProperties'
niamhcore3139ece2021-07-30 16:25:16 +010071
niamhcore577efb02021-08-11 16:13:53 +010072 ModuleSet:
73 type: object
74 properties:
75 schemas:
76 type: array
77 items:
78 type: object
79 properties:
80 moduleName:
81 type: string
lukegleeson996152a2021-11-30 17:06:03 +000082 example: my-module-name
niamhcore577efb02021-08-11 16:13:53 +010083 revision:
lukegleeson996152a2021-11-30 17:06:03 +000084 type: string
85 example: my-revision
niamhcore577efb02021-08-11 16:13:53 +010086 namespace:
87 type: string
lukegleeson996152a2021-11-30 17:06:03 +000088 example: my-namespace
niamhcore577efb02021-08-11 16:13:53 +010089
niamhcore4f431882021-09-21 16:08:29 +010090 YangResources:
91 type: array
92 items:
93 type: object
94 $ref: '#/components/schemas/YangResource'
95
96 YangResource:
97 properties:
98 yangSource:
99 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000100 example: my-yang-source
niamhcore4f431882021-09-21 16:08:29 +0100101 moduleName:
102 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000103 example: my-module-name
niamhcore4f431882021-09-21 16:08:29 +0100104 revision:
lukegleeson996152a2021-11-30 17:06:03 +0000105 type: string
106 example: my-revision
niamhcore4f431882021-09-21 16:08:29 +0100107
DylanB95EST5fe0dae2021-11-09 13:54:35 +0000108 DataAccessRequest:
tragaite398be52021-08-06 17:01:31 +0100109 type: object
110 properties:
111 operation:
112 type: string
tragaitdffff5d2022-01-10 12:16:25 +0000113 enum: [ read, create, update, patch, delete ]
lukegleeson996152a2021-11-30 17:06:03 +0000114 example: read
niamhcore79e41e02021-08-20 11:24:06 +0100115 dataType:
116 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000117 example: my-data-type
niamhcore79e41e02021-08-20 11:24:06 +0100118 data:
tragaitfa11e9c2021-09-14 13:47:52 +0100119 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000120 example: my-data
niamhcore79e41e02021-08-20 11:24:06 +0100121 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +0100122 $ref: '#/components/schemas/cmHandleProperties'
mpriyank78e1d062022-04-08 15:12:22 +0530123 requestId:
124 type: string
JosephKeenan2cd8b982022-05-23 15:43:05 +0100125 example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7
tragait907e3782021-10-04 16:02:57 +0100126
127 cmHandleProperties:
128 type: object
129 additionalProperties:
130 type: string
131 example: {"prop1":"value1","prop2":"value2"}
niamhcore79e41e02021-08-20 11:24:06 +0100132
DylanB95ESTb5a23832021-06-02 19:45:46 +0100133 responses:
lukegleeson996152a2021-11-30 17:06:03 +0000134 NoContent:
135 description: No Content
136 content: {}
DylanB95ESTb5a23832021-06-02 19:45:46 +0100137 BadRequest:
138 description: Bad Request
139 content:
140 application/json:
141 schema:
142 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000143 example:
144 status: 400
145 message: Bad Request
146 details: The provided request is not valid
lukegleeson996152a2021-11-30 17:06:03 +0000147 NotFound:
148 description: The specified resource was not found
149 content:
150 application/json:
151 schema:
152 $ref: '#/components/schemas/ErrorMessage'
153 example:
154 status: 404
155 message: Resource Not Found
156 details: The requested resource is not found
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000157 ServerError:
158 description: Internal Server Error
DylanB95ESTb5a23832021-06-02 19:45:46 +0100159 content:
160 application/json:
161 schema:
162 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000163 example:
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000164 status: 500
165 message: Internal Server Error
166 details: Internal Server Error occured
niamhcore3139ece2021-07-30 16:25:16 +0100167 parameters:
168 cmHandleInPath:
169 name: cmHandle
170 in: path
171 description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy
172 required: true
173 schema:
tragaitf01d5672021-08-19 11:19:54 +0100174 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000175 example: my-cm-handle
tragaitf01d5672021-08-19 11:19:54 +0100176
niamhcore2fb3f662021-09-29 15:32:32 +0100177 resourceIdentifierInQuery:
tragaitf01d5672021-08-19 11:19:54 +0100178 name: resourceIdentifier
niamhcore2fb3f662021-09-29 15:32:32 +0100179 in: query
tragaitf01d5672021-08-19 11:19:54 +0100180 description: Resource identifier to get/set the resource data
181 required: true
niamhcore2fb3f662021-09-29 15:32:32 +0100182 allowReserved: true
tragaitf01d5672021-08-19 11:19:54 +0100183 schema:
184 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000185 example: my-schema:my-node
tragaitf01d5672021-08-19 11:19:54 +0100186
tragait907e3782021-10-04 16:02:57 +0100187 optionsParamInQuery:
188 name: options
tragaitf01d5672021-08-19 11:19:54 +0100189 in: query
tragait907e3782021-10-04 16:02:57 +0100190 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'.
tragaitf01d5672021-08-19 11:19:54 +0100191 required: false
192 schema:
193 type: string
tragait907e3782021-10-04 16:02:57 +0100194 allowReserved: true
195 examples:
196 sample1:
197 value:
198 options: (key1=value1,key2=value2)
199 sample2:
200 value:
201 options: (key1=value1,key2=value1/value2)
202 sample3:
203 value:
mpriyank78e1d062022-04-08 15:12:22 +0530204 options: (key1=10,key2=value2,key3=val31,val32)
205 topicParamInQuery:
JosephKeenan2cd8b982022-05-23 15:43:05 +0100206 name: topic
mpriyank78e1d062022-04-08 15:12:22 +0530207 in: query
mpriyank7b7297c2022-09-14 10:47:45 +0100208 description: topic name passed from client(NCMP).
mpriyank78e1d062022-04-08 15:12:22 +0530209 required: false
210 schema:
211 type: string
212 allowReserved: true
213 examples:
214 sample1:
JosephKeenan2cd8b982022-05-23 15:43:05 +0100215 value: my-topic-name
sourabh_sourabhe648aba2023-03-13 15:49:35 +0000216 datastoreName:
217 name: datastore-name
218 in: path
219 description: The type of the requested data
220 required: true
221 schema:
222 type: string
223 example: ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running
JosephKeenandfe45ff2022-10-26 15:17:59 +0100224
225security:
226 - basicAuth: []