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
13 x-planned-retirement-date: "202212"
22 - description: cps Admin
24 - description: cps Data
30 description: Create a new dataspace
31 operationId: createDataspace
33 - description: dataspace-name
54 details: The provided request is not valid
56 $ref: '#/components/schemas/ErrorMessage'
57 description: Bad Request
63 message: Unauthorized request
64 details: This request is unauthorized
66 $ref: '#/components/schemas/ErrorMessage'
67 description: Unauthorized
73 message: Request Forbidden
74 details: This request is forbidden
76 $ref: '#/components/schemas/ErrorMessage'
77 description: Forbidden
83 message: Conflicting request
84 details: The request cannot be processed as the resource is in use.
86 $ref: '#/components/schemas/ErrorMessage'
93 message: Internal Server Error
94 details: Internal Server Error occurred
96 $ref: '#/components/schemas/ErrorMessage'
97 description: Internal Server Error
98 summary: Create a dataspace
101 /{apiVersion}/dataspaces:
103 description: Delete a dataspace
104 operationId: deleteDataspace
106 - description: apiVersion
116 - description: dataspace-name
121 example: my-dataspace
126 description: No Content
133 details: The provided request is not valid
135 $ref: '#/components/schemas/ErrorMessage'
136 description: Bad Request
142 message: Unauthorized request
143 details: This request is unauthorized
145 $ref: '#/components/schemas/ErrorMessage'
146 description: Unauthorized
152 message: Request Forbidden
153 details: This request is forbidden
155 $ref: '#/components/schemas/ErrorMessage'
156 description: Forbidden
162 message: Conflicting request
163 details: The request cannot be processed as the resource is in use.
165 $ref: '#/components/schemas/ErrorMessage'
166 description: Conflict
172 message: Internal Server Error
173 details: Internal Server Error occurred
175 $ref: '#/components/schemas/ErrorMessage'
176 description: Internal Server Error
177 summary: Delete a dataspace
182 description: Create a new dataspace
183 operationId: createDataspaceV2
185 - description: dataspace-name
190 example: my-dataspace
194 description: Created without response body
201 details: The provided request is not valid
203 $ref: '#/components/schemas/ErrorMessage'
204 description: Bad Request
210 message: Unauthorized request
211 details: This request is unauthorized
213 $ref: '#/components/schemas/ErrorMessage'
214 description: Unauthorized
220 message: Request Forbidden
221 details: This request is forbidden
223 $ref: '#/components/schemas/ErrorMessage'
224 description: Forbidden
230 message: Conflicting request
231 details: The request cannot be processed as the resource is in use.
233 $ref: '#/components/schemas/ErrorMessage'
234 description: Conflict
240 message: Internal Server Error
241 details: Internal Server Error occurred
243 $ref: '#/components/schemas/ErrorMessage'
244 description: Internal Server Error
245 summary: Create a dataspace
248 /{apiVersion}/admin/dataspaces:
250 description: Read all dataspaces
251 operationId: getAllDataspaces
253 - description: apiVersion
269 $ref: '#/components/schemas/DataspaceDetails'
278 details: The provided request is not valid
280 $ref: '#/components/schemas/ErrorMessage'
281 description: Bad Request
287 message: Unauthorized request
288 details: This request is unauthorized
290 $ref: '#/components/schemas/ErrorMessage'
291 description: Unauthorized
297 message: Request Forbidden
298 details: This request is forbidden
300 $ref: '#/components/schemas/ErrorMessage'
301 description: Forbidden
307 message: Internal Server Error
308 details: Internal Server Error occurred
310 $ref: '#/components/schemas/ErrorMessage'
311 description: Internal Server Error
312 summary: Get all dataspaces
315 /{apiVersion}/admin/dataspaces/{dataspace-name}:
317 description: Read a dataspace given a dataspace name
318 operationId: getDataspace
320 - description: apiVersion
330 - description: dataspace-name
335 example: my-dataspace
342 $ref: '#/components/schemas/DataspaceDetails'
350 details: The provided request is not valid
352 $ref: '#/components/schemas/ErrorMessage'
353 description: Bad Request
359 message: Unauthorized request
360 details: This request is unauthorized
362 $ref: '#/components/schemas/ErrorMessage'
363 description: Unauthorized
369 message: Request Forbidden
370 details: This request is forbidden
372 $ref: '#/components/schemas/ErrorMessage'
373 description: Forbidden
379 message: Internal Server Error
380 details: Internal Server Error occurred
382 $ref: '#/components/schemas/ErrorMessage'
383 description: Internal Server Error
384 summary: Get a dataspace
387 /v1/dataspaces/{dataspace-name}/anchors:
390 description: Create a new anchor in the given dataspace
391 operationId: createAnchor
393 - description: dataspace-name
398 example: my-dataspace
400 - description: schema-set-name
402 name: schema-set-name
405 example: my-schema-set
407 - description: anchor-name
428 details: The provided request is not valid
430 $ref: '#/components/schemas/ErrorMessage'
431 description: Bad Request
437 message: Unauthorized request
438 details: This request is unauthorized
440 $ref: '#/components/schemas/ErrorMessage'
441 description: Unauthorized
447 message: Request Forbidden
448 details: This request is forbidden
450 $ref: '#/components/schemas/ErrorMessage'
451 description: Forbidden
457 message: Conflicting request
458 details: The request cannot be processed as the resource is in use.
460 $ref: '#/components/schemas/ErrorMessage'
461 description: Conflict
467 message: Internal Server Error
468 details: Internal Server Error occurred
470 $ref: '#/components/schemas/ErrorMessage'
471 description: Internal Server Error
472 summary: Create an anchor
475 /v2/dataspaces/{dataspace-name}/anchors:
477 description: Create a new anchor in the given dataspace
478 operationId: createAnchorV2
480 - description: dataspace-name
485 example: my-dataspace
487 - description: schema-set-name
489 name: schema-set-name
492 example: my-schema-set
494 - description: anchor-name
503 description: Created without response body
510 details: The provided request is not valid
512 $ref: '#/components/schemas/ErrorMessage'
513 description: Bad Request
519 message: Unauthorized request
520 details: This request is unauthorized
522 $ref: '#/components/schemas/ErrorMessage'
523 description: Unauthorized
529 message: Request Forbidden
530 details: This request is forbidden
532 $ref: '#/components/schemas/ErrorMessage'
533 description: Forbidden
539 message: Conflicting request
540 details: The request cannot be processed as the resource is in use.
542 $ref: '#/components/schemas/ErrorMessage'
543 description: Conflict
549 message: Internal Server Error
550 details: Internal Server Error occurred
552 $ref: '#/components/schemas/ErrorMessage'
553 description: Internal Server Error
554 summary: Create an anchor
557 /{apiVersion}/dataspaces/{dataspace-name}/anchors:
559 description: "Read all anchors, given a dataspace"
560 operationId: getAnchors
562 - description: apiVersion
572 - description: dataspace-name
577 example: my-dataspace
585 $ref: '#/components/schemas/AnchorDetails'
594 details: The provided request is not valid
596 $ref: '#/components/schemas/ErrorMessage'
597 description: Bad Request
603 message: Unauthorized request
604 details: This request is unauthorized
606 $ref: '#/components/schemas/ErrorMessage'
607 description: Unauthorized
613 message: Request Forbidden
614 details: This request is forbidden
616 $ref: '#/components/schemas/ErrorMessage'
617 description: Forbidden
623 message: Internal Server Error
624 details: Internal Server Error occurred
626 $ref: '#/components/schemas/ErrorMessage'
627 description: Internal Server Error
631 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}:
633 description: Delete an anchor given an anchor name and a dataspace
634 operationId: deleteAnchor
636 - description: apiVersion
646 - description: dataspace-name
651 example: my-dataspace
653 - description: anchor-name
663 description: No Content
670 details: The provided request is not valid
672 $ref: '#/components/schemas/ErrorMessage'
673 description: Bad Request
679 message: Unauthorized request
680 details: This request is unauthorized
682 $ref: '#/components/schemas/ErrorMessage'
683 description: Unauthorized
689 message: Request Forbidden
690 details: This request is forbidden
692 $ref: '#/components/schemas/ErrorMessage'
693 description: Forbidden
699 message: Internal Server Error
700 details: Internal Server Error occurred
702 $ref: '#/components/schemas/ErrorMessage'
703 description: Internal Server Error
704 summary: Delete an anchor
708 description: Read an anchor given an anchor name and a dataspace
709 operationId: getAnchor
711 - description: apiVersion
721 - description: dataspace-name
726 example: my-dataspace
728 - description: anchor-name
740 $ref: '#/components/schemas/AnchorDetails'
748 details: The provided request is not valid
750 $ref: '#/components/schemas/ErrorMessage'
751 description: Bad Request
757 message: Unauthorized request
758 details: This request is unauthorized
760 $ref: '#/components/schemas/ErrorMessage'
761 description: Unauthorized
767 message: Request Forbidden
768 details: This request is forbidden
770 $ref: '#/components/schemas/ErrorMessage'
771 description: Forbidden
777 message: Internal Server Error
778 details: Internal Server Error occurred
780 $ref: '#/components/schemas/ErrorMessage'
781 description: Internal Server Error
782 summary: Get an anchor
785 /v1/dataspaces/{dataspace-name}/schema-sets:
788 description: Create a new schema set in the given dataspace
789 operationId: createSchemaSet
791 - description: dataspace-name
796 example: my-dataspace
798 - description: schema-set-name
800 name: schema-set-name
803 example: my-schema-set
809 $ref: '#/components/schemas/MultipartFile'
825 details: The provided request is not valid
827 $ref: '#/components/schemas/ErrorMessage'
828 description: Bad Request
834 message: Unauthorized request
835 details: This request is unauthorized
837 $ref: '#/components/schemas/ErrorMessage'
838 description: Unauthorized
844 message: Request Forbidden
845 details: This request is forbidden
847 $ref: '#/components/schemas/ErrorMessage'
848 description: Forbidden
854 message: Conflicting request
855 details: The request cannot be processed as the resource is in use.
857 $ref: '#/components/schemas/ErrorMessage'
858 description: Conflict
864 message: Internal Server Error
865 details: Internal Server Error occurred
867 $ref: '#/components/schemas/ErrorMessage'
868 description: Internal Server Error
869 summary: Create a schema set
872 /v2/dataspaces/{dataspace-name}/schema-sets:
874 description: Create a new schema set in the given dataspace
875 operationId: createSchemaSetV2
877 - description: dataspace-name
882 example: my-dataspace
884 - description: schema-set-name
886 name: schema-set-name
889 example: my-schema-set
895 $ref: '#/components/schemas/MultipartFile'
899 description: Created without response body
906 details: The provided request is not valid
908 $ref: '#/components/schemas/ErrorMessage'
909 description: Bad Request
915 message: Unauthorized request
916 details: This request is unauthorized
918 $ref: '#/components/schemas/ErrorMessage'
919 description: Unauthorized
925 message: Request Forbidden
926 details: This request is forbidden
928 $ref: '#/components/schemas/ErrorMessage'
929 description: Forbidden
935 message: Conflicting request
936 details: The request cannot be processed as the resource is in use.
938 $ref: '#/components/schemas/ErrorMessage'
939 description: Conflict
945 message: Internal Server Error
946 details: Internal Server Error occurred
948 $ref: '#/components/schemas/ErrorMessage'
949 description: Internal Server Error
950 summary: Create a schema set
953 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets:
955 description: "Read all schema sets, given a dataspace"
956 operationId: getSchemaSets
958 - description: apiVersion
968 - description: dataspace-name
973 example: my-dataspace
981 $ref: '#/components/schemas/SchemaSetDetails'
990 details: The provided request is not valid
992 $ref: '#/components/schemas/ErrorMessage'
993 description: Bad Request
999 message: Unauthorized request
1000 details: This request is unauthorized
1002 $ref: '#/components/schemas/ErrorMessage'
1003 description: Unauthorized
1009 message: Request Forbidden
1010 details: This request is forbidden
1012 $ref: '#/components/schemas/ErrorMessage'
1013 description: Forbidden
1019 message: Internal Server Error
1020 details: Internal Server Error occurred
1022 $ref: '#/components/schemas/ErrorMessage'
1023 description: Internal Server Error
1024 summary: Get schema sets
1027 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets/{schema-set-name}:
1029 description: Delete a schema set given a schema set name and a dataspace
1030 operationId: deleteSchemaSet
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
1059 description: No Content
1065 message: Bad Request
1066 details: The provided request is not valid
1068 $ref: '#/components/schemas/ErrorMessage'
1069 description: Bad Request
1075 message: Unauthorized request
1076 details: This request is unauthorized
1078 $ref: '#/components/schemas/ErrorMessage'
1079 description: Unauthorized
1085 message: Request Forbidden
1086 details: This request is forbidden
1088 $ref: '#/components/schemas/ErrorMessage'
1089 description: Forbidden
1095 message: Conflicting request
1096 details: The request cannot be processed as the resource is in use.
1098 $ref: '#/components/schemas/ErrorMessage'
1099 description: Conflict
1105 message: Internal Server Error
1106 details: Internal Server Error occurred
1108 $ref: '#/components/schemas/ErrorMessage'
1109 description: Internal Server Error
1110 summary: Delete a schema set
1114 description: Read a schema set given a schema set name and a dataspace
1115 operationId: getSchemaSet
1117 - description: apiVersion
1127 - description: dataspace-name
1129 name: dataspace-name
1132 example: my-dataspace
1134 - description: schema-set-name
1136 name: schema-set-name
1139 example: my-schema-set
1146 $ref: '#/components/schemas/SchemaSetDetails'
1153 message: Bad Request
1154 details: The provided request is not valid
1156 $ref: '#/components/schemas/ErrorMessage'
1157 description: Bad Request
1163 message: Unauthorized request
1164 details: This request is unauthorized
1166 $ref: '#/components/schemas/ErrorMessage'
1167 description: Unauthorized
1173 message: Request Forbidden
1174 details: This request is forbidden
1176 $ref: '#/components/schemas/ErrorMessage'
1177 description: Forbidden
1183 message: Internal Server Error
1184 details: Internal Server Error occurred
1186 $ref: '#/components/schemas/ErrorMessage'
1187 description: Internal Server Error
1188 summary: Get a schema set
1191 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
1194 description: Get a node with an option to retrieve all the children for a given
1195 anchor and dataspace
1196 operationId: getNodeByDataspaceAndAnchor
1198 - description: dataspace-name
1200 name: dataspace-name
1203 example: my-dataspace
1205 - description: anchor-name
1212 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1215 value: /shops/bookstore
1216 list attributes xpath:
1217 value: "/shops/bookstore/categories[@code=1]"
1224 - description: include-descendants
1226 name: include-descendants
1238 $ref: '#/components/examples/dataSample'
1248 message: Bad Request
1249 details: The provided request is not valid
1251 $ref: '#/components/schemas/ErrorMessage'
1252 description: Bad Request
1258 message: Unauthorized request
1259 details: This request is unauthorized
1261 $ref: '#/components/schemas/ErrorMessage'
1262 description: Unauthorized
1268 message: Request Forbidden
1269 details: This request is forbidden
1271 $ref: '#/components/schemas/ErrorMessage'
1272 description: Forbidden
1278 message: Internal Server Error
1279 details: Internal Server Error occurred
1281 $ref: '#/components/schemas/ErrorMessage'
1282 description: Internal Server Error
1286 x-codegen-request-body-name: xpath
1287 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
1289 description: Get a node with an option to retrieve all the children for a given
1290 anchor and dataspace
1291 operationId: getNodeByDataspaceAndAnchorV2
1293 - description: dataspace-name
1295 name: dataspace-name
1298 example: my-dataspace
1300 - description: anchor-name
1307 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1310 value: /shops/bookstore
1311 list attributes xpath:
1312 value: "/shops/bookstore/categories[@code=1]"
1319 - description: "Number of descendants to query. Allowed values are 'none', 'all', 'direct',\
1320 \ 1 (for direct), -1 (for all), 0 (for none) and any positive number."
1334 $ref: '#/components/examples/dataSample'
1344 message: Bad Request
1345 details: The provided request is not valid
1347 $ref: '#/components/schemas/ErrorMessage'
1348 description: Bad Request
1354 message: Unauthorized request
1355 details: This request is unauthorized
1357 $ref: '#/components/schemas/ErrorMessage'
1358 description: Unauthorized
1364 message: Request Forbidden
1365 details: This request is forbidden
1367 $ref: '#/components/schemas/ErrorMessage'
1368 description: Forbidden
1374 message: Internal Server Error
1375 details: Internal Server Error occurred
1377 $ref: '#/components/schemas/ErrorMessage'
1378 description: Internal Server Error
1382 x-codegen-request-body-name: xpath
1383 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes:
1385 description: Delete a datanode for a given dataspace and anchor given a node
1387 operationId: deleteDataNode
1389 - description: apiVersion
1399 - description: dataspace-name
1401 name: dataspace-name
1404 example: my-dataspace
1406 - description: anchor-name
1413 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1416 value: /shops/bookstore
1417 list attributes xpath:
1418 value: "/shops/bookstore/categories[@code=1]"
1425 - description: observed-timestamp
1427 name: observed-timestamp
1430 example: 2021-03-21T00:10:34.030-0100
1435 description: No Content
1441 message: Bad Request
1442 details: The provided request is not valid
1444 $ref: '#/components/schemas/ErrorMessage'
1445 description: Bad Request
1451 message: Unauthorized request
1452 details: This request is unauthorized
1454 $ref: '#/components/schemas/ErrorMessage'
1455 description: Unauthorized
1461 message: Request Forbidden
1462 details: This request is forbidden
1464 $ref: '#/components/schemas/ErrorMessage'
1465 description: Forbidden
1471 message: Internal Server Error
1472 details: Internal Server Error occurred
1474 $ref: '#/components/schemas/ErrorMessage'
1475 description: Internal Server Error
1476 summary: Delete a data node
1480 description: Update a data node leaves for a given dataspace and anchor and
1481 a parent node xpath. This operation is currently supported for one top level
1483 operationId: updateNodeLeaves
1485 - description: apiVersion
1495 - description: dataspace-name
1497 name: dataspace-name
1500 example: my-dataspace
1502 - description: anchor-name
1509 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1512 value: /shops/bookstore
1513 list attributes xpath:
1514 value: "/shops/bookstore/categories[@code=1]"
1521 - description: observed-timestamp
1523 name: observed-timestamp
1526 example: 2021-03-21T00:10:34.030-0100
1533 $ref: '#/components/examples/dataSample'
1553 message: Bad Request
1554 details: The provided request is not valid
1556 $ref: '#/components/schemas/ErrorMessage'
1557 description: Bad Request
1563 message: Unauthorized request
1564 details: This request is unauthorized
1566 $ref: '#/components/schemas/ErrorMessage'
1567 description: Unauthorized
1573 message: Request Forbidden
1574 details: This request is forbidden
1576 $ref: '#/components/schemas/ErrorMessage'
1577 description: Forbidden
1583 message: Internal Server Error
1584 details: Internal Server Error occurred
1586 $ref: '#/components/schemas/ErrorMessage'
1587 description: Internal Server Error
1588 summary: Update node leaves
1592 description: Create a node for a given anchor and dataspace
1593 operationId: createNode
1595 - description: apiVersion
1605 - description: dataspace-name
1607 name: dataspace-name
1610 example: my-dataspace
1612 - description: anchor-name
1619 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1622 value: /shops/bookstore
1623 list attributes xpath:
1624 value: "/shops/bookstore/categories[@code=1]"
1631 - description: observed-timestamp
1633 name: observed-timestamp
1636 example: 2021-03-21T00:10:34.030-0100
1638 - description: Content type header
1643 example: application/json
1650 $ref: '#/components/examples/dataSample'
1657 $ref: '#/components/examples/dataSampleXml'
1669 example: my-resource
1671 description: Created
1677 message: Bad Request
1678 details: The provided request is not valid
1680 $ref: '#/components/schemas/ErrorMessage'
1681 description: Bad Request
1687 message: Unauthorized request
1688 details: This request is unauthorized
1690 $ref: '#/components/schemas/ErrorMessage'
1691 description: Unauthorized
1697 message: Request Forbidden
1698 details: This request is forbidden
1700 $ref: '#/components/schemas/ErrorMessage'
1701 description: Forbidden
1707 message: Conflicting request
1708 details: The request cannot be processed as the resource is in use.
1710 $ref: '#/components/schemas/ErrorMessage'
1711 description: Conflict
1717 message: Internal Server Error
1718 details: Internal Server Error occurred
1720 $ref: '#/components/schemas/ErrorMessage'
1721 description: Internal Server Error
1722 summary: Create a node
1726 description: "Replace a node with descendants for a given dataspace, anchor\
1727 \ and a parent node xpath"
1728 operationId: replaceNode
1730 - description: apiVersion
1740 - description: dataspace-name
1742 name: dataspace-name
1745 example: my-dataspace
1747 - description: anchor-name
1754 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1757 value: /shops/bookstore
1758 list attributes xpath:
1759 value: "/shops/bookstore/categories[@code=1]"
1766 - description: observed-timestamp
1768 name: observed-timestamp
1771 example: 2021-03-21T00:10:34.030-0100
1778 $ref: '#/components/examples/dataSample'
1798 message: Bad Request
1799 details: The provided request is not valid
1801 $ref: '#/components/schemas/ErrorMessage'
1802 description: Bad Request
1808 message: Unauthorized request
1809 details: This request is unauthorized
1811 $ref: '#/components/schemas/ErrorMessage'
1812 description: Unauthorized
1818 message: Request Forbidden
1819 details: This request is forbidden
1821 $ref: '#/components/schemas/ErrorMessage'
1822 description: Forbidden
1828 message: Internal Server Error
1829 details: Internal Server Error occurred
1831 $ref: '#/components/schemas/ErrorMessage'
1832 description: Internal Server Error
1833 summary: Replace a node with descendants
1836 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
1839 description: Delete one or all list element(s) for a given anchor and dataspace
1840 operationId: deleteListOrListElement
1842 - description: dataspace-name
1844 name: dataspace-name
1847 example: my-dataspace
1849 - description: anchor-name
1856 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1859 value: /shops/bookstore
1860 list attributes xpath:
1861 value: "/shops/bookstore/categories[@code=1]"
1867 - description: observed-timestamp
1869 name: observed-timestamp
1872 example: 2021-03-21T00:10:34.030-0100
1877 description: No Content
1883 message: Bad Request
1884 details: The provided request is not valid
1886 $ref: '#/components/schemas/ErrorMessage'
1887 description: Bad Request
1893 message: Unauthorized request
1894 details: This request is unauthorized
1896 $ref: '#/components/schemas/ErrorMessage'
1897 description: Unauthorized
1903 message: Request Forbidden
1904 details: This request is forbidden
1906 $ref: '#/components/schemas/ErrorMessage'
1907 description: Forbidden
1913 message: Internal Server Error
1914 details: Internal Server Error occurred
1916 $ref: '#/components/schemas/ErrorMessage'
1917 description: Internal Server Error
1918 summary: Delete one or all list element(s)
1921 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
1923 description: Add list element(s) to a list for a given anchor and dataspace
1924 operationId: addListElements
1926 - description: apiVersion
1936 - description: dataspace-name
1938 name: dataspace-name
1941 example: my-dataspace
1943 - description: anchor-name
1950 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
1953 value: /shops/bookstore
1954 list attributes xpath:
1955 value: "/shops/bookstore/categories[@code=1]"
1961 - description: observed-timestamp
1963 name: observed-timestamp
1966 example: 2021-03-21T00:10:34.030-0100
1973 $ref: '#/components/examples/dataSample'
1983 example: my-resource
1985 description: Created
1991 message: Bad Request
1992 details: The provided request is not valid
1994 $ref: '#/components/schemas/ErrorMessage'
1995 description: Bad Request
2001 message: Unauthorized request
2002 details: This request is unauthorized
2004 $ref: '#/components/schemas/ErrorMessage'
2005 description: Unauthorized
2011 message: Request Forbidden
2012 details: This request is forbidden
2014 $ref: '#/components/schemas/ErrorMessage'
2015 description: Forbidden
2021 message: Internal Server Error
2022 details: Internal Server Error occurred
2024 $ref: '#/components/schemas/ErrorMessage'
2025 description: Internal Server Error
2026 summary: Add list element(s)
2030 description: "Replace list content under a given parent, anchor and dataspace"
2031 operationId: replaceListContent
2033 - description: apiVersion
2043 - description: dataspace-name
2045 name: dataspace-name
2048 example: my-dataspace
2050 - description: anchor-name
2057 - description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
2060 value: /shops/bookstore
2061 list attributes xpath:
2062 value: "/shops/bookstore/categories[@code=1]"
2068 - description: observed-timestamp
2070 name: observed-timestamp
2073 example: 2021-03-21T00:10:34.030-0100
2080 $ref: '#/components/examples/dataSample'
2100 message: Bad Request
2101 details: The provided request is not valid
2103 $ref: '#/components/schemas/ErrorMessage'
2104 description: Bad Request
2110 message: Unauthorized request
2111 details: This request is unauthorized
2113 $ref: '#/components/schemas/ErrorMessage'
2114 description: Unauthorized
2120 message: Request Forbidden
2121 details: This request is forbidden
2123 $ref: '#/components/schemas/ErrorMessage'
2124 description: Forbidden
2130 message: Internal Server Error
2131 details: Internal Server Error occurred
2133 $ref: '#/components/schemas/ErrorMessage'
2134 description: Internal Server Error
2135 summary: Replace list content
2138 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
2141 description: Query data nodes for the given dataspace and anchor using CPS path
2142 operationId: getNodesByDataspaceAndAnchorAndCpsPath
2144 - description: dataspace-name
2146 name: dataspace-name
2149 example: my-dataspace
2151 - description: anchor-name
2158 - description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2162 list attributes cps path:
2163 value: "//categories[@code=1]"
2170 - description: include-descendants
2172 name: include-descendants
2184 $ref: '#/components/examples/dataSample'
2194 message: Bad Request
2195 details: The provided request is not valid
2197 $ref: '#/components/schemas/ErrorMessage'
2198 description: Bad Request
2204 message: Unauthorized request
2205 details: This request is unauthorized
2207 $ref: '#/components/schemas/ErrorMessage'
2208 description: Unauthorized
2214 message: Request Forbidden
2215 details: This request is forbidden
2217 $ref: '#/components/schemas/ErrorMessage'
2218 description: Forbidden
2224 message: Internal Server Error
2225 details: Internal Server Error occurred
2227 $ref: '#/components/schemas/ErrorMessage'
2228 description: Internal Server Error
2229 summary: Query data nodes
2232 x-codegen-request-body-name: xpath
2233 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
2235 description: Query data nodes for the given dataspace and anchor using CPS path
2236 operationId: getNodesByDataspaceAndAnchorAndCpsPathV2
2238 - description: dataspace-name
2240 name: dataspace-name
2243 example: my-dataspace
2245 - description: anchor-name
2252 - description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2256 list attributes cps path:
2257 value: "//categories[@code=1]"
2264 - description: "Number of descendants to query. Allowed values are 'none', 'all', 'direct',\
2265 \ 1 (for direct), -1 (for all), 0 (for none) and any positive number."
2279 $ref: '#/components/examples/dataSample'
2289 message: Bad Request
2290 details: The provided request is not valid
2292 $ref: '#/components/schemas/ErrorMessage'
2293 description: Bad Request
2299 message: Unauthorized request
2300 details: This request is unauthorized
2302 $ref: '#/components/schemas/ErrorMessage'
2303 description: Unauthorized
2309 message: Request Forbidden
2310 details: This request is forbidden
2312 $ref: '#/components/schemas/ErrorMessage'
2313 description: Forbidden
2319 message: Internal Server Error
2320 details: Internal Server Error occurred
2322 $ref: '#/components/schemas/ErrorMessage'
2323 description: Internal Server Error
2324 summary: Query data nodes
2327 x-codegen-request-body-name: xpath
2328 /v2/dataspaces/{dataspace-name}/nodes/query:
2330 description: Query data nodes for the given dataspace across anchors using CPS
2332 operationId: getNodesByDataspaceAndCpsPath
2334 - description: dataspace-name
2336 name: dataspace-name
2339 example: my-dataspace
2341 - description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2345 list attributes cps path:
2346 value: "//categories[@code=1]"
2353 - description: "Number of descendants to query. Allowed values are 'none', 'all', 'direct',\
2354 \ 1 (for direct), -1 (for all), 0 (for none) and any positive number."
2362 - description: "page index for pagination over anchors"
2369 - description: "number of records (anchors) to query per page"
2382 $ref: '#/components/examples/dataSampleAcrossAnchors'
2391 description: Total number of pages for given page size
2397 message: Bad Request
2398 details: The provided request is not valid
2400 $ref: '#/components/schemas/ErrorMessage'
2401 description: Bad Request
2407 message: Unauthorized request
2408 details: This request is unauthorized
2410 $ref: '#/components/schemas/ErrorMessage'
2411 description: Unauthorized
2417 message: Request Forbidden
2418 details: This request is forbidden
2420 $ref: '#/components/schemas/ErrorMessage'
2421 description: Forbidden
2427 message: Internal Server Error
2428 details: Internal Server Error occurred
2430 $ref: '#/components/schemas/ErrorMessage'
2431 description: Internal Server Error
2432 summary: Query data nodes
2435 x-codegen-request-body-name: xpath
2441 bookstore-name: Chapters
2448 value: <stores xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <bookstore xmlns="org:onap:ccsdk:sample">
2449 <bookstore-name>Chapters</bookstore-name> <categories> <code>1</code> <name>SciFi</name>
2450 </categories> </bookstore> </stores>
2451 dataSampleAcrossAnchors:
2453 - anchorName: bookstore1
2456 bookstore-name: Chapters
2462 - anchorName: bookstore2
2465 bookstore-name: Chapters
2472 dataspaceNameInQuery:
2473 description: dataspace-name
2475 name: dataspace-name
2478 example: my-dataspace
2481 description: apiVersion
2491 dataspaceNameInPath:
2492 description: dataspace-name
2494 name: dataspace-name
2497 example: my-dataspace
2499 schemaSetNameInQuery:
2500 description: schema-set-name
2502 name: schema-set-name
2505 example: my-schema-set
2508 description: anchor-name
2516 description: anchor-name
2523 schemaSetNameInPath:
2524 description: schema-set-name
2526 name: schema-set-name
2529 example: my-schema-set
2532 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
2535 value: /shops/bookstore
2536 list attributes xpath:
2537 value: "/shops/bookstore/categories[@code=1]"
2544 includeDescendantsOptionInQuery:
2545 description: include-descendants
2547 name: include-descendants
2554 description: "Number of descendants to query. Allowed values are 'none', 'all', 'direct',\
2555 \ 1 (for direct), -1 (for all), 0 (for none) and any positive number."
2563 observedTimestampInQuery:
2564 description: observed-timestamp
2566 name: observed-timestamp
2569 example: 2021-03-21T00:10:34.030-0100
2572 description: Content type header
2577 example: application/json
2579 requiredXpathInQuery:
2580 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/xpath.html"
2583 value: /shops/bookstore
2584 list attributes xpath:
2585 value: "/shops/bookstore/categories[@code=1]"
2592 description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2596 list attributes cps path:
2597 value: "//categories[@code=1]"
2609 example: my-resource
2611 description: Created
2617 message: Bad Request
2618 details: The provided request is not valid
2620 $ref: '#/components/schemas/ErrorMessage'
2621 description: Bad Request
2627 message: Unauthorized request
2628 details: This request is unauthorized
2630 $ref: '#/components/schemas/ErrorMessage'
2631 description: Unauthorized
2637 message: Request Forbidden
2638 details: This request is forbidden
2640 $ref: '#/components/schemas/ErrorMessage'
2641 description: Forbidden
2647 message: Conflicting request
2648 details: The request cannot be processed as the resource is in use.
2650 $ref: '#/components/schemas/ErrorMessage'
2651 description: Conflict
2652 InternalServerError:
2657 message: Internal Server Error
2658 details: Internal Server Error occurred
2660 $ref: '#/components/schemas/ErrorMessage'
2661 description: Internal Server Error
2664 description: No Content
2666 description: Created without response body
2692 example: my-dataspace
2694 title: Dataspace details by dataspace Name
2698 schemaSetName: my-schema-set
2699 dataspaceName: my-dataspace
2706 example: my-dataspace
2709 example: my-schema-set
2711 title: Anchor details by anchor Name
2716 description: multipartFile
2717 example: !!binary |-
2718 aHR0cHM6Ly9naXRodWIuY29tL29uYXAvY3BzL2Jsb2IvbWFzdGVyL2Nwcy1zZXJ2aWNlL3NyYy90
2719 ZXN0L3Jlc291cmNlcy9ib29rc3RvcmUueWFuZw==
2727 dataspaceName: my-dataspace
2730 - name: my-module-reference-name
2731 namespace: my-module-reference-namespace
2732 revision: my-module-reference-revision
2733 - name: my-module-reference-name
2734 namespace: my-module-reference-namespace
2735 revision: my-module-reference-revision
2738 example: my-dataspace
2742 $ref: '#/components/schemas/ModuleReferences'
2745 example: my-schema-set
2749 title: Schema set details by dataspace and schemasetName
2753 name: my-module-reference-name
2754 namespace: my-module-reference-namespace
2755 revision: my-module-reference-revision
2758 example: my-module-reference-name
2761 example: my-module-reference-namespace
2764 example: my-module-reference-revision
2766 title: Module reference object