blob: 44cc2b88a680160b773d8e99abd3ae2ebc6f004a [file] [log] [blame]
DylanB95ESTfee86992021-09-23 12:22:55 +01001openapi: 3.0.1
2info:
3 title: NCMP to CPS Proxy API
4 description: NCMP to CPS Proxy API
5 version: "1.0"
6servers:
bmiklos96d54ef2022-09-07 16:11:57 +02007- url: /ncmp
DylanB95ESTfee86992021-09-23 12:22:55 +01008paths:
emacleeafb17362022-09-02 14:40:17 +01009 /v1/ch/{cm-handle}/data/ds/{ncmp-datastore-name}:
DylanB95ESTfee86992021-09-23 12:22:55 +010010 get:
11 tags:
bmiklos96d54ef2022-09-07 16:11:57 +020012 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +010013 summary: Get resource data for cm handle
14 description: Get resource data for given cm handle
15 operationId: getResourceDataForCmHandle
DylanB95ESTfee86992021-09-23 12:22:55 +010016 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +020017 - name: ncmp-datastore-name
18 in: path
19 description: The type of the requested data
20 required: true
21 schema:
22 type: string
23 example: ncmp-datastore:operational
24 - name: cm-handle
25 in: path
26 description: "The identifier for a network function, network element, subnetwork\
DylanB95ESTfee86992021-09-23 12:22:55 +010027 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +020028 required: true
29 schema:
30 type: string
31 example: my-cm-handle
32 - name: resourceIdentifier
33 in: query
34 description: The format of resource identifier depend on the associated DMI
35 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
36 it can really be anything.
37 required: true
38 allowReserved: true
39 schema:
40 type: string
41 examples:
42 sample 1:
43 value:
44 resourceIdentifier: \shops\bookstore
45 sample 2:
46 value:
47 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
48 sample 3:
49 value:
50 resourceIdentifier: "parent=shops,child=bookstore"
51 - name: options
52 in: query
53 description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
DylanB95ESTe5573382022-01-27 17:12:52 +000054 \ in parenthesis'()'. The format of options parameter depend on the associated\
55 \ DMI Plugin implementation."
bmiklos96d54ef2022-09-07 16:11:57 +020056 required: false
57 allowReserved: true
58 schema:
59 type: string
60 examples:
61 sample 1:
62 value:
63 options: (depth=3)
64 sample 2:
65 value:
66 options: (fields=book)
67 sample 3:
68 value:
69 options: "(depth=2,fields=book/authors)"
70 - name: topic
71 in: query
72 description: topic parameter in query.
73 required: false
74 allowReserved: true
75 schema:
76 type: string
77 examples:
78 sample 1:
79 value:
80 topic: my-topic-name
81 - name: include-descendants
82 in: query
83 description: Determines if descendants are included in response
84 required: false
85 schema:
86 type: boolean
87 default: false
DylanB95ESTfee86992021-09-23 12:22:55 +010088 responses:
89 "200":
90 description: OK
91 content:
92 application/json:
93 schema:
94 type: object
DylanB95ESTe5573382022-01-27 17:12:52 +000095 examples:
96 dataSampleResponse:
97 $ref: '#/components/examples/dataSampleResponse'
DylanB95ESTfee86992021-09-23 12:22:55 +010098 "400":
99 description: Bad Request
100 content:
101 application/json:
102 schema:
103 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000104 example:
105 status: 400 BAD_REQUEST
106 message: Bad request error message
107 details: Bad request error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100108 "401":
109 description: Unauthorized
110 content:
111 application/json:
112 schema:
113 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000114 example:
115 status: 401
116 message: Unauthorized error message
117 details: Unauthorized error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100118 "403":
119 description: Forbidden
120 content:
121 application/json:
122 schema:
123 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000124 example:
125 status: 403
126 message: Forbidden error message
127 details: Forbidden error details
128 "500":
129 description: Internal Server Error
DylanB95ESTfee86992021-09-23 12:22:55 +0100130 content:
131 application/json:
132 schema:
133 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000134 example:
135 status: 500
136 message: Internal Server Error
137 details: Internal Server Error occurred
mpriyank93afc1e2022-03-28 15:47:47 +0530138 "502":
139 description: Bad Gateway
140 content:
141 application/json:
142 schema:
143 $ref: '#/components/schemas/DmiErrorMessage'
144 example:
emacleeafb17362022-09-02 14:40:17 +0100145 message: Bad Gateway Error Message NCMP
mpriyank93afc1e2022-03-28 15:47:47 +0530146 dmi-response:
147 http-code: 400
148 body: Bad Request
DylanB95ESTe5573382022-01-27 17:12:52 +0000149 put:
150 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200151 - network-cm-proxy
DylanB95ESTe5573382022-01-27 17:12:52 +0000152 summary: Update resource data from pass-through running for a cm handle
153 description: Update resource data from pass-through running for the given cm
154 handle
155 operationId: updateResourceDataRunningForCmHandle
156 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +0200157 - name: ncmp-datastore-name
158 in: path
159 description: The type of the requested data
160 required: true
161 schema:
162 type: string
163 example: ncmp-datastore:operational
164 - name: cm-handle
165 in: path
166 description: "The identifier for a network function, network element, subnetwork\
DylanB95ESTe5573382022-01-27 17:12:52 +0000167 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +0200168 required: true
169 schema:
170 type: string
171 example: my-cm-handle
172 - name: resourceIdentifier
173 in: query
174 description: The format of resource identifier depend on the associated DMI
175 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
176 it can really be anything.
177 required: true
178 allowReserved: true
179 schema:
180 type: string
181 examples:
182 sample 1:
183 value:
184 resourceIdentifier: \shops\bookstore
185 sample 2:
186 value:
187 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
188 sample 3:
189 value:
190 resourceIdentifier: "parent=shops,child=bookstore"
191 - name: Content-Type
192 in: header
193 description: "Content parameter for request, if content parameter is null,\
DylanB95ESTe5573382022-01-27 17:12:52 +0000194 \ default value is application/json."
bmiklos96d54ef2022-09-07 16:11:57 +0200195 required: false
196 schema:
197 type: string
198 example: application/yang-data+json
199 default: application/json
DylanB95ESTe5573382022-01-27 17:12:52 +0000200 requestBody:
201 content:
202 application/json:
203 schema:
204 type: object
205 examples:
206 dataSampleRequest:
207 $ref: '#/components/examples/dataSampleRequest'
208 application/yang-data+json:
209 schema:
210 type: object
211 examples:
212 dataSampleRequest:
213 $ref: '#/components/examples/dataSampleRequest'
214 required: true
DylanB95ESTfee86992021-09-23 12:22:55 +0100215 responses:
216 "200":
217 description: OK
218 content:
219 application/json:
220 schema:
221 type: object
222 "400":
223 description: Bad Request
224 content:
225 application/json:
226 schema:
227 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000228 example:
229 status: 400 BAD_REQUEST
230 message: Bad request error message
231 details: Bad request error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100232 "401":
233 description: Unauthorized
234 content:
235 application/json:
236 schema:
237 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000238 example:
239 status: 401
240 message: Unauthorized error message
241 details: Unauthorized error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100242 "403":
243 description: Forbidden
244 content:
245 application/json:
246 schema:
247 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000248 example:
249 status: 403
250 message: Forbidden error message
251 details: Forbidden error details
252 "500":
253 description: Internal Server Error
DylanB95ESTfee86992021-09-23 12:22:55 +0100254 content:
255 application/json:
256 schema:
257 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000258 example:
259 status: 500
260 message: Internal Server Error
261 details: Internal Server Error occurred
mpriyank93afc1e2022-03-28 15:47:47 +0530262 "502":
263 description: Bad Gateway
264 content:
265 application/json:
266 schema:
267 $ref: '#/components/schemas/DmiErrorMessage'
268 example:
emacleeafb17362022-09-02 14:40:17 +0100269 message: Bad Gateway Error Message NCMP
mpriyank93afc1e2022-03-28 15:47:47 +0530270 dmi-response:
271 http-code: 400
272 body: Bad Request
DylanB95ESTfee86992021-09-23 12:22:55 +0100273 post:
274 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200275 - network-cm-proxy
DylanB95ESTfee86992021-09-23 12:22:55 +0100276 summary: create resource data from pass-through running for cm handle
277 description: create resource data from pass-through running for given cm handle
278 operationId: createResourceDataRunningForCmHandle
279 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +0200280 - name: ncmp-datastore-name
281 in: path
282 description: The type of the requested data
283 required: true
284 schema:
285 type: string
286 example: ncmp-datastore:operational
287 - name: cm-handle
288 in: path
289 description: "The identifier for a network function, network element, subnetwork\
DylanB95ESTfee86992021-09-23 12:22:55 +0100290 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +0200291 required: true
292 schema:
293 type: string
294 example: my-cm-handle
295 - name: resourceIdentifier
296 in: query
297 description: The format of resource identifier depend on the associated DMI
298 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
299 it can really be anything.
300 required: true
301 allowReserved: true
302 schema:
303 type: string
304 examples:
305 sample 1:
306 value:
307 resourceIdentifier: \shops\bookstore
308 sample 2:
309 value:
310 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
311 sample 3:
312 value:
313 resourceIdentifier: "parent=shops,child=bookstore"
314 - name: Content-Type
315 in: header
316 description: "Content parameter for request, if content parameter is null,\
DylanB95ESTfee86992021-09-23 12:22:55 +0100317 \ default value is application/json."
bmiklos96d54ef2022-09-07 16:11:57 +0200318 required: false
319 schema:
320 type: string
321 example: application/yang-data+json
322 default: application/json
DylanB95ESTfee86992021-09-23 12:22:55 +0100323 requestBody:
324 content:
325 application/json:
326 schema:
DylanB95ESTe5573382022-01-27 17:12:52 +0000327 type: object
328 examples:
329 dataSampleRequest:
330 $ref: '#/components/examples/dataSampleRequest'
DylanB95ESTfee86992021-09-23 12:22:55 +0100331 application/yang-data+json:
332 schema:
DylanB95ESTe5573382022-01-27 17:12:52 +0000333 type: object
334 examples:
335 dataSampleRequest:
336 $ref: '#/components/examples/dataSampleRequest'
DylanB95ESTfee86992021-09-23 12:22:55 +0100337 required: true
338 responses:
339 "201":
340 description: Created
341 content: {}
342 "400":
343 description: Bad Request
344 content:
345 application/json:
346 schema:
347 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000348 example:
349 status: 400 BAD_REQUEST
350 message: Bad request error message
351 details: Bad request error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100352 "401":
353 description: Unauthorized
354 content:
355 application/json:
356 schema:
357 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000358 example:
359 status: 401
360 message: Unauthorized error message
361 details: Unauthorized error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100362 "403":
363 description: Forbidden
364 content:
365 application/json:
366 schema:
367 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000368 example:
369 status: 403
370 message: Forbidden error message
371 details: Forbidden error details
372 "500":
373 description: Internal Server Error
374 content:
375 application/json:
376 schema:
377 $ref: '#/components/schemas/ErrorMessage'
378 example:
379 status: 500
380 message: Internal Server Error
381 details: Internal Server Error occurred
mpriyank93afc1e2022-03-28 15:47:47 +0530382 "502":
383 description: Bad Gateway
384 content:
385 application/json:
386 schema:
387 $ref: '#/components/schemas/DmiErrorMessage'
388 example:
emacleeafb17362022-09-02 14:40:17 +0100389 message: Bad Gateway Error Message NCMP
mpriyank93afc1e2022-03-28 15:47:47 +0530390 dmi-response:
391 http-code: 400
392 body: Bad Request
DylanB95ESTe5573382022-01-27 17:12:52 +0000393 delete:
394 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200395 - network-cm-proxy
DylanB95ESTe5573382022-01-27 17:12:52 +0000396 summary: Delete resource data
397 description: Delete resource data from pass-through running for a given cm handle
398 operationId: deleteResourceDataRunningForCmHandle
399 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +0200400 - name: ncmp-datastore-name
401 in: path
402 description: The type of the requested data
403 required: true
404 schema:
405 type: string
406 example: ncmp-datastore:operational
407 - name: cm-handle
408 in: path
409 description: "The identifier for a network function, network element, subnetwork\
DylanB95ESTe5573382022-01-27 17:12:52 +0000410 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +0200411 required: true
412 schema:
413 type: string
414 example: my-cm-handle
415 - name: resourceIdentifier
416 in: query
417 description: The format of resource identifier depend on the associated DMI
418 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
419 it can really be anything.
420 required: true
421 allowReserved: true
422 schema:
423 type: string
424 examples:
425 sample 1:
426 value:
427 resourceIdentifier: \shops\bookstore
428 sample 2:
429 value:
430 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
431 sample 3:
432 value:
433 resourceIdentifier: "parent=shops,child=bookstore"
434 - name: Content-Type
435 in: header
436 description: "Content parameter for request, if content parameter is null,\
DylanB95ESTe5573382022-01-27 17:12:52 +0000437 \ default value is application/json."
bmiklos96d54ef2022-09-07 16:11:57 +0200438 required: false
439 schema:
440 type: string
441 example: application/yang-data+json
442 default: application/json
DylanB95ESTe5573382022-01-27 17:12:52 +0000443 responses:
444 "204":
445 description: No Content
446 content: {}
447 "400":
448 description: Bad Request
449 content:
450 application/json:
451 schema:
452 $ref: '#/components/schemas/ErrorMessage'
453 example:
454 status: 400 BAD_REQUEST
455 message: Bad request error message
456 details: Bad request error details
457 "401":
458 description: Unauthorized
459 content:
460 application/json:
461 schema:
462 $ref: '#/components/schemas/ErrorMessage'
463 example:
464 status: 401
465 message: Unauthorized error message
466 details: Unauthorized error details
467 "403":
468 description: Forbidden
469 content:
470 application/json:
471 schema:
472 $ref: '#/components/schemas/ErrorMessage'
473 example:
474 status: 403
475 message: Forbidden error message
476 details: Forbidden error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100477 "404":
478 description: The specified resource was not found
479 content:
480 application/json:
481 schema:
482 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000483 example:
484 status: 400
485 message: Not found error message
486 details: Not found error details
487 "500":
488 description: Internal Server Error
489 content:
490 application/json:
491 schema:
492 $ref: '#/components/schemas/ErrorMessage'
493 example:
494 status: 500
495 message: Internal Server Error
496 details: Internal Server Error occurred
mpriyank93afc1e2022-03-28 15:47:47 +0530497 "502":
498 description: Bad Gateway
499 content:
500 application/json:
501 schema:
502 $ref: '#/components/schemas/DmiErrorMessage'
503 example:
emacleeafb17362022-09-02 14:40:17 +0100504 message: Bad Gateway Error Message NCMP
mpriyank93afc1e2022-03-28 15:47:47 +0530505 dmi-response:
506 http-code: 400
507 body: Bad Request
DylanB95ESTe5573382022-01-27 17:12:52 +0000508 patch:
DylanB95ESTfee86992021-09-23 12:22:55 +0100509 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200510 - network-cm-proxy
DylanB95ESTe5573382022-01-27 17:12:52 +0000511 summary: Patch resource data from pass-through running
512 description: Patch resource data from pass-through running for the given cm
DylanB95ESTfee86992021-09-23 12:22:55 +0100513 handle
DylanB95ESTe5573382022-01-27 17:12:52 +0000514 operationId: patchResourceDataRunningForCmHandle
DylanB95ESTfee86992021-09-23 12:22:55 +0100515 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +0200516 - name: ncmp-datastore-name
517 in: path
518 description: The type of the requested data
519 required: true
520 schema:
521 type: string
522 example: ncmp-datastore:operational
523 - name: cm-handle
524 in: path
525 description: "The identifier for a network function, network element, subnetwork\
DylanB95ESTfee86992021-09-23 12:22:55 +0100526 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +0200527 required: true
528 schema:
529 type: string
530 example: my-cm-handle
531 - name: resourceIdentifier
532 in: query
533 description: The format of resource identifier depend on the associated DMI
534 Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but
535 it can really be anything.
536 required: true
537 allowReserved: true
538 schema:
539 type: string
540 examples:
541 sample 1:
542 value:
543 resourceIdentifier: \shops\bookstore
544 sample 2:
545 value:
546 resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]"
547 sample 3:
548 value:
549 resourceIdentifier: "parent=shops,child=bookstore"
550 - name: Content-Type
551 in: header
552 description: "Content parameter for request, if content parameter is null,\
DylanB95ESTe5573382022-01-27 17:12:52 +0000553 \ default value is application/json."
bmiklos96d54ef2022-09-07 16:11:57 +0200554 required: false
555 schema:
556 type: string
557 example: application/yang-data+json
558 default: application/json
DylanB95ESTe5573382022-01-27 17:12:52 +0000559 requestBody:
560 content:
561 '*/*':
562 schema:
563 type: object
564 examples:
565 dataSampleRequest:
566 $ref: '#/components/examples/dataSamplePatchRequest'
567 required: true
DylanB95ESTfee86992021-09-23 12:22:55 +0100568 responses:
569 "200":
570 description: OK
571 content:
572 application/json:
573 schema:
574 type: object
575 "400":
576 description: Bad Request
577 content:
578 application/json:
579 schema:
580 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000581 example:
582 status: 400 BAD_REQUEST
583 message: Bad request error message
584 details: Bad request error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100585 "401":
586 description: Unauthorized
587 content:
588 application/json:
589 schema:
590 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000591 example:
592 status: 401
593 message: Unauthorized error message
594 details: Unauthorized error details
DylanB95ESTfee86992021-09-23 12:22:55 +0100595 "403":
596 description: Forbidden
597 content:
598 application/json:
599 schema:
600 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +0000601 example:
602 status: 403
603 message: Forbidden error message
604 details: Forbidden error details
605 "500":
606 description: Internal Server Error
607 content:
608 application/json:
609 schema:
610 $ref: '#/components/schemas/ErrorMessage'
611 example:
612 status: 500
613 message: Internal Server Error
614 details: Internal Server Error occurred
mpriyank93afc1e2022-03-28 15:47:47 +0530615 "502":
616 description: Bad Gateway
617 content:
618 application/json:
619 schema:
620 $ref: '#/components/schemas/DmiErrorMessage'
621 example:
emacleeafb17362022-09-02 14:40:17 +0100622 message: Bad Gateway Error Message NCMP
mpriyank93afc1e2022-03-28 15:47:47 +0530623 dmi-response:
624 http-code: 400
625 body: Bad Request
DylanB95ESTe5573382022-01-27 17:12:52 +0000626 /v1/ch/{cm-handle}/modules:
627 get:
628 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200629 - network-cm-proxy
DylanB95ESTe5573382022-01-27 17:12:52 +0000630 summary: Fetch all module references (name and revision) for a given cm handle
631 description: fetch all module references (name and revision) for a given cm
632 handle
633 operationId: getModuleReferencesByCmHandle
634 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +0200635 - name: cm-handle
636 in: path
637 description: "The identifier for a network function, network element, subnetwork\
DylanB95ESTe5573382022-01-27 17:12:52 +0000638 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +0200639 required: true
640 schema:
641 type: string
642 example: my-cm-handle
DylanB95ESTe5573382022-01-27 17:12:52 +0000643 responses:
644 "200":
645 description: OK
646 content:
647 application/json:
648 schema:
649 type: array
650 items:
Bruno Sakotoa1129b62022-03-15 08:09:07 -0400651 $ref: '#/components/schemas/RestModuleReference'
DylanB95ESTe5573382022-01-27 17:12:52 +0000652 "400":
653 description: Bad Request
654 content:
655 application/json:
656 schema:
657 $ref: '#/components/schemas/ErrorMessage'
658 example:
659 status: 400 BAD_REQUEST
660 message: Bad request error message
661 details: Bad request error details
662 "401":
663 description: Unauthorized
664 content:
665 application/json:
666 schema:
667 $ref: '#/components/schemas/ErrorMessage'
668 example:
669 status: 401
670 message: Unauthorized error message
671 details: Unauthorized error details
672 "403":
673 description: Forbidden
674 content:
675 application/json:
676 schema:
677 $ref: '#/components/schemas/ErrorMessage'
678 example:
679 status: 403
680 message: Forbidden error message
681 details: Forbidden error details
682 "500":
683 description: Internal Server Error
684 content:
685 application/json:
686 schema:
687 $ref: '#/components/schemas/ErrorMessage'
688 example:
689 status: 500
690 message: Internal Server Error
691 details: Internal Server Error occurred
emacleeafb17362022-09-02 14:40:17 +0100692 /v1/ch/{cm-handle}/modules/definitions:
693 get:
694 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200695 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +0100696 summary: "Fetch all module definitions (name, revision, yang resource) for a\
697 \ given cm handle"
698 description: "Fetch all module definitions (name, revision, yang resource) for\
699 \ a given cm handle"
700 operationId: getModuleDefinitionsByCmHandleId
701 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +0200702 - name: cm-handle
703 in: path
704 description: "The identifier for a network function, network element, subnetwork\
emacleeafb17362022-09-02 14:40:17 +0100705 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +0200706 required: true
707 schema:
708 type: string
709 example: my-cm-handle
emacleeafb17362022-09-02 14:40:17 +0100710 responses:
711 "200":
712 description: OK
713 content:
714 application/json:
715 schema:
716 type: array
717 items:
718 $ref: '#/components/schemas/RestModuleDefinition'
719 "401":
720 description: Unauthorized
721 content:
722 application/json:
723 schema:
724 $ref: '#/components/schemas/ErrorMessage'
725 example:
726 status: 401
727 message: Unauthorized error message
728 details: Unauthorized error details
729 "403":
730 description: Forbidden
731 content:
732 application/json:
733 schema:
734 $ref: '#/components/schemas/ErrorMessage'
735 example:
736 status: 403
737 message: Forbidden error message
738 details: Forbidden error details
739 "500":
740 description: Internal Server Error
741 content:
742 application/json:
743 schema:
744 $ref: '#/components/schemas/ErrorMessage'
745 example:
746 status: 500
747 message: Internal Server Error
748 details: Internal Server Error occurred
DylanB95ESTe5573382022-01-27 17:12:52 +0000749 /v1/ch/searches:
750 post:
751 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200752 - network-cm-proxy
DylanB95ESTe5573382022-01-27 17:12:52 +0000753 summary: Execute cm handle search using the available conditions
emacleeafb17362022-09-02 14:40:17 +0100754 description: Execute cm handle query search and return a list of cm handle details.
755 Any number of conditions can be applied. To be included in the result a cm-handle
756 must fulfill ALL the conditions. An empty collection will be returned in the
757 case that the cm handle does not match a condition. For more on cm handle
758 query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm
759 handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible
760 to query on any data related to the cm handle. For more on CPS Path please
761 refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS
762 Path Read the Docs</a>. The cm handle ancestor is automatically returned for
763 this query.
764 operationId: searchCmHandles
DylanB95ESTe5573382022-01-27 17:12:52 +0000765 requestBody:
766 content:
767 application/json:
768 schema:
emacleeafb17362022-09-02 14:40:17 +0100769 $ref: '#/components/schemas/CmHandleQueryParameters'
770 examples:
771 Cm handle properties query:
772 $ref: '#/components/examples/pubPropCmHandleQueryParameters'
773 Cm handle modules query:
774 $ref: '#/components/examples/modulesCmHandleQueryParameters'
775 All cm handle query parameters:
776 $ref: '#/components/examples/allCmHandleQueryParameters'
777 Cm handle with CPS path state query:
778 $ref: '#/components/examples/cpsPathCmHandleStateQueryParameters'
779 Cm handle with data sync flag query:
780 $ref: '#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
DylanB95ESTe5573382022-01-27 17:12:52 +0000781 required: true
782 responses:
783 "200":
784 description: OK
785 content:
786 application/json:
787 schema:
emacleeafb17362022-09-02 14:40:17 +0100788 type: array
789 items:
790 $ref: '#/components/schemas/RestOutputCmHandle'
DylanB95ESTe5573382022-01-27 17:12:52 +0000791 "400":
792 description: Bad Request
793 content:
794 application/json:
795 schema:
796 $ref: '#/components/schemas/ErrorMessage'
797 example:
798 status: 400 BAD_REQUEST
799 message: Bad request error message
800 details: Bad request error details
801 "401":
802 description: Unauthorized
803 content:
804 application/json:
805 schema:
806 $ref: '#/components/schemas/ErrorMessage'
807 example:
808 status: 401
809 message: Unauthorized error message
810 details: Unauthorized error details
811 "403":
812 description: Forbidden
813 content:
814 application/json:
815 schema:
816 $ref: '#/components/schemas/ErrorMessage'
817 example:
818 status: 403
819 message: Forbidden error message
820 details: Forbidden error details
821 "500":
822 description: Internal Server Error
823 content:
824 application/json:
825 schema:
826 $ref: '#/components/schemas/ErrorMessage'
827 example:
828 status: 500
829 message: Internal Server Error
830 details: Internal Server Error occurred
831 /v1/ch/{cm-handle}:
832 get:
833 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200834 - network-cm-proxy
DylanB95ESTe5573382022-01-27 17:12:52 +0000835 summary: Retrieve CM handle details
836 description: Retrieve CM handle details and properties by cm handle id
837 operationId: retrieveCmHandleDetailsById
838 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +0200839 - name: cm-handle
840 in: path
841 description: "The identifier for a network function, network element, subnetwork\
DylanB95ESTe5573382022-01-27 17:12:52 +0000842 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +0200843 required: true
844 schema:
845 type: string
846 example: my-cm-handle
DylanB95ESTe5573382022-01-27 17:12:52 +0000847 responses:
848 "200":
849 description: OK
850 content:
851 application/json:
852 schema:
853 $ref: '#/components/schemas/RestOutputCmHandle'
854 "400":
855 description: Bad Request
856 content:
857 application/json:
858 schema:
859 $ref: '#/components/schemas/ErrorMessage'
860 example:
861 status: 400 BAD_REQUEST
862 message: Bad request error message
863 details: Bad request error details
864 "401":
865 description: Unauthorized
866 content:
867 application/json:
868 schema:
869 $ref: '#/components/schemas/ErrorMessage'
870 example:
871 status: 401
872 message: Unauthorized error message
873 details: Unauthorized error details
emacleeafb17362022-09-02 14:40:17 +0100874 "404":
875 description: The specified resource was not found
876 content:
877 application/json:
878 schema:
879 $ref: '#/components/schemas/ErrorMessage'
880 example:
881 status: 400
882 message: Not found error message
883 details: Not found error details
884 "500":
885 description: Internal Server Error
886 content:
887 application/json:
888 schema:
889 $ref: '#/components/schemas/ErrorMessage'
890 example:
891 status: 500
892 message: Internal Server Error
893 details: Internal Server Error occurred
894 /v1/ch/{cm-handle}/properties:
895 get:
896 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200897 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +0100898 summary: Get CM handle properties
899 description: Get CM handle properties by cm handle id
900 operationId: getCmHandlePublicPropertiesByCmHandleId
901 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +0200902 - name: cm-handle
903 in: path
904 description: "The identifier for a network function, network element, subnetwork\
emacleeafb17362022-09-02 14:40:17 +0100905 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +0200906 required: true
907 schema:
908 type: string
909 example: my-cm-handle
emacleeafb17362022-09-02 14:40:17 +0100910 responses:
911 "200":
912 description: OK
913 content:
914 application/json:
915 schema:
916 $ref: '#/components/schemas/RestOutputCmHandlePublicProperties'
917 "400":
918 description: Bad Request
919 content:
920 application/json:
921 schema:
922 $ref: '#/components/schemas/ErrorMessage'
923 example:
924 status: 400 BAD_REQUEST
925 message: Bad request error message
926 details: Bad request error details
927 "401":
928 description: Unauthorized
929 content:
930 application/json:
931 schema:
932 $ref: '#/components/schemas/ErrorMessage'
933 example:
934 status: 401
935 message: Unauthorized error message
936 details: Unauthorized error details
937 "404":
938 description: The specified resource was not found
939 content:
940 application/json:
941 schema:
942 $ref: '#/components/schemas/ErrorMessage'
943 example:
944 status: 400
945 message: Not found error message
946 details: Not found error details
947 "500":
948 description: Internal Server Error
949 content:
950 application/json:
951 schema:
952 $ref: '#/components/schemas/ErrorMessage'
953 example:
954 status: 500
955 message: Internal Server Error
956 details: Internal Server Error occurred
957 /v1/ch/id-searches:
958 post:
959 tags:
bmiklos96d54ef2022-09-07 16:11:57 +0200960 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +0100961 summary: Execute cm handle query upon a given set of query parameters
962 description: Execute cm handle query search and return a list of cm handle ids.
963 Any number of conditions can be applied. To be included in the result a cm-handle
964 must fulfill ALL the conditions. An empty collection will be returned in the
965 case that the cm handle does not match a condition. For more on cm handle
966 query search please refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/ncmp-cmhandle-querying.html">cm
967 handle query search Read the Docs</a>.<br/>By supplying a CPS Path it is possible
968 to query on any data related to the cm handle. For more on CPS Path please
969 refer to <a href="https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html">CPS
970 Path Read the Docs</a>. The cm handle ancestor is automatically returned for
971 this query.
972 operationId: searchCmHandleIds
973 requestBody:
974 content:
975 application/json:
976 schema:
977 $ref: '#/components/schemas/CmHandleQueryParameters'
978 examples:
979 Cm handle properties query:
980 $ref: '#/components/examples/pubPropCmHandleQueryParameters'
981 Cm handle modules query:
982 $ref: '#/components/examples/modulesCmHandleQueryParameters'
983 All cm handle query parameters:
984 $ref: '#/components/examples/allCmHandleQueryParameters'
985 Cm handle with CPS path state query:
986 $ref: '#/components/examples/cpsPathCmHandleStateQueryParameters'
987 Cm handle with data sync flag query:
988 $ref: '#/components/examples/cpsPathCmHandleDataSyncQueryParameters'
989 required: true
990 responses:
991 "200":
992 description: OK
993 content:
994 application/json:
995 schema:
996 type: array
997 items:
998 type: string
999 "400":
1000 description: Bad Request
1001 content:
1002 application/json:
1003 schema:
1004 $ref: '#/components/schemas/ErrorMessage'
1005 example:
1006 status: 400 BAD_REQUEST
1007 message: Bad request error message
1008 details: Bad request error details
1009 "401":
1010 description: Unauthorized
1011 content:
1012 application/json:
1013 schema:
1014 $ref: '#/components/schemas/ErrorMessage'
1015 example:
1016 status: 401
1017 message: Unauthorized error message
1018 details: Unauthorized error details
DylanB95ESTe5573382022-01-27 17:12:52 +00001019 "403":
1020 description: Forbidden
1021 content:
1022 application/json:
1023 schema:
1024 $ref: '#/components/schemas/ErrorMessage'
1025 example:
1026 status: 403
1027 message: Forbidden error message
1028 details: Forbidden error details
DylanB95ESTfee86992021-09-23 12:22:55 +01001029 "404":
1030 description: The specified resource was not found
1031 content:
1032 application/json:
1033 schema:
1034 $ref: '#/components/schemas/ErrorMessage'
DylanB95ESTe5573382022-01-27 17:12:52 +00001035 example:
1036 status: 400
1037 message: Not found error message
1038 details: Not found error details
1039 "500":
1040 description: Internal Server Error
1041 content:
1042 application/json:
1043 schema:
1044 $ref: '#/components/schemas/ErrorMessage'
1045 example:
1046 status: 500
1047 message: Internal Server Error
1048 details: Internal Server Error occurred
emacleeafb17362022-09-02 14:40:17 +01001049 /v1/ch/{cm-handle}/state:
1050 get:
1051 tags:
bmiklos96d54ef2022-09-07 16:11:57 +02001052 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +01001053 summary: Get CM handle state
1054 description: Get CM handle state by cm handle id
1055 operationId: getCmHandleStateByCmHandleId
1056 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +02001057 - name: cm-handle
1058 in: path
1059 description: "The identifier for a network function, network element, subnetwork\
emacleeafb17362022-09-02 14:40:17 +01001060 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +02001061 required: true
1062 schema:
1063 type: string
1064 example: my-cm-handle
emacleeafb17362022-09-02 14:40:17 +01001065 responses:
1066 "200":
1067 description: OK
1068 content:
1069 application/json:
1070 schema:
1071 $ref: '#/components/schemas/RestOutputCmHandleCompositeState'
1072 "400":
1073 description: Bad Request
1074 content:
1075 application/json:
1076 schema:
1077 $ref: '#/components/schemas/ErrorMessage'
1078 example:
1079 status: 400 BAD_REQUEST
1080 message: Bad request error message
1081 details: Bad request error details
1082 "401":
1083 description: Unauthorized
1084 content:
1085 application/json:
1086 schema:
1087 $ref: '#/components/schemas/ErrorMessage'
1088 example:
1089 status: 401
1090 message: Unauthorized error message
1091 details: Unauthorized error details
1092 "404":
1093 description: The specified resource was not found
1094 content:
1095 application/json:
1096 schema:
1097 $ref: '#/components/schemas/ErrorMessage'
1098 example:
1099 status: 400
1100 message: Not found error message
1101 details: Not found error details
1102 "500":
1103 description: Internal Server Error
1104 content:
1105 application/json:
1106 schema:
1107 $ref: '#/components/schemas/ErrorMessage'
1108 example:
1109 status: 500
1110 message: Internal Server Error
1111 details: Internal Server Error occurred
1112 /v1/ch/{cm-handle}/data-sync:
1113 put:
1114 tags:
bmiklos96d54ef2022-09-07 16:11:57 +02001115 - network-cm-proxy
emacleeafb17362022-09-02 14:40:17 +01001116 summary: Set the Data Sync Enabled Flag
1117 description: Set the data sync enabled flag to true or false for a specified
1118 Cm-Handle. This will in turn set the data sync state to UNSYNCHRONIZED and
1119 NONE_REQUESTED respectfully.
1120 operationId: setDataSyncEnabledFlagForCmHandle
1121 parameters:
bmiklos96d54ef2022-09-07 16:11:57 +02001122 - name: cm-handle
1123 in: path
1124 description: "The identifier for a network function, network element, subnetwork\
emacleeafb17362022-09-02 14:40:17 +01001125 \ or any other cm object by managed Network CM Proxy"
bmiklos96d54ef2022-09-07 16:11:57 +02001126 required: true
1127 schema:
1128 type: string
1129 example: my-cm-handle
1130 - name: dataSyncEnabled
1131 in: query
1132 description: Is used to enable or disable the data synchronization flag
1133 required: true
1134 schema:
1135 type: boolean
1136 example: true
emacleeafb17362022-09-02 14:40:17 +01001137 responses:
1138 "200":
1139 description: OK
1140 content:
1141 application/json:
1142 schema:
1143 type: object
1144 "400":
1145 description: Bad Request
1146 content:
1147 application/json:
1148 schema:
1149 $ref: '#/components/schemas/ErrorMessage'
1150 example:
1151 status: 400 BAD_REQUEST
1152 message: Bad request error message
1153 details: Bad request error details
1154 "401":
1155 description: Unauthorized
1156 content:
1157 application/json:
1158 schema:
1159 $ref: '#/components/schemas/ErrorMessage'
1160 example:
1161 status: 401
1162 message: Unauthorized error message
1163 details: Unauthorized error details
1164 "403":
1165 description: Forbidden
1166 content:
1167 application/json:
1168 schema:
1169 $ref: '#/components/schemas/ErrorMessage'
1170 example:
1171 status: 403
1172 message: Forbidden error message
1173 details: Forbidden error details
1174 "500":
1175 description: Internal Server Error
1176 content:
1177 application/json:
1178 schema:
1179 $ref: '#/components/schemas/ErrorMessage'
1180 example:
1181 status: 500
1182 message: Internal Server Error
1183 details: Internal Server Error occurred
1184 "502":
1185 description: Bad Gateway
1186 content:
1187 application/json:
1188 schema:
1189 $ref: '#/components/schemas/DmiErrorMessage'
1190 example:
1191 message: Bad Gateway Error Message NCMP
1192 dmi-response:
1193 http-code: 400
1194 body: Bad Request
DylanB95ESTfee86992021-09-23 12:22:55 +01001195components:
1196 schemas:
1197 ErrorMessage:
1198 title: Error
1199 type: object
1200 properties:
1201 status:
1202 type: string
1203 message:
1204 type: string
1205 details:
1206 type: string
mpriyank93afc1e2022-03-28 15:47:47 +05301207 DmiErrorMessage:
1208 title: DMI Error Message
1209 type: object
1210 properties:
1211 message:
1212 type: string
emacleeafb17362022-09-02 14:40:17 +01001213 example: Bad Gateway Error Message NCMP
mpriyank93afc1e2022-03-28 15:47:47 +05301214 dmi-response:
emacleeafb17362022-09-02 14:40:17 +01001215 $ref: '#/components/schemas/DmiErrorMessage_dmiresponse'
Bruno Sakotoa1129b62022-03-15 08:09:07 -04001216 RestModuleReference:
DylanB95ESTe5573382022-01-27 17:12:52 +00001217 title: Module reference details
1218 type: object
1219 properties:
1220 moduleName:
1221 type: string
1222 example: my-module-name
1223 revision:
1224 type: string
1225 example: my-module-revision
emacleeafb17362022-09-02 14:40:17 +01001226 RestModuleDefinition:
1227 title: Module definitions
DylanB95ESTe5573382022-01-27 17:12:52 +00001228 type: object
1229 properties:
emacleeafb17362022-09-02 14:40:17 +01001230 moduleName:
1231 type: string
1232 example: my-module-name
1233 revision:
1234 type: string
1235 example: 2020-09-15T00:00:00.000+00:00
1236 content:
1237 type: string
1238 example: "module stores {\n yang-version 1.1;\n namespace \"org:onap:ccsdk:sample\"\
1239 ;\n prefix book-store;\n revision \"2020-09-15\" {\n description\n\
1240 \ \"Sample Model\";\n }\n}\n"
1241 CmHandleQueryParameters:
1242 title: Cm Handle query parameters for executing cm handle search
1243 type: object
1244 properties:
1245 cmHandleQueryParameters:
1246 type: array
1247 items:
1248 $ref: '#/components/schemas/ConditionProperties'
DylanB95ESTe5573382022-01-27 17:12:52 +00001249 conditions:
emacleeafb17362022-09-02 14:40:17 +01001250 type: array
1251 description: "not necessary, it is just for backward compatibility"
1252 deprecated: true
1253 items:
1254 $ref: '#/components/schemas/OldConditionProperties'
DylanB95ESTe5573382022-01-27 17:12:52 +00001255 ConditionProperties:
1256 properties:
emacleeafb17362022-09-02 14:40:17 +01001257 conditionName:
1258 type: string
1259 conditionParameters:
1260 type: array
1261 items:
1262 type: object
1263 additionalProperties:
1264 type: string
1265 OldConditionProperties:
1266 properties:
DylanB95ESTe5573382022-01-27 17:12:52 +00001267 name:
1268 type: string
DylanB95ESTe5573382022-01-27 17:12:52 +00001269 conditionParameters:
emacleeafb17362022-09-02 14:40:17 +01001270 type: array
1271 items:
1272 $ref: '#/components/schemas/ModuleNameAsJsonObject'
1273 deprecated: true
DylanB95ESTe5573382022-01-27 17:12:52 +00001274 ModuleNameAsJsonObject:
1275 properties:
1276 moduleName:
1277 type: string
1278 example: my-module
DylanB95ESTe5573382022-01-27 17:12:52 +00001279 RestOutputCmHandle:
1280 title: CM handle Details
1281 type: object
1282 properties:
1283 cmHandle:
1284 type: string
1285 example: my-cm-handle1
1286 publicCmHandleProperties:
1287 $ref: '#/components/schemas/CmHandlePublicProperties'
emacleeafb17362022-09-02 14:40:17 +01001288 state:
1289 $ref: '#/components/schemas/CmHandleCompositeState'
DylanB95ESTe5573382022-01-27 17:12:52 +00001290 CmHandlePublicProperties:
1291 type: array
1292 items:
1293 type: object
1294 additionalProperties:
1295 type: string
1296 example: Book Type
emacleeafb17362022-09-02 14:40:17 +01001297 CmHandleCompositeState:
1298 type: object
1299 properties:
1300 cmHandleState:
1301 type: string
1302 example: ADVISED
1303 lockReason:
1304 $ref: '#/components/schemas/lock-reason'
1305 lastUpdateTime:
1306 type: string
1307 example: 2022-12-31T20:30:40.000+0000
1308 dataSyncEnabled:
1309 type: boolean
1310 example: false
1311 dataSyncState:
1312 $ref: '#/components/schemas/dataStores'
1313 lock-reason:
1314 type: object
1315 properties:
1316 reason:
1317 type: string
1318 example: LOCKED_MISBEHAVING
1319 details:
1320 type: string
1321 example: locked due to failure in module sync
1322 dataStores:
1323 type: object
1324 properties:
1325 operational:
1326 $ref: '#/components/schemas/sync-state'
1327 running:
1328 $ref: '#/components/schemas/sync-state'
1329 sync-state:
1330 type: object
1331 properties:
1332 syncState:
1333 type: string
1334 example: NONE_REQUESTED
1335 lastSyncTime:
1336 type: string
1337 example: 2022-12-31T20:30:40.000+0000
1338 RestOutputCmHandlePublicProperties:
1339 type: object
1340 properties:
1341 publicCmHandleProperties:
1342 $ref: '#/components/schemas/CmHandlePublicProperties'
1343 RestOutputCmHandleCompositeState:
1344 type: object
1345 properties:
1346 state:
1347 $ref: '#/components/schemas/CmHandleCompositeState'
1348 DmiErrorMessage_dmiresponse:
1349 type: object
1350 properties:
1351 http-code:
1352 type: integer
1353 example: 400
1354 body:
1355 type: string
1356 example: Bad Request
DylanB95ESTe5573382022-01-27 17:12:52 +00001357 examples:
1358 dataSampleResponse:
1359 summary: Sample response
1360 description: Sample response for selecting 'sample 1'.
1361 value:
1362 bookstore:
1363 categories:
bmiklos96d54ef2022-09-07 16:11:57 +02001364 - code: "01"
1365 books:
1366 - authors:
1367 - Iain M. Banks
1368 - Ursula K. Le Guin
1369 name: SciFi
1370 - code: "02"
1371 books:
1372 - authors:
1373 - Philip Pullman
1374 name: kids
DylanB95ESTe5573382022-01-27 17:12:52 +00001375 dataSampleRequest:
1376 summary: Sample request
1377 description: Sample request body
1378 value:
1379 test:bookstore:
1380 bookstore-name: Chapters
1381 categories:
bmiklos96d54ef2022-09-07 16:11:57 +02001382 - code: "01"
1383 name: SciFi
1384 books:
1385 - authors:
1386 - Iain M. Banks
1387 - Ursula K. Le Guin
1388 - code: "02"
1389 name: kids
1390 books:
1391 - authors:
1392 - Philip Pullman
DylanB95ESTe5573382022-01-27 17:12:52 +00001393 dataSamplePatchRequest:
1394 summary: Sample patch request
1395 description: Sample patch request body
1396 value:
1397 ietf-restconf:yang-patch:
1398 patch-id: patch-1
1399 edit:
bmiklos96d54ef2022-09-07 16:11:57 +02001400 - edit-id: edit1
1401 operation: merge
1402 target: /
1403 value:
1404 test:bookstore:
1405 bookstore-name: Chapters
1406 categories:
1407 - code: "01"
1408 name: Science
1409 books:
1410 - authors:
1411 - Author1
1412 - Author2
1413 - code: "02"
1414 name: Arts
1415 books:
1416 - authors:
1417 - Author3
1418 - edit-id: edit2
1419 operation: merge
1420 target: /
1421 value:
1422 test:bookstore:
1423 bookstore-name: Novels
1424 categories:
1425 - code: "03"
1426 name: History
1427 books:
1428 - authors:
1429 - Iain M. Banks
1430 - Ursula K. Le Guin
1431 - code: "04"
1432 name: Fiction
1433 books:
1434 - authors:
1435 - Philip Pullman
emacleeafb17362022-09-02 14:40:17 +01001436 pubPropCmHandleQueryParameters:
1437 value:
1438 cmHandleQueryParameters:
bmiklos96d54ef2022-09-07 16:11:57 +02001439 - conditionName: hasAllProperties
1440 conditionParameters:
1441 - Color: yellow
1442 - Shape: circle
1443 - Size: small
emacleeafb17362022-09-02 14:40:17 +01001444 modulesCmHandleQueryParameters:
1445 value:
1446 cmHandleQueryParameters:
bmiklos96d54ef2022-09-07 16:11:57 +02001447 - conditionName: hasAllModules
1448 conditionParameters:
1449 - moduleName: my-module-1
1450 - moduleName: my-module-2
1451 - moduleName: my-module-3
emacleeafb17362022-09-02 14:40:17 +01001452 allCmHandleQueryParameters:
1453 value:
1454 cmHandleQueryParameters:
bmiklos96d54ef2022-09-07 16:11:57 +02001455 - conditionName: hasAllModules
1456 conditionParameters:
1457 - moduleName: my-module-1
1458 - moduleName: my-module-2
1459 - moduleName: my-module-3
1460 - conditionName: hasAllProperties
1461 conditionParameters:
1462 - Color: yellow
1463 - Shape: circle
1464 - Size: small
1465 - conditionName: cmHandleWithCpsPath
1466 conditionParameters:
1467 - cpsPath: "//state[@cm-handle-state='ADVISED']"
emacleeafb17362022-09-02 14:40:17 +01001468 cpsPathCmHandleStateQueryParameters:
1469 value:
1470 cmHandleQueryParameters:
bmiklos96d54ef2022-09-07 16:11:57 +02001471 - conditionName: cmHandleWithCpsPath
1472 conditionParameters:
1473 - cpsPath: "//state[@cm-handle-state='LOCKED']"
emacleeafb17362022-09-02 14:40:17 +01001474 cpsPathCmHandleDataSyncQueryParameters:
1475 value:
1476 cmHandleQueryParameters:
bmiklos96d54ef2022-09-07 16:11:57 +02001477 - conditionName: cmHandleWithCpsPath
1478 conditionParameters:
1479 - cpsPath: "//state[@data-sync-enabled='true']"