blob: c0cd85b28d5b0bca3f1f662d15c5bda0099fa2f2 [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
Rishi.Chaildacc6632021-01-27 04:27:34 +000053nodesByDataspaceAndAnchor:
niamhcore74753d92021-01-28 16:11:52 +000054 post:
Rishi.Chail6d13f162021-01-26 05:58:39 +000055 description: Create a node for a given anchor and dataspace
niamhcore74753d92021-01-28 16:11:52 +000056 tags:
57 - cps-data
Rishi.Chail6d13f162021-01-26 05:58:39 +000058 summary: Create a node
niamhcore74753d92021-01-28 16:11:52 +000059 operationId: createNode
60 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +000061 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
62 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
Ruslan Kashapov24bf3502021-04-19 12:40:01 +030063 - $ref: 'components.yml#/components/parameters/xpathInQuery'
niamhcore74753d92021-01-28 16:11:52 +000064 requestBody:
65 required: true
66 content:
67 application/json:
68 schema:
69 type: string
70 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000071 '201':
72 $ref: 'components.yml#/components/responses/Created'
73 '400':
74 $ref: 'components.yml#/components/responses/BadRequest'
75 '401':
76 $ref: 'components.yml#/components/responses/Unauthorized'
77 '403':
78 $ref: 'components.yml#/components/responses/Forbidden'
niamhcore74753d92021-01-28 16:11:52 +000079
Ruslan Kashapov24c72db2021-02-09 17:25:18 +020080 patch:
81 description: Update a data node leaves for a given dataspace and anchor and a parent node xpath
82 tags:
83 - cps-data
84 summary: Update node leaves
85 operationId: updateNodeLeaves
86 parameters:
87 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
88 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
89 - $ref: 'components.yml#/components/parameters/xpathInQuery'
90 requestBody:
91 required: true
92 content:
93 application/json:
94 schema:
95 type: string
96 responses:
97 '200':
98 $ref: 'components.yml#/components/responses/Ok'
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'
105
106 put:
107 description: Replace a node with descendants for a given dataspace, anchor and a parent node xpath
108 tags:
109 - cps-data
110 summary: Replace a node with descendants
111 operationId: replaceNode
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
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000133nodesByDataspace:
134 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000135 description: Get all nodes for a given dataspace using an xpath or schema node identifier - DRAFT
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000136 tags:
137 - cps-data
Rishi.Chail6d13f162021-01-26 05:58:39 +0000138 summary: Get nodes
139 operationId: getNodesByDataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000140 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000141 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000142 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000143 '200':
144 $ref: 'components.yml#/components/responses/Ok'
145 '400':
146 $ref: 'components.yml#/components/responses/BadRequest'
147 '401':
148 $ref: 'components.yml#/components/responses/Unauthorized'
149 '403':
150 $ref: 'components.yml#/components/responses/Forbidden'
151 '404':
152 $ref: 'components.yml#/components/responses/NotFound'
153 x-codegen-request-body-name: requestBody