blob: eabed28365a4b2c8d7b15dc7aa5b7d75e90a0ac6 [file] [log] [blame]
puthuparambil.aditya001e7732021-01-13 12:06:20 +00001nodesByDataspaceAndAnchor:
2 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
niamhcore74753d92021-01-28 16:11:52 +000026 post:
Rishi.Chail6d13f162021-01-26 05:58:39 +000027 description: Create a node for a given anchor and dataspace
niamhcore74753d92021-01-28 16:11:52 +000028 tags:
29 - cps-data
Rishi.Chail6d13f162021-01-26 05:58:39 +000030 summary: Create a node
niamhcore74753d92021-01-28 16:11:52 +000031 operationId: createNode
32 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +000033 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
34 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
niamhcore74753d92021-01-28 16:11:52 +000035 requestBody:
36 required: true
37 content:
38 application/json:
39 schema:
40 type: string
41 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000042 '201':
43 $ref: 'components.yml#/components/responses/Created'
44 '400':
45 $ref: 'components.yml#/components/responses/BadRequest'
46 '401':
47 $ref: 'components.yml#/components/responses/Unauthorized'
48 '403':
49 $ref: 'components.yml#/components/responses/Forbidden'
niamhcore74753d92021-01-28 16:11:52 +000050
Ruslan Kashapov24c72db2021-02-09 17:25:18 +020051 patch:
52 description: Update a data node leaves for a given dataspace and anchor and a parent node xpath
53 tags:
54 - cps-data
55 summary: Update node leaves
56 operationId: updateNodeLeaves
57 parameters:
58 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
59 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
60 - $ref: 'components.yml#/components/parameters/xpathInQuery'
61 requestBody:
62 required: true
63 content:
64 application/json:
65 schema:
66 type: string
67 responses:
68 '200':
69 $ref: 'components.yml#/components/responses/Ok'
70 '400':
71 $ref: 'components.yml#/components/responses/BadRequest'
72 '401':
73 $ref: 'components.yml#/components/responses/Unauthorized'
74 '403':
75 $ref: 'components.yml#/components/responses/Forbidden'
76
77 put:
78 description: Replace a node with descendants for a given dataspace, anchor and a parent node xpath
79 tags:
80 - cps-data
81 summary: Replace a node with descendants
82 operationId: replaceNode
83 parameters:
84 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
85 - $ref: 'components.yml#/components/parameters/anchorNameInPath'
86 - $ref: 'components.yml#/components/parameters/xpathInQuery'
87 requestBody:
88 required: true
89 content:
90 application/json:
91 schema:
92 type: string
93 responses:
94 '200':
95 $ref: 'components.yml#/components/responses/Ok'
96 '400':
97 $ref: 'components.yml#/components/responses/BadRequest'
98 '401':
99 $ref: 'components.yml#/components/responses/Unauthorized'
100 '403':
101 $ref: 'components.yml#/components/responses/Forbidden'
102
103
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000104nodesByDataspace:
105 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000106 description: Get all nodes for a given dataspace using an xpath or schema node identifier - DRAFT
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000107 tags:
108 - cps-data
Rishi.Chail6d13f162021-01-26 05:58:39 +0000109 summary: Get nodes
110 operationId: getNodesByDataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000111 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000112 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +0000113 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +0000114 '200':
115 $ref: 'components.yml#/components/responses/Ok'
116 '400':
117 $ref: 'components.yml#/components/responses/BadRequest'
118 '401':
119 $ref: 'components.yml#/components/responses/Unauthorized'
120 '403':
121 $ref: 'components.yml#/components/responses/Forbidden'
122 '404':
123 $ref: 'components.yml#/components/responses/NotFound'
124 x-codegen-request-body-name: requestBody