blob: aa8a31dfcb0da1530316a6176444609fc40fc911 [file] [log] [blame]
Rishi.Chaildacc6632021-01-27 04:27:34 +00001nodeByDataspaceAndAnchor:
puthuparambil.aditya001e7732021-01-13 12:06:20 +00002 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +00003 description: Get a node with an option to retrieve all the children for a given anchor and dataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +00004 tags:
5 - cps-data
Rishi.Chail6d13f162021-01-26 05:58:39 +00006 summary: Get a node
puthuparambil.aditya001e7732021-01-13 12:06:20 +00007 operationId: getNodeByDataspaceAndAnchor
8 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +00009 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
10 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
11 - $ref: 'components.yml#/components/parameters/xpathInQuery'
12 - $ref: 'components.yml#/components/parameters/includeDescendantsOptionInQuery'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000013 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000014 '200':
15 $ref: 'components.yml#/components/responses/Ok'
16 '400':
17 $ref: 'components.yml#/components/responses/BadRequest'
18 '401':
19 $ref: 'components.yml#/components/responses/Unauthorized'
20 '403':
21 $ref: 'components.yml#/components/responses/Forbidden'
22 '404':
23 $ref: 'components.yml#/components/responses/NotFound'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000024 x-codegen-request-body-name: xpath
25
Ruslan Kashapov0905ac12021-05-05 13:11:50 +030026listNodeByDataspaceAndAnchor:
27 post:
28 description: Add list-node child elements to existing node for a given anchor and dataspace
29 tags:
30 - cps-data
31 summary: Add list-node child element(s) under existing parent node
32 operationId: addListNodeElements
33 parameters:
34 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
35 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
36 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
37 requestBody:
38 required: true
39 content:
40 application/json:
41 schema:
42 type: string
43 responses:
44 '201':
45 $ref: 'components.yml#/components/responses/Created'
46 '400':
47 $ref: 'components.yml#/components/responses/BadRequest'
48 '401':
49 $ref: 'components.yml#/components/responses/Unauthorized'
50 '403':
51 $ref: 'components.yml#/components/responses/Forbidden'
52
Ruslan Kashapov576f48e2021-05-14 14:41:05 +030053 patch:
54 description: Replace list-node child elements under existing node for a given anchor and dataspace
55 tags:
56 - cps-data
57 summary: Replace list-node child element(s) under existing parent node
58 operationId: replaceListNodeElements
59 parameters:
60 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
61 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
62 - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
63 requestBody:
64 required: true
65 content:
66 application/json:
67 schema:
68 type: string
69 responses:
70 '200':
71 $ref: 'components.yml#/components/responses/Created'
72 '400':
73 $ref: 'components.yml#/components/responses/BadRequest'
74 '401':
75 $ref: 'components.yml#/components/responses/Unauthorized'
76 '403':
77 $ref: 'components.yml#/components/responses/Forbidden'
78
Rishi.Chaildacc6632021-01-27 04:27:34 +000079nodesByDataspaceAndAnchor:
niamhcore74753d92021-01-28 16:11:52 +000080 post:
Rishi.Chail6d13f162021-01-26 05:58:39 +000081 description: Create a node for a given anchor and dataspace
niamhcore74753d92021-01-28 16:11:52 +000082 tags:
83 - cps-data
Rishi.Chail6d13f162021-01-26 05:58:39 +000084 summary: Create a node
niamhcore74753d92021-01-28 16:11:52 +000085 operationId: createNode
86 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +000087 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
88 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
Ruslan Kashapov24bf3502021-04-19 12:40:01 +030089 - $ref: 'components.yml#/components/parameters/xpathInQuery'
niamhcore74753d92021-01-28 16:11:52 +000090 requestBody:
91 required: true
92 content:
93 application/json:
94 schema:
95 type: string
96 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000097 '201':
98 $ref: 'components.yml#/components/responses/Created'
99 '400':
100 $ref: 'components.yml#/components/responses/BadRequest'
101 '401':
102 $ref: 'components.yml#/components/responses/Unauthorized'
103 '403':
104 $ref: 'components.yml#/components/responses/Forbidden'
niamhcore74753d92021-01-28 16:11:52 +0000105
Ruslan Kashapov24c72db2021-02-09 17:25:18 +0200106 patch:
107 description: Update a data node leaves for a given dataspace and anchor and a parent node xpath
108 tags:
109 - cps-data
110 summary: Update node leaves
111 operationId: updateNodeLeaves
112 parameters:
113 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
114 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
115 - $ref: 'components.yml#/components/parameters/xpathInQuery'
116 requestBody:
117 required: true
118 content:
119 application/json:
120 schema:
121 type: string
122 responses:
123 '200':
124 $ref: 'components.yml#/components/responses/Ok'
125 '400':
126 $ref: 'components.yml#/components/responses/BadRequest'
127 '401':
128 $ref: 'components.yml#/components/responses/Unauthorized'
129 '403':
130 $ref: 'components.yml#/components/responses/Forbidden'
131
132 put:
133 description: Replace a node with descendants for a given dataspace, anchor and a parent node xpath
134 tags:
135 - cps-data
136 summary: Replace a node with descendants
137 operationId: replaceNode
138 parameters:
139 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
140 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
141 - $ref: 'components.yml#/components/parameters/xpathInQuery'
142 requestBody:
143 required: true
144 content:
145 application/json:
146 schema:
147 type: string
148 responses:
149 '200':
150 $ref: 'components.yml#/components/responses/Ok'
151 '400':
152 $ref: 'components.yml#/components/responses/BadRequest'
153 '401':
154 $ref: 'components.yml#/components/responses/Unauthorized'
155 '403':
156 $ref: 'components.yml#/components/responses/Forbidden'
157
158
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000159nodesByDataspace:
160 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000161 description: Get all nodes for a given dataspace using an xpath or schema node identifier - DRAFT
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000162 tags:
163 - cps-data
Rishi.Chail6d13f162021-01-26 05:58:39 +0000164 summary: Get nodes
165 operationId: getNodesByDataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000166 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000167 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000168 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000169 '200':
170 $ref: 'components.yml#/components/responses/Ok'
171 '400':
172 $ref: 'components.yml#/components/responses/BadRequest'
173 '401':
174 $ref: 'components.yml#/components/responses/Unauthorized'
175 '403':
176 $ref: 'components.yml#/components/responses/Forbidden'
177 '404':
178 $ref: 'components.yml#/components/responses/NotFound'
179 x-codegen-request-body-name: requestBody