3 title: ONAP Open API v3 Configuration Persistence Service
4 description: Configuration Persistence Service is a Model Driven Generic Database
7 url: https://onap.readthedocs.io
8 email: onap-discuss@lists.onap.org
11 url: http://www.apache.org/licenses/LICENSE-2.0
13 x-planned-retirement-date: "202212"
23 description: cps Admin
31 summary: Create a dataspace
32 description: Create a new dataspace
33 operationId: createDataspace
35 - name: dataspace-name
37 description: dataspace-name
51 description: Bad Request
55 $ref: '#/components/schemas/ErrorMessage'
59 details: The provided request is not valid
61 description: Unauthorized
65 $ref: '#/components/schemas/ErrorMessage'
68 message: Unauthorized request
69 details: This request is unauthorized
71 description: Forbidden
75 $ref: '#/components/schemas/ErrorMessage'
78 message: Request Forbidden
79 details: This request is forbidden
85 $ref: '#/components/schemas/ErrorMessage'
88 message: Conflicting request
89 details: The request cannot be processed as the resource is in use.
91 description: Internal Server Error
95 $ref: '#/components/schemas/ErrorMessage'
98 message: Internal Server Error
99 details: Internal Server Error occurred
101 /{apiVersion}/dataspaces:
105 summary: Delete a dataspace
106 description: Delete a dataspace
107 operationId: deleteDataspace
111 description: apiVersion
119 - name: dataspace-name
121 description: dataspace-name
125 example: my-dataspace
128 description: No Content
131 description: Bad Request
135 $ref: '#/components/schemas/ErrorMessage'
139 details: The provided request is not valid
141 description: Unauthorized
145 $ref: '#/components/schemas/ErrorMessage'
148 message: Unauthorized request
149 details: This request is unauthorized
151 description: Forbidden
155 $ref: '#/components/schemas/ErrorMessage'
158 message: Request Forbidden
159 details: This request is forbidden
161 description: Conflict
165 $ref: '#/components/schemas/ErrorMessage'
168 message: Conflicting request
169 details: The request cannot be processed as the resource is in use.
171 description: Internal Server Error
175 $ref: '#/components/schemas/ErrorMessage'
178 message: Internal Server Error
179 details: Internal Server Error occurred
184 summary: Create a dataspace
185 description: Create a new dataspace
186 operationId: createDataspaceV2
188 - name: dataspace-name
190 description: dataspace-name
194 example: my-dataspace
197 description: Created without response body
199 description: Bad Request
203 $ref: '#/components/schemas/ErrorMessage'
207 details: The provided request is not valid
209 description: Unauthorized
213 $ref: '#/components/schemas/ErrorMessage'
216 message: Unauthorized request
217 details: This request is unauthorized
219 description: Forbidden
223 $ref: '#/components/schemas/ErrorMessage'
226 message: Request Forbidden
227 details: This request is forbidden
229 description: Conflict
233 $ref: '#/components/schemas/ErrorMessage'
236 message: Conflicting request
237 details: The request cannot be processed as the resource is in use.
239 description: Internal Server Error
243 $ref: '#/components/schemas/ErrorMessage'
246 message: Internal Server Error
247 details: Internal Server Error occurred
248 /{apiVersion}/admin/dataspaces:
252 summary: Get all dataspaces
253 description: Read all dataspaces
254 operationId: getAllDataspaces
258 description: apiVersion
274 $ref: '#/components/schemas/DataspaceDetails'
276 description: Bad Request
280 $ref: '#/components/schemas/ErrorMessage'
284 details: The provided request is not valid
286 description: Unauthorized
290 $ref: '#/components/schemas/ErrorMessage'
293 message: Unauthorized request
294 details: This request is unauthorized
296 description: Forbidden
300 $ref: '#/components/schemas/ErrorMessage'
303 message: Request Forbidden
304 details: This request is forbidden
306 description: Internal Server Error
310 $ref: '#/components/schemas/ErrorMessage'
313 message: Internal Server Error
314 details: Internal Server Error occurred
315 /{apiVersion}/admin/dataspaces/{dataspace-name}:
319 summary: Get a dataspace
320 description: Read a dataspace given a dataspace name
321 operationId: getDataspace
325 description: apiVersion
333 - name: dataspace-name
335 description: dataspace-name
339 example: my-dataspace
346 $ref: '#/components/schemas/DataspaceDetails'
348 description: Bad Request
352 $ref: '#/components/schemas/ErrorMessage'
356 details: The provided request is not valid
358 description: Unauthorized
362 $ref: '#/components/schemas/ErrorMessage'
365 message: Unauthorized request
366 details: This request is unauthorized
368 description: Forbidden
372 $ref: '#/components/schemas/ErrorMessage'
375 message: Request Forbidden
376 details: This request is forbidden
378 description: Internal Server Error
382 $ref: '#/components/schemas/ErrorMessage'
385 message: Internal Server Error
386 details: Internal Server Error occurred
387 /v1/dataspaces/{dataspace-name}/anchors:
391 summary: Create an anchor
392 description: Create a new anchor in the given dataspace
393 operationId: createAnchor
395 - name: dataspace-name
397 description: dataspace-name
401 example: my-dataspace
402 - name: schema-set-name
404 description: schema-set-name
408 example: my-schema-set
411 description: anchor-name
425 description: Bad Request
429 $ref: '#/components/schemas/ErrorMessage'
433 details: The provided request is not valid
435 description: Unauthorized
439 $ref: '#/components/schemas/ErrorMessage'
442 message: Unauthorized request
443 details: This request is unauthorized
445 description: Forbidden
449 $ref: '#/components/schemas/ErrorMessage'
452 message: Request Forbidden
453 details: This request is forbidden
455 description: Conflict
459 $ref: '#/components/schemas/ErrorMessage'
462 message: Conflicting request
463 details: The request cannot be processed as the resource is in use.
465 description: Internal Server Error
469 $ref: '#/components/schemas/ErrorMessage'
472 message: Internal Server Error
473 details: Internal Server Error occurred
475 /v2/dataspaces/{dataspace-name}/anchors:
479 summary: Create an anchor
480 description: Create a new anchor in the given dataspace
481 operationId: createAnchorV2
483 - name: dataspace-name
485 description: dataspace-name
489 example: my-dataspace
490 - name: schema-set-name
492 description: schema-set-name
496 example: my-schema-set
499 description: anchor-name
506 description: Created without response body
508 description: Bad Request
512 $ref: '#/components/schemas/ErrorMessage'
516 details: The provided request is not valid
518 description: Unauthorized
522 $ref: '#/components/schemas/ErrorMessage'
525 message: Unauthorized request
526 details: This request is unauthorized
528 description: Forbidden
532 $ref: '#/components/schemas/ErrorMessage'
535 message: Request Forbidden
536 details: This request is forbidden
538 description: Conflict
542 $ref: '#/components/schemas/ErrorMessage'
545 message: Conflicting request
546 details: The request cannot be processed as the resource is in use.
548 description: Internal Server Error
552 $ref: '#/components/schemas/ErrorMessage'
555 message: Internal Server Error
556 details: Internal Server Error occurred
557 /{apiVersion}/dataspaces/{dataspace-name}/anchors:
562 description: "Read all anchors, given a dataspace"
563 operationId: getAnchors
567 description: apiVersion
575 - name: dataspace-name
577 description: dataspace-name
581 example: my-dataspace
590 $ref: '#/components/schemas/AnchorDetails'
592 description: Bad Request
596 $ref: '#/components/schemas/ErrorMessage'
600 details: The provided request is not valid
602 description: Unauthorized
606 $ref: '#/components/schemas/ErrorMessage'
609 message: Unauthorized request
610 details: This request is unauthorized
612 description: Forbidden
616 $ref: '#/components/schemas/ErrorMessage'
619 message: Request Forbidden
620 details: This request is forbidden
622 description: Internal Server Error
626 $ref: '#/components/schemas/ErrorMessage'
629 message: Internal Server Error
630 details: Internal Server Error occurred
631 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}:
635 summary: Get an anchor
636 description: Read an anchor given an anchor name and a dataspace
637 operationId: getAnchor
641 description: apiVersion
649 - name: dataspace-name
651 description: dataspace-name
655 example: my-dataspace
658 description: anchor-name
669 $ref: '#/components/schemas/AnchorDetails'
671 description: Bad Request
675 $ref: '#/components/schemas/ErrorMessage'
679 details: The provided request is not valid
681 description: Unauthorized
685 $ref: '#/components/schemas/ErrorMessage'
688 message: Unauthorized request
689 details: This request is unauthorized
691 description: Forbidden
695 $ref: '#/components/schemas/ErrorMessage'
698 message: Request Forbidden
699 details: This request is forbidden
701 description: Internal Server Error
705 $ref: '#/components/schemas/ErrorMessage'
708 message: Internal Server Error
709 details: Internal Server Error occurred
713 summary: Delete an anchor
714 description: Delete an anchor given an anchor name and a dataspace
715 operationId: deleteAnchor
719 description: apiVersion
727 - name: dataspace-name
729 description: dataspace-name
733 example: my-dataspace
736 description: anchor-name
743 description: No Content
746 description: Bad Request
750 $ref: '#/components/schemas/ErrorMessage'
754 details: The provided request is not valid
756 description: Unauthorized
760 $ref: '#/components/schemas/ErrorMessage'
763 message: Unauthorized request
764 details: This request is unauthorized
766 description: Forbidden
770 $ref: '#/components/schemas/ErrorMessage'
773 message: Request Forbidden
774 details: This request is forbidden
776 description: Internal Server Error
780 $ref: '#/components/schemas/ErrorMessage'
783 message: Internal Server Error
784 details: Internal Server Error occurred
785 /v1/dataspaces/{dataspace-name}/schema-sets:
789 summary: Create a schema set
790 description: Create a new schema set in the given dataspace
791 operationId: createSchemaSet
793 - name: dataspace-name
795 description: dataspace-name
799 example: my-dataspace
800 - name: schema-set-name
802 description: schema-set-name
806 example: my-schema-set
811 $ref: '#/components/schemas/MultipartFile'
822 description: Bad Request
826 $ref: '#/components/schemas/ErrorMessage'
830 details: The provided request is not valid
832 description: Unauthorized
836 $ref: '#/components/schemas/ErrorMessage'
839 message: Unauthorized request
840 details: This request is unauthorized
842 description: Forbidden
846 $ref: '#/components/schemas/ErrorMessage'
849 message: Request Forbidden
850 details: This request is forbidden
852 description: Conflict
856 $ref: '#/components/schemas/ErrorMessage'
859 message: Conflicting request
860 details: The request cannot be processed as the resource is in use.
862 description: Internal Server Error
866 $ref: '#/components/schemas/ErrorMessage'
869 message: Internal Server Error
870 details: Internal Server Error occurred
872 /v2/dataspaces/{dataspace-name}/schema-sets:
876 summary: Create a schema set
877 description: Create a new schema set in the given dataspace
878 operationId: createSchemaSetV2
880 - name: dataspace-name
882 description: dataspace-name
886 example: my-dataspace
887 - name: schema-set-name
889 description: schema-set-name
893 example: my-schema-set
898 $ref: '#/components/schemas/MultipartFile'
902 description: Created without response body
904 description: Bad Request
908 $ref: '#/components/schemas/ErrorMessage'
912 details: The provided request is not valid
914 description: Unauthorized
918 $ref: '#/components/schemas/ErrorMessage'
921 message: Unauthorized request
922 details: This request is unauthorized
924 description: Forbidden
928 $ref: '#/components/schemas/ErrorMessage'
931 message: Request Forbidden
932 details: This request is forbidden
934 description: Conflict
938 $ref: '#/components/schemas/ErrorMessage'
941 message: Conflicting request
942 details: The request cannot be processed as the resource is in use.
944 description: Internal Server Error
948 $ref: '#/components/schemas/ErrorMessage'
951 message: Internal Server Error
952 details: Internal Server Error occurred
953 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets:
957 summary: Get schema sets
958 description: "Read all schema sets, given a dataspace"
959 operationId: getSchemaSets
963 description: apiVersion
971 - name: dataspace-name
973 description: dataspace-name
977 example: my-dataspace
986 $ref: '#/components/schemas/SchemaSetDetails'
988 description: Bad Request
992 $ref: '#/components/schemas/ErrorMessage'
996 details: The provided request is not valid
998 description: Unauthorized
1002 $ref: '#/components/schemas/ErrorMessage'
1005 message: Unauthorized request
1006 details: This request is unauthorized
1008 description: Forbidden
1012 $ref: '#/components/schemas/ErrorMessage'
1015 message: Request Forbidden
1016 details: This request is forbidden
1018 description: Internal Server Error
1022 $ref: '#/components/schemas/ErrorMessage'
1025 message: Internal Server Error
1026 details: Internal Server Error occurred
1027 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets/{schema-set-name}:
1031 summary: Get a schema set
1032 description: Read a schema set given a schema set name and a dataspace
1033 operationId: getSchemaSet
1037 description: apiVersion
1045 - name: dataspace-name
1047 description: dataspace-name
1051 example: my-dataspace
1052 - name: schema-set-name
1054 description: schema-set-name
1058 example: my-schema-set
1065 $ref: '#/components/schemas/SchemaSetDetails'
1067 description: Bad Request
1071 $ref: '#/components/schemas/ErrorMessage'
1074 message: Bad Request
1075 details: The provided request is not valid
1077 description: Unauthorized
1081 $ref: '#/components/schemas/ErrorMessage'
1084 message: Unauthorized request
1085 details: This request is unauthorized
1087 description: Forbidden
1091 $ref: '#/components/schemas/ErrorMessage'
1094 message: Request Forbidden
1095 details: This request is forbidden
1097 description: Internal Server Error
1101 $ref: '#/components/schemas/ErrorMessage'
1104 message: Internal Server Error
1105 details: Internal Server Error occurred
1109 summary: Delete a schema set
1110 description: Delete a schema set given a schema set name and a dataspace
1111 operationId: deleteSchemaSet
1115 description: apiVersion
1123 - name: dataspace-name
1125 description: dataspace-name
1129 example: my-dataspace
1130 - name: schema-set-name
1132 description: schema-set-name
1136 example: my-schema-set
1139 description: No Content
1142 description: Bad Request
1146 $ref: '#/components/schemas/ErrorMessage'
1149 message: Bad Request
1150 details: The provided request is not valid
1152 description: Unauthorized
1156 $ref: '#/components/schemas/ErrorMessage'
1159 message: Unauthorized request
1160 details: This request is unauthorized
1162 description: Forbidden
1166 $ref: '#/components/schemas/ErrorMessage'
1169 message: Request Forbidden
1170 details: This request is forbidden
1172 description: Conflict
1176 $ref: '#/components/schemas/ErrorMessage'
1179 message: Conflicting request
1180 details: The request cannot be processed as the resource is in use.
1182 description: Internal Server Error
1186 $ref: '#/components/schemas/ErrorMessage'
1189 message: Internal Server Error
1190 details: Internal Server Error occurred
1191 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
1196 description: Get a node with an option to retrieve all the children for a given
1197 anchor and dataspace
1198 operationId: getNodeByDataspaceAndAnchor
1200 - name: dataspace-name
1202 description: dataspace-name
1206 example: my-dataspace
1209 description: anchor-name
1216 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1223 value: /shops/bookstore
1224 list attributes xpath:
1225 value: "/shops/bookstore/categories[@code=1]"
1226 - name: include-descendants
1228 description: include-descendants
1243 $ref: '#/components/examples/dataSample'
1245 description: Bad Request
1249 $ref: '#/components/schemas/ErrorMessage'
1252 message: Bad Request
1253 details: The provided request is not valid
1255 description: Unauthorized
1259 $ref: '#/components/schemas/ErrorMessage'
1262 message: Unauthorized request
1263 details: This request is unauthorized
1265 description: Forbidden
1269 $ref: '#/components/schemas/ErrorMessage'
1272 message: Request Forbidden
1273 details: This request is forbidden
1275 description: Internal Server Error
1279 $ref: '#/components/schemas/ErrorMessage'
1282 message: Internal Server Error
1283 details: Internal Server Error occurred
1285 x-codegen-request-body-name: xpath
1286 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
1291 description: Get a node with an option to retrieve all the children for a given
1292 anchor and dataspace
1293 operationId: getNodeByDataspaceAndAnchorV2
1295 - name: dataspace-name
1297 description: dataspace-name
1301 example: my-dataspace
1304 description: anchor-name
1311 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1318 value: /shops/bookstore
1319 list attributes xpath:
1320 value: "/shops/bookstore/categories[@code=1]"
1323 description: "Number of descendants to query. Allowed values are 'none', 'all', -1 (for all), 0 (for none) and any positive number."
1338 $ref: '#/components/examples/dataSample'
1340 description: Bad Request
1344 $ref: '#/components/schemas/ErrorMessage'
1347 message: Bad Request
1348 details: The provided request is not valid
1350 description: Unauthorized
1354 $ref: '#/components/schemas/ErrorMessage'
1357 message: Unauthorized request
1358 details: This request is unauthorized
1360 description: Forbidden
1364 $ref: '#/components/schemas/ErrorMessage'
1367 message: Request Forbidden
1368 details: This request is forbidden
1370 description: Internal Server Error
1374 $ref: '#/components/schemas/ErrorMessage'
1377 message: Internal Server Error
1378 details: Internal Server Error occurred
1379 x-codegen-request-body-name: xpath
1380 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes:
1384 summary: Replace a node with descendants
1385 description: "Replace a node with descendants for a given dataspace, anchor\
1386 \ and a parent node xpath"
1387 operationId: replaceNode
1391 description: apiVersion
1399 - name: dataspace-name
1401 description: dataspace-name
1405 example: my-dataspace
1408 description: anchor-name
1415 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1422 value: /shops/bookstore
1423 list attributes xpath:
1424 value: "/shops/bookstore/categories[@code=1]"
1425 - name: observed-timestamp
1427 description: observed-timestamp
1431 example: 2021-03-21T00:10:34.030-0100
1439 $ref: '#/components/examples/dataSample'
1452 description: Bad Request
1456 $ref: '#/components/schemas/ErrorMessage'
1459 message: Bad Request
1460 details: The provided request is not valid
1462 description: Unauthorized
1466 $ref: '#/components/schemas/ErrorMessage'
1469 message: Unauthorized request
1470 details: This request is unauthorized
1472 description: Forbidden
1476 $ref: '#/components/schemas/ErrorMessage'
1479 message: Request Forbidden
1480 details: This request is forbidden
1482 description: Internal Server Error
1486 $ref: '#/components/schemas/ErrorMessage'
1489 message: Internal Server Error
1490 details: Internal Server Error occurred
1494 summary: Create a node
1495 description: Create a node for a given anchor and dataspace
1496 operationId: createNode
1500 description: apiVersion
1508 - name: dataspace-name
1510 description: dataspace-name
1514 example: my-dataspace
1517 description: anchor-name
1524 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1531 value: /shops/bookstore
1532 list attributes xpath:
1533 value: "/shops/bookstore/categories[@code=1]"
1534 - name: observed-timestamp
1536 description: observed-timestamp
1540 example: 2021-03-21T00:10:34.030-0100
1541 - name: Content-Type
1543 description: Content type header
1547 example: application/json
1555 $ref: '#/components/examples/dataSample'
1563 $ref: '#/components/examples/dataSampleXml'
1567 description: Created
1572 example: my-resource
1574 description: Bad Request
1578 $ref: '#/components/schemas/ErrorMessage'
1581 message: Bad Request
1582 details: The provided request is not valid
1584 description: Unauthorized
1588 $ref: '#/components/schemas/ErrorMessage'
1591 message: Unauthorized request
1592 details: This request is unauthorized
1594 description: Forbidden
1598 $ref: '#/components/schemas/ErrorMessage'
1601 message: Request Forbidden
1602 details: This request is forbidden
1604 description: Conflict
1608 $ref: '#/components/schemas/ErrorMessage'
1611 message: Conflicting request
1612 details: The request cannot be processed as the resource is in use.
1614 description: Internal Server Error
1618 $ref: '#/components/schemas/ErrorMessage'
1621 message: Internal Server Error
1622 details: Internal Server Error occurred
1626 summary: Delete a data node
1627 description: Delete a datanode for a given dataspace and anchor given a node
1629 operationId: deleteDataNode
1633 description: apiVersion
1641 - name: dataspace-name
1643 description: dataspace-name
1647 example: my-dataspace
1650 description: anchor-name
1657 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1664 value: /shops/bookstore
1665 list attributes xpath:
1666 value: "/shops/bookstore/categories[@code=1]"
1667 - name: observed-timestamp
1669 description: observed-timestamp
1673 example: 2021-03-21T00:10:34.030-0100
1676 description: No Content
1679 description: Bad Request
1683 $ref: '#/components/schemas/ErrorMessage'
1686 message: Bad Request
1687 details: The provided request is not valid
1689 description: Unauthorized
1693 $ref: '#/components/schemas/ErrorMessage'
1696 message: Unauthorized request
1697 details: This request is unauthorized
1699 description: Forbidden
1703 $ref: '#/components/schemas/ErrorMessage'
1706 message: Request Forbidden
1707 details: This request is forbidden
1709 description: Internal Server Error
1713 $ref: '#/components/schemas/ErrorMessage'
1716 message: Internal Server Error
1717 details: Internal Server Error occurred
1721 summary: Update node leaves
1722 description: Update a data node leaves for a given dataspace and anchor and
1724 operationId: updateNodeLeaves
1728 description: apiVersion
1736 - name: dataspace-name
1738 description: dataspace-name
1742 example: my-dataspace
1745 description: anchor-name
1752 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1759 value: /shops/bookstore
1760 list attributes xpath:
1761 value: "/shops/bookstore/categories[@code=1]"
1762 - name: observed-timestamp
1764 description: observed-timestamp
1768 example: 2021-03-21T00:10:34.030-0100
1776 $ref: '#/components/examples/dataSample'
1789 description: Bad Request
1793 $ref: '#/components/schemas/ErrorMessage'
1796 message: Bad Request
1797 details: The provided request is not valid
1799 description: Unauthorized
1803 $ref: '#/components/schemas/ErrorMessage'
1806 message: Unauthorized request
1807 details: This request is unauthorized
1809 description: Forbidden
1813 $ref: '#/components/schemas/ErrorMessage'
1816 message: Request Forbidden
1817 details: This request is forbidden
1819 description: Internal Server Error
1823 $ref: '#/components/schemas/ErrorMessage'
1826 message: Internal Server Error
1827 details: Internal Server Error occurred
1828 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
1832 summary: Delete one or all list element(s)
1833 description: Delete one or all list element(s) for a given anchor and dataspace
1834 operationId: deleteListOrListElement
1836 - name: dataspace-name
1838 description: dataspace-name
1842 example: my-dataspace
1845 description: anchor-name
1852 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1858 value: /shops/bookstore
1859 list attributes xpath:
1860 value: "/shops/bookstore/categories[@code=1]"
1861 - name: observed-timestamp
1863 description: observed-timestamp
1867 example: 2021-03-21T00:10:34.030-0100
1870 description: No Content
1873 description: Bad Request
1877 $ref: '#/components/schemas/ErrorMessage'
1880 message: Bad Request
1881 details: The provided request is not valid
1883 description: Unauthorized
1887 $ref: '#/components/schemas/ErrorMessage'
1890 message: Unauthorized request
1891 details: This request is unauthorized
1893 description: Forbidden
1897 $ref: '#/components/schemas/ErrorMessage'
1900 message: Request Forbidden
1901 details: This request is forbidden
1903 description: Internal Server Error
1907 $ref: '#/components/schemas/ErrorMessage'
1910 message: Internal Server Error
1911 details: Internal Server Error occurred
1913 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
1917 summary: Replace list content
1918 description: "Replace list content under a given parent, anchor and dataspace"
1919 operationId: replaceListContent
1923 description: apiVersion
1931 - name: dataspace-name
1933 description: dataspace-name
1937 example: my-dataspace
1940 description: anchor-name
1947 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
1953 value: /shops/bookstore
1954 list attributes xpath:
1955 value: "/shops/bookstore/categories[@code=1]"
1956 - name: observed-timestamp
1958 description: observed-timestamp
1962 example: 2021-03-21T00:10:34.030-0100
1970 $ref: '#/components/examples/dataSample'
1983 description: Bad Request
1987 $ref: '#/components/schemas/ErrorMessage'
1990 message: Bad Request
1991 details: The provided request is not valid
1993 description: Unauthorized
1997 $ref: '#/components/schemas/ErrorMessage'
2000 message: Unauthorized request
2001 details: This request is unauthorized
2003 description: Forbidden
2007 $ref: '#/components/schemas/ErrorMessage'
2010 message: Request Forbidden
2011 details: This request is forbidden
2013 description: Internal Server Error
2017 $ref: '#/components/schemas/ErrorMessage'
2020 message: Internal Server Error
2021 details: Internal Server Error occurred
2025 summary: Add list element(s)
2026 description: Add list element(s) to a list for a given anchor and dataspace
2027 operationId: addListElements
2031 description: apiVersion
2039 - name: dataspace-name
2041 description: dataspace-name
2045 example: my-dataspace
2048 description: anchor-name
2055 description: "For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2061 value: /shops/bookstore
2062 list attributes xpath:
2063 value: "/shops/bookstore/categories[@code=1]"
2064 - name: observed-timestamp
2066 description: observed-timestamp
2070 example: 2021-03-21T00:10:34.030-0100
2078 $ref: '#/components/examples/dataSample'
2082 description: Created
2087 example: my-resource
2089 description: Bad Request
2093 $ref: '#/components/schemas/ErrorMessage'
2096 message: Bad Request
2097 details: The provided request is not valid
2099 description: Unauthorized
2103 $ref: '#/components/schemas/ErrorMessage'
2106 message: Unauthorized request
2107 details: This request is unauthorized
2109 description: Forbidden
2113 $ref: '#/components/schemas/ErrorMessage'
2116 message: Request Forbidden
2117 details: This request is forbidden
2119 description: Internal Server Error
2123 $ref: '#/components/schemas/ErrorMessage'
2126 message: Internal Server Error
2127 details: Internal Server Error occurred
2128 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
2132 summary: Query data nodes
2133 description: Query data nodes for the given dataspace and anchor using CPS path
2134 operationId: getNodesByDataspaceAndAnchorAndCpsPath
2136 - name: dataspace-name
2138 description: dataspace-name
2142 example: my-dataspace
2145 description: anchor-name
2152 description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2160 list attributes cps path:
2161 value: "//categories[@code=1]"
2162 - name: include-descendants
2164 description: include-descendants
2179 $ref: '#/components/examples/dataSample'
2181 description: Bad Request
2185 $ref: '#/components/schemas/ErrorMessage'
2188 message: Bad Request
2189 details: The provided request is not valid
2191 description: Unauthorized
2195 $ref: '#/components/schemas/ErrorMessage'
2198 message: Unauthorized request
2199 details: This request is unauthorized
2201 description: Forbidden
2205 $ref: '#/components/schemas/ErrorMessage'
2208 message: Request Forbidden
2209 details: This request is forbidden
2211 description: Internal Server Error
2215 $ref: '#/components/schemas/ErrorMessage'
2218 message: Internal Server Error
2219 details: Internal Server Error occurred
2221 x-codegen-request-body-name: xpath
2222 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
2226 summary: Query data nodes
2227 description: Query data nodes for the given dataspace and anchor using CPS path
2228 operationId: getNodesByDataspaceAndAnchorAndCpsPathV2
2230 - name: dataspace-name
2232 description: dataspace-name
2236 example: my-dataspace
2239 description: anchor-name
2246 description: "For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html"
2254 list attributes cps path:
2255 value: "//categories[@code=1]"
2258 description: "descendents to query depth of children. allowed values are none,\
2259 \ all, any number starting from -1"
2274 $ref: '#/components/examples/dataSample'
2276 description: Bad Request
2280 $ref: '#/components/schemas/ErrorMessage'
2283 message: Bad Request
2284 details: The provided request is not valid
2286 description: Unauthorized
2290 $ref: '#/components/schemas/ErrorMessage'
2293 message: Unauthorized request
2294 details: This request is unauthorized
2296 description: Forbidden
2300 $ref: '#/components/schemas/ErrorMessage'
2303 message: Request Forbidden
2304 details: This request is forbidden
2306 description: Internal Server Error
2310 $ref: '#/components/schemas/ErrorMessage'
2313 message: Internal Server Error
2314 details: Internal Server Error occurred
2315 x-codegen-request-body-name: xpath
2329 title: Dataspace details by dataspace Name
2334 example: my-dataspace
2336 title: Anchor details by anchor Name
2344 example: my-dataspace
2347 example: my-schema-set
2355 description: multipartFile
2358 title: Schema set details by dataspace and schemasetName
2365 example: my-dataspace
2369 $ref: '#/components/schemas/ModuleReferences'
2372 example: my-schema-set
2374 title: Module reference object
2379 example: my-module-reference-name
2382 example: my-module-reference-namespace
2385 example: my-module-reference-revision
2390 bookstore-name: Chapters
2397 value: <stores xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <bookstore xmlns="org:onap:ccsdk:sample">
2398 <bookstore-name>Chapters</bookstore-name> <categories> <code>1</code> <name>SciFi</name>
2399 </categories> </bookstore> </stores>