blob: a3016ce762c1233836618dbe912cff0b9a591d3a [file] [log] [blame]
shivasubedi8df61a92021-06-16 14:43:18 +01001# ============LICENSE_START=======================================================
puthuparambil.adityacc17ae52022-02-25 13:24:03 +00002# Copyright (c) 2021-2022 Bell Canada.
egernugfb09b7c2023-10-12 13:33:08 +01003# Modifications Copyright (C) 2021-2023 Nordix Foundation
rajesh.kumarcc21a022022-12-06 11:47:24 +00004# Modifications Copyright (C) 2022-2023 TechMahindra Ltd.
Michal Jagiello6ce84d92022-12-13 07:40:19 +00005# Modifications Copyright (C) 2022 Deutsche Telekom AG
shivasubedi8df61a92021-06-16 14:43:18 +01006# ================================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
Renu Kumari4d520012021-08-30 11:50:43 -040018#
19# SPDX-License-Identifier: Apache-2.0
shivasubedi8df61a92021-06-16 14:43:18 +010020# ============LICENSE_END=========================================================
21
puthuparambil.aditya001e7732021-01-13 12:06:20 +000022components:
23 schemas:
JosephKeenanc6865f32021-06-08 13:16:37 +010024
25 AnchorDetails:
26 type: object
27 title: Anchor details by anchor Name
28 properties:
29 name:
30 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +000031 example: my-anchor
JosephKeenanc6865f32021-06-08 13:16:37 +010032 dataspaceName:
33 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +000034 example: my-dataspace
JosephKeenanc6865f32021-06-08 13:16:37 +010035 schemaSetName:
36 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +000037 example: my-schema-set
JosephKeenanc6865f32021-06-08 13:16:37 +010038
rajesh.kumarcec0cb72022-09-06 11:47:18 +000039 DataspaceDetails:
40 type: object
41 title: Dataspace details by dataspace Name
42 properties:
43 name:
44 type: string
45 example: my-dataspace
46
puthuparambil.aditya001e7732021-01-13 12:06:20 +000047 ErrorMessage:
48 type: object
49 title: Error
50 properties:
51 status:
52 type: string
53 message:
54 type: string
55 details:
56 type: string
Rishi.Chail6d13f162021-01-26 05:58:39 +000057
puthuparambil.aditya001e7732021-01-13 12:06:20 +000058 MultipartFile:
Renu Kumari4d520012021-08-30 11:50:43 -040059 type: object
puthuparambil.aditya001e7732021-01-13 12:06:20 +000060 required:
61 - file
62 properties:
Renu Kumari4d520012021-08-30 11:50:43 -040063 file:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000064 type: string
65 description: multipartFile
66 format: binary
67
JosephKeenanc6865f32021-06-08 13:16:37 +010068 ModuleReferences:
69 type: object
70 title: Module reference object
71 properties:
72 name:
73 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +000074 example: my-module-reference-name
JosephKeenanc6865f32021-06-08 13:16:37 +010075 namespace:
76 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +000077 example: my-module-reference-namespace
JosephKeenanc6865f32021-06-08 13:16:37 +010078 revision:
79 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +000080 example: my-module-reference-revision
JosephKeenanc6865f32021-06-08 13:16:37 +010081
82 SchemaSetDetails:
83 type: object
84 title: Schema set details by dataspace and schemasetName
lukegleesond5bda882022-03-02 14:32:47 +000085 required:
86 - "moduleReferences"
JosephKeenanc6865f32021-06-08 13:16:37 +010087 properties:
88 dataspaceName:
89 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +000090 example: my-dataspace
JosephKeenanc6865f32021-06-08 13:16:37 +010091 moduleReferences:
92 type: array
93 items:
94 $ref: '#/components/schemas/ModuleReferences'
95 name:
96 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +000097 example: my-schema-set
98
99 examples:
puthuparambil.adityacc17ae52022-02-25 13:24:03 +0000100 dataSample:
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000101 value:
102 test:bookstore:
103 bookstore-name: Chapters
104 categories:
105 - code: 01
106 name: SciFi
107 - code: 02
108 name: kids
Michal Jagiello6ce84d92022-12-13 07:40:19 +0000109 dataSampleXml:
110 value:
111 <stores xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
112 <bookstore xmlns="org:onap:ccsdk:sample">
113 <bookstore-name>Chapters</bookstore-name>
114 <categories>
115 <code>1</code>
116 <name>SciFi</name>
117 </categories>
118 </bookstore>
119 </stores>
rajesh.kumara3178902022-12-14 14:27:29 +0000120 dataSampleAcrossAnchors:
121 value:
122 - anchorName: bookstore1
123 dataNode:
124 test:bookstore:
125 bookstore-name: Chapters
126 categories:
127 - code: 01
128 name: SciFi
129 - code: 02
130 name: kids
131 - anchorName: bookstore2
132 dataNode:
133 test:bookstore:
134 bookstore-name: Chapters
135 categories:
136 - code: 01
137 name: SciFi
138 - code: 02
139 name: kids
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000140
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000141 parameters:
142 dataspaceNameInQuery:
143 name: dataspace-name
144 in: query
145 description: dataspace-name
146 required: true
147 schema:
148 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000149 example: my-dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000150 dataspaceNameInPath:
151 name: dataspace-name
152 in: path
153 description: dataspace-name
154 required: true
155 schema:
156 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000157 example: my-dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000158 anchorNameInPath:
159 name: anchor-name
160 in: path
161 description: anchor-name
162 required: true
163 schema:
164 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000165 example: my-anchor
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000166 schemaSetNameInQuery:
167 name: schema-set-name
168 in: query
169 description: schema-set-name
170 required: true
171 schema:
172 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000173 example: my-schema-set
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000174 schemaSetNameInPath:
175 name: schema-set-name
176 in: path
177 description: schema-set-name
178 required: true
179 schema:
180 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000181 example: my-schema-set
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000182 anchorNameInQuery:
183 name: anchor-name
184 in: query
185 description: anchor-name
186 required: true
187 schema:
188 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000189 example: my-anchor
Ruslan Kashapov20983922021-02-01 10:47:25 +0200190 xpathInQuery:
Ruslan Kashapov24c72db2021-02-09 17:25:18 +0200191 name: xpath
Ruslan Kashapov20983922021-02-01 10:47:25 +0200192 in: query
emaclee50e000f2023-04-18 14:49:24 +0100193 description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html
Ruslan Kashapov20983922021-02-01 10:47:25 +0200194 required: false
195 schema:
196 type: string
197 default: /
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000198 examples:
199 container xpath:
200 value: /shops/bookstore
201 list attributes xpath:
202 value: /shops/bookstore/categories[@code=1]
Ruslan Kashapov0905ac12021-05-05 13:11:50 +0300203 requiredXpathInQuery:
204 name: xpath
205 in: query
emaclee50e000f2023-04-18 14:49:24 +0100206 description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html
Ruslan Kashapov0905ac12021-05-05 13:11:50 +0300207 required: true
208 schema:
209 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000210 examples:
211 container xpath:
212 value: /shops/bookstore
213 list attributes xpath:
214 value: /shops/bookstore/categories[@code=1]
niamhcore53f07ac2021-02-19 13:14:40 +0000215 cpsPathInQuery:
216 name: cps-path
217 in: query
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000218 description: For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
niamhcore53f07ac2021-02-19 13:14:40 +0000219 required: false
220 schema:
221 type: string
222 default: /
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000223 examples:
224 container cps path:
225 value: //bookstore
226 list attributes cps path:
227 value: //categories[@code=1]
Ruslan Kashapov20983922021-02-01 10:47:25 +0200228 includeDescendantsOptionInQuery:
229 name: include-descendants
230 in: query
231 description: include-descendants
232 required: false
233 schema:
234 type: boolean
235 default: false
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000236 example: false
aditya puthuparambil673c6d92021-08-24 17:44:34 +0100237 observedTimestampInQuery:
238 name: observed-timestamp
239 in: query
240 description: observed-timestamp
241 required: false
242 schema:
243 type: string
244 example: '2021-03-21T00:10:34.030-0100'
rajesh.kumar897686f2022-12-14 08:13:29 +0000245 apiVersionInPath:
246 name: apiVersion
247 in: path
248 description: apiVersion
249 required: true
250 schema:
251 type: string
252 enum: [v1, v2]
253 default: v2
Michal Jagiello6ce84d92022-12-13 07:40:19 +0000254 contentTypeHeader:
255 name: Content-Type
256 in: header
257 description: Content type header
258 schema:
259 type: string
260 example: 'application/json'
261 required: true
rajesh.kumarcc21a022022-12-06 11:47:24 +0000262 descendantsInQuery:
263 name: descendants
264 in: query
Rudrangi Anupriya8126f032023-07-28 14:28:54 +0530265 description: Number of descendants to query. Allowed values are 'none', 'all', 'direct', 1 (for direct), -1 (for all), 0 (for none) and any positive number.
rajesh.kumarcc21a022022-12-06 11:47:24 +0000266 required: false
267 schema:
268 type: string
269 default: none
270 example: 3
rajesh.kumarf248b5d2023-04-25 11:58:35 +0530271 pageIndexInQuery:
272 name: pageIndex
273 in: query
274 description: page index for pagination over anchors. It must be greater then zero if provided.
275 required: false
276 schema:
277 type: integer
278 example: 1
279 pageSizeInQuery:
280 name: pageSize
281 in: query
282 description: number of records (anchors) per page. It must be greater then zero if provided.
283 required: false
284 schema:
285 type: integer
286 example: 10
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000287
288 responses:
289 NotFound:
290 description: The specified resource was not found
291 content:
292 application/json:
293 schema:
294 $ref: '#/components/schemas/ErrorMessage'
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000295 example:
296 status: 404
297 message: Resource Not Found
298 details: The requested resource is not found
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000299 Unauthorized:
300 description: Unauthorized
301 content:
302 application/json:
303 schema:
304 $ref: '#/components/schemas/ErrorMessage'
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000305 example:
306 status: 401
307 message: Unauthorized request
308 details: This request is unauthorized
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000309 Forbidden:
310 description: Forbidden
311 content:
312 application/json:
313 schema:
314 $ref: '#/components/schemas/ErrorMessage'
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000315 example:
316 status: 403
317 message: Request Forbidden
318 details: This request is forbidden
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000319 BadRequest:
320 description: Bad Request
321 content:
322 application/json:
323 schema:
324 $ref: '#/components/schemas/ErrorMessage'
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000325 example:
326 status: 400
327 message: Bad Request
328 details: The provided request is not valid
Ruslan Kashapovdce4e312021-01-11 15:34:10 +0200329 Conflict:
330 description: Conflict
331 content:
332 application/json:
333 schema:
334 $ref: '#/components/schemas/ErrorMessage'
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000335 example:
336 status: 409
337 message: Conflicting request
338 details: The request cannot be processed as the resource is in use.
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000339 Ok:
340 description: OK
341 content:
342 application/json:
343 schema:
344 type: object
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000345 examples:
puthuparambil.adityacc17ae52022-02-25 13:24:03 +0000346 dataSample:
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000347 value: ""
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000348 Created:
349 description: Created
350 content:
351 text/plain:
352 schema:
353 type: string
puthuparambil.aditya5d8b2412021-11-24 13:35:10 +0000354 example: my-resource
rajesh.kumar897686f2022-12-14 08:13:29 +0000355 CreatedV2:
356 description: Created without response body
JosephKeenan909a8502022-01-28 10:02:24 +0000357 InternalServerError:
358 description: Internal Server Error
359 content:
360 application/json:
361 schema:
362 $ref: "#/components/schemas/ErrorMessage"
363 example:
364 status: 500
365 message: Internal Server Error
366 details: Internal Server Error occurred
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000367 NoContent:
368 description: No Content
369 content: {}