4 email: onap-discuss@lists.onap.org
6 url: https://onap.readthedocs.io
7 description: Configuration Persistence Service is a Model Driven Generic Database
10 url: http://www.apache.org/licenses/LICENSE-2.0
11 title: ONAP Open API v3 Configuration Persistence Service
16 - description: cps Admin
18 - description: cps Data
20 - description: CPS Delta
26 description: Create a new dataspace
27 operationId: createDataspace
29 - description: dataspace-name
50 details: The provided request is not valid
52 $ref: '#/components/schemas/ErrorMessage'
53 description: Bad Request
59 message: Request Forbidden
60 details: This request is forbidden
62 $ref: '#/components/schemas/ErrorMessage'
63 description: Forbidden
69 message: Conflicting request
70 details: The request cannot be processed as the resource is in use.
72 $ref: '#/components/schemas/ErrorMessage'
79 message: Internal Server Error
80 details: Internal Server Error occurred
82 $ref: '#/components/schemas/ErrorMessage'
83 description: Internal Server Error
84 summary: Create a dataspace
87 /{apiVersion}/dataspaces:
89 description: Delete a dataspace
90 operationId: deleteDataspace
92 - description: apiVersion
102 - description: dataspace-name
107 example: my-dataspace
112 description: No Content
119 details: The provided request is not valid
121 $ref: '#/components/schemas/ErrorMessage'
122 description: Bad Request
128 message: Request Forbidden
129 details: This request is forbidden
131 $ref: '#/components/schemas/ErrorMessage'
132 description: Forbidden
138 message: Conflicting request
139 details: The request cannot be processed as the resource is in use.
141 $ref: '#/components/schemas/ErrorMessage'
142 description: Conflict
148 message: Internal Server Error
149 details: Internal Server Error occurred
151 $ref: '#/components/schemas/ErrorMessage'
152 description: Internal Server Error
153 summary: Delete a dataspace
158 description: Create a new dataspace
159 operationId: createDataspaceV2
161 - description: dataspace-name
166 example: my-dataspace
170 description: Created without response body
177 details: The provided request is not valid
179 $ref: '#/components/schemas/ErrorMessage'
180 description: Bad Request
186 message: Request Forbidden
187 details: This request is forbidden
189 $ref: '#/components/schemas/ErrorMessage'
190 description: Forbidden
196 message: Conflicting request
197 details: The request cannot be processed as the resource is in use.
199 $ref: '#/components/schemas/ErrorMessage'
200 description: Conflict
206 message: Internal Server Error
207 details: Internal Server Error occurred
209 $ref: '#/components/schemas/ErrorMessage'
210 description: Internal Server Error
211 summary: Create a dataspace
214 /{apiVersion}/admin/dataspaces:
216 description: Read all dataspaces
217 operationId: getAllDataspaces
219 - description: apiVersion
235 $ref: '#/components/schemas/DataspaceDetails'
244 details: The provided request is not valid
246 $ref: '#/components/schemas/ErrorMessage'
247 description: Bad Request
253 message: Request Forbidden
254 details: This request is forbidden
256 $ref: '#/components/schemas/ErrorMessage'
257 description: Forbidden
263 message: Internal Server Error
264 details: Internal Server Error occurred
266 $ref: '#/components/schemas/ErrorMessage'
267 description: Internal Server Error
268 summary: Get all dataspaces
271 /{apiVersion}/admin/dataspaces/{dataspace-name}:
273 description: Read a dataspace given a dataspace name
274 operationId: getDataspace
276 - description: apiVersion
286 - description: dataspace-name
291 example: my-dataspace
298 $ref: '#/components/schemas/DataspaceDetails'
306 details: The provided request is not valid
308 $ref: '#/components/schemas/ErrorMessage'
309 description: Bad Request
315 message: Request Forbidden
316 details: This request is forbidden
318 $ref: '#/components/schemas/ErrorMessage'
319 description: Forbidden
325 message: Internal Server Error
326 details: Internal Server Error occurred
328 $ref: '#/components/schemas/ErrorMessage'
329 description: Internal Server Error
330 summary: Get a dataspace
333 /{apiVersion}/admin/dataspaces/{dataspace-name}/actions/clean:
335 description: Clean the dataspace (remove orphaned schema sets and modules)
336 operationId: cleanDataspace
338 - description: apiVersion
348 - description: dataspace-name
353 example: my-dataspace
358 description: No Content
365 details: The provided request is not valid
367 $ref: '#/components/schemas/ErrorMessage'
368 description: Bad Request
374 message: Request Forbidden
375 details: This request is forbidden
377 $ref: '#/components/schemas/ErrorMessage'
378 description: Forbidden
384 message: Internal Server Error
385 details: Internal Server Error occurred
387 $ref: '#/components/schemas/ErrorMessage'
388 description: Internal Server Error
389 summary: Clean the dataspace
392 /v1/dataspaces/{dataspace-name}/anchors:
395 description: Create a new anchor in the given dataspace
396 operationId: createAnchor
398 - description: dataspace-name
403 example: my-dataspace
405 - description: schema-set-name
407 name: schema-set-name
410 example: my-schema-set
412 - description: anchor-name
433 details: The provided request is not valid
435 $ref: '#/components/schemas/ErrorMessage'
436 description: Bad Request
442 message: Request Forbidden
443 details: This request is forbidden
445 $ref: '#/components/schemas/ErrorMessage'
446 description: Forbidden
452 message: Conflicting request
453 details: The request cannot be processed as the resource is in use.
455 $ref: '#/components/schemas/ErrorMessage'
456 description: Conflict
462 message: Internal Server Error
463 details: Internal Server Error occurred
465 $ref: '#/components/schemas/ErrorMessage'
466 description: Internal Server Error
467 summary: Create an anchor
470 /v2/dataspaces/{dataspace-name}/anchors:
472 description: Create a new anchor in the given dataspace
473 operationId: createAnchorV2
475 - description: dataspace-name
480 example: my-dataspace
482 - description: schema-set-name
484 name: schema-set-name
487 example: my-schema-set
489 - description: anchor-name
498 description: Created without response body
505 details: The provided request is not valid
507 $ref: '#/components/schemas/ErrorMessage'
508 description: Bad Request
514 message: Request Forbidden
515 details: This request is forbidden
517 $ref: '#/components/schemas/ErrorMessage'
518 description: Forbidden
524 message: Conflicting request
525 details: The request cannot be processed as the resource is in use.
527 $ref: '#/components/schemas/ErrorMessage'
528 description: Conflict
534 message: Internal Server Error
535 details: Internal Server Error occurred
537 $ref: '#/components/schemas/ErrorMessage'
538 description: Internal Server Error
539 summary: Create an anchor
542 /{apiVersion}/dataspaces/{dataspace-name}/anchors:
544 description: "Read all anchors, given a dataspace"
545 operationId: getAnchors
547 - description: apiVersion
557 - description: dataspace-name
562 example: my-dataspace
570 $ref: '#/components/schemas/AnchorDetails'
579 details: The provided request is not valid
581 $ref: '#/components/schemas/ErrorMessage'
582 description: Bad Request
588 message: Request Forbidden
589 details: This request is forbidden
591 $ref: '#/components/schemas/ErrorMessage'
592 description: Forbidden
598 message: Internal Server Error
599 details: Internal Server Error occurred
601 $ref: '#/components/schemas/ErrorMessage'
602 description: Internal Server Error
606 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}:
608 description: Delete an anchor given an anchor name and a dataspace
609 operationId: deleteAnchor
611 - description: apiVersion
621 - description: dataspace-name
626 example: my-dataspace
628 - description: anchor-name
638 description: No Content
645 details: The provided request is not valid
647 $ref: '#/components/schemas/ErrorMessage'
648 description: Bad Request
654 message: Request Forbidden
655 details: This request is forbidden
657 $ref: '#/components/schemas/ErrorMessage'
658 description: Forbidden
664 message: Internal Server Error
665 details: Internal Server Error occurred
667 $ref: '#/components/schemas/ErrorMessage'
668 description: Internal Server Error
669 summary: Delete an anchor
673 description: Read an anchor given an anchor name and a dataspace
674 operationId: getAnchor
676 - description: apiVersion
686 - description: dataspace-name
691 example: my-dataspace
693 - description: anchor-name
705 $ref: '#/components/schemas/AnchorDetails'
713 details: The provided request is not valid
715 $ref: '#/components/schemas/ErrorMessage'
716 description: Bad Request
722 message: Request Forbidden
723 details: This request is forbidden
725 $ref: '#/components/schemas/ErrorMessage'
726 description: Forbidden
732 message: Internal Server Error
733 details: Internal Server Error occurred
735 $ref: '#/components/schemas/ErrorMessage'
736 description: Internal Server Error
737 summary: Get an anchor
740 /v1/dataspaces/{dataspace-name}/schema-sets:
743 description: Create a new schema set in the given dataspace
744 operationId: createSchemaSet
746 - description: dataspace-name
751 example: my-dataspace
753 - description: schema-set-name
755 name: schema-set-name
758 example: my-schema-set
764 $ref: '#/components/schemas/MultipartFile'
780 details: The provided request is not valid
782 $ref: '#/components/schemas/ErrorMessage'
783 description: Bad Request
789 message: Request Forbidden
790 details: This request is forbidden
792 $ref: '#/components/schemas/ErrorMessage'
793 description: Forbidden
799 message: Conflicting request
800 details: The request cannot be processed as the resource is in use.
802 $ref: '#/components/schemas/ErrorMessage'
803 description: Conflict
809 message: Internal Server Error
810 details: Internal Server Error occurred
812 $ref: '#/components/schemas/ErrorMessage'
813 description: Internal Server Error
814 summary: Create a schema set
817 /v2/dataspaces/{dataspace-name}/schema-sets:
819 description: Create a new schema set in the given dataspace
820 operationId: createSchemaSetV2
822 - description: dataspace-name
827 example: my-dataspace
829 - description: schema-set-name
831 name: schema-set-name
834 example: my-schema-set
840 $ref: '#/components/schemas/MultipartFile'
844 description: Created without response body
851 details: The provided request is not valid
853 $ref: '#/components/schemas/ErrorMessage'
854 description: Bad Request
860 message: Request Forbidden
861 details: This request is forbidden
863 $ref: '#/components/schemas/ErrorMessage'
864 description: Forbidden
870 message: Conflicting request
871 details: The request cannot be processed as the resource is in use.
873 $ref: '#/components/schemas/ErrorMessage'
874 description: Conflict
880 message: Internal Server Error
881 details: Internal Server Error occurred
883 $ref: '#/components/schemas/ErrorMessage'
884 description: Internal Server Error
885 summary: Create a schema set
888 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets:
890 description: "Read all schema sets, given a dataspace"
891 operationId: getSchemaSets
893 - description: apiVersion
903 - description: dataspace-name
908 example: my-dataspace
916 $ref: '#/components/schemas/SchemaSetDetails'
925 details: The provided request is not valid
927 $ref: '#/components/schemas/ErrorMessage'
928 description: Bad Request
934 message: Request Forbidden
935 details: This request is forbidden
937 $ref: '#/components/schemas/ErrorMessage'
938 description: Forbidden
944 message: Internal Server Error
945 details: Internal Server Error occurred
947 $ref: '#/components/schemas/ErrorMessage'
948 description: Internal Server Error
949 summary: Get schema sets
952 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets/{schema-set-name}:
954 description: Delete a schema set given a schema set name and a dataspace
955 operationId: deleteSchemaSet
957 - description: apiVersion
967 - description: dataspace-name
972 example: my-dataspace
974 - description: schema-set-name
976 name: schema-set-name
979 example: my-schema-set
984 description: No Content
991 details: The provided request is not valid
993 $ref: '#/components/schemas/ErrorMessage'
994 description: Bad Request
1000 message: Request Forbidden
1001 details: This request is forbidden
1003 $ref: '#/components/schemas/ErrorMessage'
1004 description: Forbidden
1010 message: Conflicting request
1011 details: The request cannot be processed as the resource is in use.
1013 $ref: '#/components/schemas/ErrorMessage'
1014 description: Conflict
1020 message: Internal Server Error
1021 details: Internal Server Error occurred
1023 $ref: '#/components/schemas/ErrorMessage'
1024 description: Internal Server Error
1025 summary: Delete a schema set
1029 description: Read a schema set given a schema set name and a dataspace
1030 operationId: getSchemaSet
1032 - description: apiVersion
1042 - description: dataspace-name
1044 name: dataspace-name
1047 example: my-dataspace
1049 - description: schema-set-name
1051 name: schema-set-name
1054 example: my-schema-set
1061 $ref: '#/components/schemas/SchemaSetDetails'
1068 message: Bad Request
1069 details: The provided request is not valid
1071 $ref: '#/components/schemas/ErrorMessage'
1072 description: Bad Request
1078 message: Request Forbidden
1079 details: This request is forbidden
1081 $ref: '#/components/schemas/ErrorMessage'
1082 description: Forbidden
1088 message: Internal Server Error
1089 details: Internal Server Error occurred
1091 $ref: '#/components/schemas/ErrorMessage'
1092 description: Internal Server Error
1093 summary: Get a schema set
1096 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
1099 description: Get a node with an option to retrieve all the children for a given
1100 anchor and dataspace
1101 operationId: getNodeByDataspaceAndAnchor
1103 - description: dataspace-name
1105 name: dataspace-name
1108 example: my-dataspace
1110 - description: anchor-name
1117 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1120 value: /shops/bookstore
1121 list attributes xpath:
1122 value: "/shops/bookstore/categories[@code=1]"
1129 - description: include-descendants
1131 name: include-descendants
1143 $ref: '#/components/examples/dataSample'
1152 message: Bad Request
1153 details: The provided request is not valid
1155 $ref: '#/components/schemas/ErrorMessage'
1156 description: Bad Request
1162 message: Request Forbidden
1163 details: This request is forbidden
1165 $ref: '#/components/schemas/ErrorMessage'
1166 description: Forbidden
1172 message: Internal Server Error
1173 details: Internal Server Error occurred
1175 $ref: '#/components/schemas/ErrorMessage'
1176 description: Internal Server Error
1180 x-codegen-request-body-name: xpath
1181 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
1184 description: Get a node with an option to retrieve all the children for a given
1185 anchor and dataspace
1186 operationId: getNodeByDataspaceAndAnchorV2
1188 - description: dataspace-name
1190 name: dataspace-name
1193 example: my-dataspace
1195 - description: anchor-name
1202 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1205 value: /shops/bookstore
1206 list attributes xpath:
1207 value: "/shops/bookstore/categories[@code=1]"
1214 - description: "Number of descendants to query. Allowed values are 'none', 'all',\
1215 \ 'direct', 1 (for direct), -1 (for all), 0 (for none) and any positive\
1224 - description: Content type in header
1229 default: application/json
1240 $ref: '#/components/examples/dataSample'
1246 $ref: '#/components/examples/dataSampleXml'
1257 message: Bad Request
1258 details: The provided request is not valid
1260 $ref: '#/components/schemas/ErrorMessage'
1261 description: Bad Request
1267 message: Request Forbidden
1268 details: This request is forbidden
1270 $ref: '#/components/schemas/ErrorMessage'
1271 description: Forbidden
1277 message: Internal Server Error
1278 details: Internal Server Error occurred
1280 $ref: '#/components/schemas/ErrorMessage'
1281 description: Internal Server Error
1285 x-codegen-request-body-name: xpath
1286 /v3/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
1288 description: Get a node with an option to retrieve all the children for a given
1289 anchor and dataspace
1290 operationId: getNodeByDataspaceAndAnchorV3
1292 - description: dataspace-name
1294 name: dataspace-name
1297 example: my-dataspace
1299 - description: anchor-name
1306 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1309 value: /shops/bookstore
1310 list attributes xpath:
1311 value: "/shops/bookstore/categories[@code=1]"
1318 - description: "Number of descendants to query. Allowed values are 'none', 'all',\
1319 \ 'direct', 1 (for direct), -1 (for all), 0 (for none) and any positive\
1328 - description: Content type in header
1333 default: application/json
1344 $ref: '#/components/examples/dataSampleForV3'
1350 $ref: '#/components/examples/dataSampleXmlForV3'
1361 message: Bad Request
1362 details: The provided request is not valid
1364 $ref: '#/components/schemas/ErrorMessage'
1365 description: Bad Request
1371 message: Request Forbidden
1372 details: This request is forbidden
1374 $ref: '#/components/schemas/ErrorMessage'
1375 description: Forbidden
1381 message: Internal Server Error
1382 details: Internal Server Error occurred
1384 $ref: '#/components/schemas/ErrorMessage'
1385 description: Internal Server Error
1389 x-codegen-request-body-name: xpath
1390 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes:
1392 description: Delete a datanode for a given dataspace and anchor given a node
1394 operationId: deleteDataNode
1396 - description: apiVersion
1406 - description: dataspace-name
1408 name: dataspace-name
1411 example: my-dataspace
1413 - description: anchor-name
1420 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1423 value: /shops/bookstore
1424 list attributes xpath:
1425 value: "/shops/bookstore/categories[@code=1]"
1432 - description: observed-timestamp
1434 name: observed-timestamp
1437 example: 2021-03-21T00:10:34.030-0100
1442 description: No Content
1448 message: Bad Request
1449 details: The provided request is not valid
1451 $ref: '#/components/schemas/ErrorMessage'
1452 description: Bad Request
1458 message: Request Forbidden
1459 details: This request is forbidden
1461 $ref: '#/components/schemas/ErrorMessage'
1462 description: Forbidden
1468 message: Internal Server Error
1469 details: Internal Server Error occurred
1471 $ref: '#/components/schemas/ErrorMessage'
1472 description: Internal Server Error
1473 summary: Delete a data node
1477 description: Update a data node leaves for a given dataspace and anchor and
1478 a parent node xpath. This operation is currently supported for one top level
1480 operationId: updateNodeLeaves
1482 - description: apiVersion
1492 - description: dataspace-name
1494 name: dataspace-name
1497 example: my-dataspace
1499 - description: anchor-name
1506 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1509 value: /shops/bookstore
1510 list attributes xpath:
1511 value: "/shops/bookstore/categories[@code=1]"
1518 - description: "Boolean flag to validate data, without persisting it. Default\
1527 - description: observed-timestamp
1529 name: observed-timestamp
1532 example: 2021-03-21T00:10:34.030-0100
1534 - description: Content type in header
1539 default: application/json
1549 $ref: '#/components/examples/dataSample'
1555 $ref: '#/components/examples/dataSampleXml'
1576 message: Bad Request
1577 details: The provided request is not valid
1579 $ref: '#/components/schemas/ErrorMessage'
1580 description: Bad Request
1586 message: Request Forbidden
1587 details: This request is forbidden
1589 $ref: '#/components/schemas/ErrorMessage'
1590 description: Forbidden
1596 message: Internal Server Error
1597 details: Internal Server Error occurred
1599 $ref: '#/components/schemas/ErrorMessage'
1600 description: Internal Server Error
1601 summary: Update node leaves
1605 description: Create a node for a given anchor and dataspace
1606 operationId: createNode
1608 - description: apiVersion
1618 - description: dataspace-name
1620 name: dataspace-name
1623 example: my-dataspace
1625 - description: anchor-name
1632 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1635 value: /shops/bookstore
1636 list attributes xpath:
1637 value: "/shops/bookstore/categories[@code=1]"
1644 - description: "Boolean flag to validate data, without persisting it. Default\
1653 - description: observed-timestamp
1655 name: observed-timestamp
1658 example: 2021-03-21T00:10:34.030-0100
1660 - description: Content type in header
1665 default: application/json
1675 $ref: '#/components/examples/dataSample'
1681 $ref: '#/components/examples/dataSampleXml'
1692 example: my-resource
1694 description: Created
1700 message: Bad Request
1701 details: The provided request is not valid
1703 $ref: '#/components/schemas/ErrorMessage'
1704 description: Bad Request
1710 message: Request Forbidden
1711 details: This request is forbidden
1713 $ref: '#/components/schemas/ErrorMessage'
1714 description: Forbidden
1720 message: Conflicting request
1721 details: The request cannot be processed as the resource is in use.
1723 $ref: '#/components/schemas/ErrorMessage'
1724 description: Conflict
1730 message: Internal Server Error
1731 details: Internal Server Error occurred
1733 $ref: '#/components/schemas/ErrorMessage'
1734 description: Internal Server Error
1735 summary: Create a node
1739 description: "Replace a node with descendants for a given dataspace, anchor\
1740 \ and a parent node xpath"
1741 operationId: replaceNode
1743 - description: apiVersion
1753 - description: dataspace-name
1755 name: dataspace-name
1758 example: my-dataspace
1760 - description: anchor-name
1767 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1770 value: /shops/bookstore
1771 list attributes xpath:
1772 value: "/shops/bookstore/categories[@code=1]"
1779 - description: "Boolean flag to validate data, without persisting it. Default\
1788 - description: observed-timestamp
1790 name: observed-timestamp
1793 example: 2021-03-21T00:10:34.030-0100
1795 - description: Content type in header
1800 default: application/json
1810 $ref: '#/components/examples/dataSample'
1816 $ref: '#/components/examples/dataSampleXml'
1837 message: Bad Request
1838 details: The provided request is not valid
1840 $ref: '#/components/schemas/ErrorMessage'
1841 description: Bad Request
1847 message: Request Forbidden
1848 details: This request is forbidden
1850 $ref: '#/components/schemas/ErrorMessage'
1851 description: Forbidden
1857 message: Internal Server Error
1858 details: Internal Server Error occurred
1860 $ref: '#/components/schemas/ErrorMessage'
1861 description: Internal Server Error
1862 summary: Replace a node with descendants
1865 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
1868 description: Delete one or all list element(s) for a given anchor and dataspace
1869 operationId: deleteListOrListElement
1871 - description: dataspace-name
1873 name: dataspace-name
1876 example: my-dataspace
1878 - description: anchor-name
1885 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1888 value: /shops/bookstore
1889 list attributes xpath:
1890 value: "/shops/bookstore/categories[@code=1]"
1896 - description: observed-timestamp
1898 name: observed-timestamp
1901 example: 2021-03-21T00:10:34.030-0100
1906 description: No Content
1912 message: Bad Request
1913 details: The provided request is not valid
1915 $ref: '#/components/schemas/ErrorMessage'
1916 description: Bad Request
1922 message: Request Forbidden
1923 details: This request is forbidden
1925 $ref: '#/components/schemas/ErrorMessage'
1926 description: Forbidden
1932 message: Internal Server Error
1933 details: Internal Server Error occurred
1935 $ref: '#/components/schemas/ErrorMessage'
1936 description: Internal Server Error
1937 summary: Delete one or all list element(s)
1940 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
1942 description: Add list element(s) to a list for a given anchor and dataspace
1943 operationId: addListElements
1945 - description: apiVersion
1955 - description: dataspace-name
1957 name: dataspace-name
1960 example: my-dataspace
1962 - description: anchor-name
1969 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1972 value: /shops/bookstore
1973 list attributes xpath:
1974 value: "/shops/bookstore/categories[@code=1]"
1980 - description: "Boolean flag to validate data, without persisting it. Default\
1989 - description: observed-timestamp
1991 name: observed-timestamp
1994 example: 2021-03-21T00:10:34.030-0100
1996 - description: Content type in header
2001 default: application/json
2011 $ref: '#/components/examples/dataSample'
2017 $ref: '#/components/examples/dataSampleXml'
2028 example: my-resource
2030 description: Created
2036 message: Bad Request
2037 details: The provided request is not valid
2039 $ref: '#/components/schemas/ErrorMessage'
2040 description: Bad Request
2046 message: Request Forbidden
2047 details: This request is forbidden
2049 $ref: '#/components/schemas/ErrorMessage'
2050 description: Forbidden
2056 message: Internal Server Error
2057 details: Internal Server Error occurred
2059 $ref: '#/components/schemas/ErrorMessage'
2060 description: Internal Server Error
2061 summary: Add list element(s)
2065 description: "Replace list content under a given parent, anchor and dataspace"
2066 operationId: replaceListContent
2068 - description: apiVersion
2078 - description: dataspace-name
2080 name: dataspace-name
2083 example: my-dataspace
2085 - description: anchor-name
2092 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
2095 value: /shops/bookstore
2096 list attributes xpath:
2097 value: "/shops/bookstore/categories[@code=1]"
2103 - description: "Boolean flag to validate data, without persisting it. Default\
2112 - description: observed-timestamp
2114 name: observed-timestamp
2117 example: 2021-03-21T00:10:34.030-0100
2119 - description: Content type in header
2124 default: application/json
2134 $ref: '#/components/examples/dataSample'
2140 $ref: '#/components/examples/dataSampleXml'
2161 message: Bad Request
2162 details: The provided request is not valid
2164 $ref: '#/components/schemas/ErrorMessage'
2165 description: Bad Request
2171 message: Request Forbidden
2172 details: This request is forbidden
2174 $ref: '#/components/schemas/ErrorMessage'
2175 description: Forbidden
2181 message: Internal Server Error
2182 details: Internal Server Error occurred
2184 $ref: '#/components/schemas/ErrorMessage'
2185 description: Internal Server Error
2186 summary: Replace list content
2189 /v2/dataspaces/{dataspace-name}/anchors/{source-anchor-name}/delta:
2191 description: Get delta between two anchors within a given dataspace
2192 operationId: getDeltaByDataspaceAndAnchors
2194 - description: dataspace-name
2196 name: dataspace-name
2199 example: my-dataspace
2201 - description: source-anchor-name
2203 name: source-anchor-name
2208 - description: target-anchor-name
2210 name: target-anchor-name
2215 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
2218 value: /shops/bookstore
2219 list attributes xpath:
2220 value: "/shops/bookstore/categories[@code=1]"
2227 - description: "Number of descendants to query. Allowed values are 'none', 'all',\
2228 \ 'direct', 1 (for direct), -1 (for all), 0 (for none) and any positive\
2237 - description: Boolean flag to enable or disable grouping of data nodes. Enabling
2238 it generates a condensed delta report.
2240 name: grouping-enabled
2252 $ref: '#/components/examples/deltaReportSample'
2261 message: Bad Request
2262 details: The provided request is not valid
2264 $ref: '#/components/schemas/ErrorMessage'
2265 description: Bad Request
2271 message: Request Forbidden
2272 details: This request is forbidden
2274 $ref: '#/components/schemas/ErrorMessage'
2275 description: Forbidden
2281 message: Internal Server Error
2282 details: Internal Server Error occurred
2284 $ref: '#/components/schemas/ErrorMessage'
2285 description: Internal Server Error
2286 summary: Get delta between anchors in the same dataspace
2289 x-codegen-request-body-name: xpath
2291 description: Get delta between an anchor in a dataspace and JSON payload
2292 operationId: getDeltaByDataspaceAnchorAndPayload
2294 - description: dataspace-name
2296 name: dataspace-name
2299 example: my-dataspace
2301 - description: source-anchor-name
2303 name: source-anchor-name
2308 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
2311 value: /shops/bookstore
2312 list attributes xpath:
2313 value: "/shops/bookstore/categories[@code=1]"
2320 - description: Boolean flag to enable or disable grouping of data nodes. Enabling
2321 it generates a condensed delta report.
2323 name: grouping-enabled
2331 multipart/form-data:
2333 $ref: '#/components/schemas/getDeltaByDataspaceAnchorAndPayload_request'
2340 $ref: '#/components/examples/deltaReportSample'
2349 message: Bad Request
2350 details: The provided request is not valid
2352 $ref: '#/components/schemas/ErrorMessage'
2353 description: Bad Request
2359 message: Unauthorized request
2360 details: This request is unauthorized
2362 $ref: '#/components/schemas/ErrorMessage'
2363 description: Unauthorized
2369 message: Request Forbidden
2370 details: This request is forbidden
2372 $ref: '#/components/schemas/ErrorMessage'
2373 description: Forbidden
2379 message: Internal Server Error
2380 details: Internal Server Error occurred
2382 $ref: '#/components/schemas/ErrorMessage'
2383 description: Internal Server Error
2384 summary: Get delta between an anchor and JSON payload
2387 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
2390 description: Query data nodes for the given dataspace and anchor using CPS path
2391 operationId: getNodesByDataspaceAndAnchorAndCpsPath
2393 - description: dataspace-name
2395 name: dataspace-name
2398 example: my-dataspace
2400 - description: anchor-name
2407 - description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2411 list attributes cps path:
2412 value: "//categories[@code=1]"
2419 - description: include-descendants
2421 name: include-descendants
2433 $ref: '#/components/examples/dataSample'
2442 message: Bad Request
2443 details: The provided request is not valid
2445 $ref: '#/components/schemas/ErrorMessage'
2446 description: Bad Request
2452 message: Request Forbidden
2453 details: This request is forbidden
2455 $ref: '#/components/schemas/ErrorMessage'
2456 description: Forbidden
2462 message: Internal Server Error
2463 details: Internal Server Error occurred
2465 $ref: '#/components/schemas/ErrorMessage'
2466 description: Internal Server Error
2467 summary: Query data nodes
2470 x-codegen-request-body-name: xpath
2471 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
2473 description: Query data nodes for the given dataspace and anchor using CPS path
2474 operationId: getNodesByDataspaceAndAnchorAndCpsPathV2
2476 - description: dataspace-name
2478 name: dataspace-name
2481 example: my-dataspace
2483 - description: anchor-name
2490 - description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2494 list attributes cps path:
2495 value: "//categories[@code=1]"
2502 - description: "Number of descendants to query. Allowed values are 'none', 'all',\
2503 \ 'direct', 1 (for direct), -1 (for all), 0 (for none) and any positive\
2512 - description: Content type in header
2517 default: application/json
2528 $ref: '#/components/examples/dataSample'
2534 $ref: '#/components/examples/dataSampleXml'
2545 message: Bad Request
2546 details: The provided request is not valid
2548 $ref: '#/components/schemas/ErrorMessage'
2549 description: Bad Request
2555 message: Request Forbidden
2556 details: This request is forbidden
2558 $ref: '#/components/schemas/ErrorMessage'
2559 description: Forbidden
2565 message: Internal Server Error
2566 details: Internal Server Error occurred
2568 $ref: '#/components/schemas/ErrorMessage'
2569 description: Internal Server Error
2570 summary: Query data nodes
2573 x-codegen-request-body-name: xpath
2574 /v2/dataspaces/{dataspace-name}/nodes/query:
2576 description: Query data nodes for the given dataspace across anchors using CPS
2578 operationId: getNodesByDataspaceAndCpsPath
2580 - description: dataspace-name
2582 name: dataspace-name
2585 example: my-dataspace
2587 - description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2591 list attributes cps path:
2592 value: "//categories[@code=1]"
2599 - description: "Number of descendants to query. Allowed values are 'none', 'all',\
2600 \ 'direct', 1 (for direct), -1 (for all), 0 (for none) and any positive\
2609 - description: page index for pagination over anchors. It must be greater then
2617 - description: number of records (anchors) per page. It must be greater then
2631 $ref: '#/components/examples/dataSampleAcrossAnchors'
2640 message: Bad Request
2641 details: The provided request is not valid
2643 $ref: '#/components/schemas/ErrorMessage'
2644 description: Bad Request
2650 message: Request Forbidden
2651 details: This request is forbidden
2653 $ref: '#/components/schemas/ErrorMessage'
2654 description: Forbidden
2660 message: Internal Server Error
2661 details: Internal Server Error occurred
2663 $ref: '#/components/schemas/ErrorMessage'
2664 description: Internal Server Error
2665 summary: Query data nodes across anchors
2668 x-codegen-request-body-name: xpath
2669 /v2/notification-subscription:
2671 description: Delete cps notification subscription
2672 operationId: deleteNotificationSubscription
2674 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
2676 subscription by dataspace xpath:
2677 value: "/dataspaces/dataspace[@name='dataspace01']"
2678 subscription by anchor xpath:
2679 value: "/dataspaces/dataspace[@name='dataspace01']/anchors/anchor[@name='anchor01']"
2684 default: /dataspaces
2689 description: No Content
2695 message: Bad Request
2696 details: The provided request is not valid
2698 $ref: '#/components/schemas/ErrorMessage'
2699 description: Bad Request
2705 message: Request Forbidden
2706 details: This request is forbidden
2708 $ref: '#/components/schemas/ErrorMessage'
2709 description: Forbidden
2715 message: Conflicting request
2716 details: The request cannot be processed as the resource is in use.
2718 $ref: '#/components/schemas/ErrorMessage'
2719 description: Conflict
2725 message: Internal Server Error
2726 details: Internal Server Error occurred
2728 $ref: '#/components/schemas/ErrorMessage'
2729 description: Internal Server Error
2730 summary: Delete cps notification subscription
2734 description: Get cps notification subscription
2735 operationId: getNotificationSubscription
2737 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
2739 subscription by dataspace xpath:
2740 value: "/dataspaces/dataspace[@name='dataspace01']"
2741 subscription by anchor xpath:
2742 value: "/dataspaces/dataspace[@name='dataspace01']/anchors/anchor[@name='anchor01']"
2747 default: /dataspaces
2754 $ref: '#/components/schemas/NotificationSubscriptionsDataSample'
2761 message: Bad Request
2762 details: The provided request is not valid
2764 $ref: '#/components/schemas/ErrorMessage'
2765 description: Bad Request
2771 message: Request Forbidden
2772 details: This request is forbidden
2774 $ref: '#/components/schemas/ErrorMessage'
2775 description: Forbidden
2781 message: Conflicting request
2782 details: The request cannot be processed as the resource is in use.
2784 $ref: '#/components/schemas/ErrorMessage'
2785 description: Conflict
2791 message: Internal Server Error
2792 details: Internal Server Error occurred
2794 $ref: '#/components/schemas/ErrorMessage'
2795 description: Internal Server Error
2796 summary: Get cps notification subscription
2800 description: Create cps notification subscription
2801 operationId: createNotificationSubscription
2803 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
2805 subscription by dataspace xpath:
2806 value: "/dataspaces/dataspace[@name='dataspace01']"
2807 subscription by anchor xpath:
2808 value: "/dataspaces/dataspace[@name='dataspace01']/anchors/anchor[@name='anchor01']"
2813 default: /dataspaces
2820 $ref: '#/components/examples/NotificationSubscriptionsDataSample'
2826 description: Created without response body
2832 message: Bad Request
2833 details: The provided request is not valid
2835 $ref: '#/components/schemas/ErrorMessage'
2836 description: Bad Request
2842 message: Request Forbidden
2843 details: This request is forbidden
2845 $ref: '#/components/schemas/ErrorMessage'
2846 description: Forbidden
2852 message: Conflicting request
2853 details: The request cannot be processed as the resource is in use.
2855 $ref: '#/components/schemas/ErrorMessage'
2856 description: Conflict
2862 message: Internal Server Error
2863 details: Internal Server Error occurred
2865 $ref: '#/components/schemas/ErrorMessage'
2866 description: Internal Server Error
2867 summary: Create cps notification subscription
2875 bookstore-name: Chapters
2902 value: <stores xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <bookstore xmlns="org:onap:ccsdk:sample">
2903 <bookstore-name>Chapters</bookstore-name> <categories> <code>1</code> <name>SciFi</name>
2904 </categories> <categories> <books> <title>Book 1</title> <lang>N/A</lang>
2905 <price>11</price> <editions>2009</editions> </books> </categories> <categories>
2906 <books> <title>Book 2</title> <lang>German</lang> <price>39</price> <editions>2007</editions>
2907 <editions>2013</editions> <editions>2021</editions> </books> </categories>
2908 <categories> <code>2</code> <name>kids </name> <books> <title>Book 3</title>
2909 <lang>English</lang> <price>15</price> <editions>2010</editions> </books>
2910 </categories> </bookstore> </stores>
2914 bookstore-name: Chapters
2940 value: <stores xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <bookstore xmlns="org:onap:ccsdk:sample">
2941 <bookstore-name>Chapters</bookstore-name> <categories> <code>1</code> <name>SciFi</name>
2942 <books> <title>Book 1</title> <lang>N/A</lang> <price>11</price> <editions>2009</editions>
2943 </books> <books> <title>Book 2</title> <lang>German</lang> <price>39</price>
2944 <editions>2007</editions> <editions>2013</editions> <editions>2021</editions>
2945 </books> </categories> <categories> <code>2</code> <name>kids</name> <books>
2946 <title>Book 3</title> <lang>English</lang> <price>15</price> <editions>2010</editions>
2947 </books> </categories> </bookstore> </stores>
2951 xpath: "/bookstore/categories/[@code=3]"
2956 xpath: "/bookstore/categories/[@code=1]"
2961 xpath: "/bookstore/categories/[@code=2]"
2966 dataSampleAcrossAnchors:
2968 - anchorName: bookstore1
2971 bookstore-name: Chapters
2977 - anchorName: bookstore2
2980 bookstore-name: Chapters
2986 NotificationSubscriptionsDataSample:
2988 cps-notification-subscriptions:dataspaces:
2993 dataspaceNameInQuery:
2994 description: dataspace-name
2996 name: dataspace-name
2999 example: my-dataspace
3002 description: apiVersion
3012 dataspaceNameInPath:
3013 description: dataspace-name
3015 name: dataspace-name
3018 example: my-dataspace
3020 schemaSetNameInQuery:
3021 description: schema-set-name
3023 name: schema-set-name
3026 example: my-schema-set
3029 description: anchor-name
3037 description: anchor-name
3044 schemaSetNameInPath:
3045 description: schema-set-name
3047 name: schema-set-name
3050 example: my-schema-set
3053 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
3056 value: /shops/bookstore
3057 list attributes xpath:
3058 value: "/shops/bookstore/categories[@code=1]"
3065 includeDescendantsOptionInQuery:
3066 description: include-descendants
3068 name: include-descendants
3075 description: "Number of descendants to query. Allowed values are 'none', 'all',\
3076 \ 'direct', 1 (for direct), -1 (for all), 0 (for none) and any positive number."
3084 contentTypeInHeader:
3085 description: Content type in header
3090 default: application/json
3096 description: "Boolean flag to validate data, without persisting it. Default\
3105 observedTimestampInQuery:
3106 description: observed-timestamp
3108 name: observed-timestamp
3111 example: 2021-03-21T00:10:34.030-0100
3113 requiredXpathInQuery:
3114 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
3117 value: /shops/bookstore
3118 list attributes xpath:
3119 value: "/shops/bookstore/categories[@code=1]"
3125 sourceAnchorNameInPath:
3126 description: source-anchor-name
3128 name: source-anchor-name
3133 targetAnchorNameInQuery:
3134 description: target-anchor-name
3136 name: target-anchor-name
3141 groupDataNodesInQuery:
3142 description: Boolean flag to enable or disable grouping of data nodes. Enabling
3143 it generates a condensed delta report.
3145 name: grouping-enabled
3152 description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
3156 list attributes cps path:
3157 value: "//categories[@code=1]"
3165 description: page index for pagination over anchors. It must be greater then
3174 description: number of records (anchors) per page. It must be greater then zero
3182 notificationSubscriptionXpathInQuery:
3183 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
3185 subscription by dataspace xpath:
3186 value: "/dataspaces/dataspace[@name='dataspace01']"
3187 subscription by anchor xpath:
3188 value: "/dataspaces/dataspace[@name='dataspace01']/anchors/anchor[@name='anchor01']"
3193 default: /dataspaces
3200 example: my-resource
3202 description: Created
3208 message: Bad Request
3209 details: The provided request is not valid
3211 $ref: '#/components/schemas/ErrorMessage'
3212 description: Bad Request
3218 message: Request Forbidden
3219 details: This request is forbidden
3221 $ref: '#/components/schemas/ErrorMessage'
3222 description: Forbidden
3228 message: Conflicting request
3229 details: The request cannot be processed as the resource is in use.
3231 $ref: '#/components/schemas/ErrorMessage'
3232 description: Conflict
3233 InternalServerError:
3238 message: Internal Server Error
3239 details: Internal Server Error occurred
3241 $ref: '#/components/schemas/ErrorMessage'
3242 description: Internal Server Error
3245 description: No Content
3247 description: Created without response body
3262 message: Unauthorized request
3263 details: This request is unauthorized
3265 $ref: '#/components/schemas/ErrorMessage'
3266 description: Unauthorized
3287 example: my-dataspace
3289 title: Dataspace details by dataspace Name
3293 schemaSetName: my-schema-set
3294 dataspaceName: my-dataspace
3301 example: my-dataspace
3304 example: my-schema-set
3306 title: Anchor details by anchor Name
3311 description: multipartFile
3319 dataspaceName: my-dataspace
3322 - name: my-module-reference-name
3323 namespace: my-module-reference-namespace
3324 revision: my-module-reference-revision
3325 - name: my-module-reference-name
3326 namespace: my-module-reference-namespace
3327 revision: my-module-reference-revision
3330 example: my-dataspace
3334 $ref: '#/components/schemas/ModuleReferences'
3337 example: my-schema-set
3341 title: Schema set details by dataspace and schemasetName
3345 name: my-module-reference-name
3346 namespace: my-module-reference-namespace
3347 revision: my-module-reference-revision
3350 example: my-module-reference-name
3353 example: my-module-reference-namespace
3356 example: my-module-reference-revision
3358 title: Module reference object
3360 NotificationSubscriptionsDataSample: {}
3361 getDeltaByDataspaceAnchorAndPayload_request:
3363 targetDataAsJsonFile:
3364 example: "{$ref=components.yml#/components/schemas/TargetDataAsJsonFile}"
3368 example: "{$ref=components.yml#/components/schemas/MultipartFile}"
3372 - targetDataAsJsonFile