blob: 9abace2047783c824cd7890c8797d50f66cf5f7e [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
puthuparambil.aditya001e7732021-01-13 12:06:20 +000051nodesByDataspace:
52 get:
Rishi.Chail6d13f162021-01-26 05:58:39 +000053 description: Get all nodes for a given dataspace using an xpath or schema node identifier - DRAFT
puthuparambil.aditya001e7732021-01-13 12:06:20 +000054 tags:
55 - cps-data
Rishi.Chail6d13f162021-01-26 05:58:39 +000056 summary: Get nodes
57 operationId: getNodesByDataspace
puthuparambil.aditya001e7732021-01-13 12:06:20 +000058 parameters:
Rishi.Chail6d13f162021-01-26 05:58:39 +000059 - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000060 responses:
Rishi.Chail6d13f162021-01-26 05:58:39 +000061 '200':
62 $ref: 'components.yml#/components/responses/Ok'
63 '400':
64 $ref: 'components.yml#/components/responses/BadRequest'
65 '401':
66 $ref: 'components.yml#/components/responses/Unauthorized'
67 '403':
68 $ref: 'components.yml#/components/responses/Forbidden'
69 '404':
70 $ref: 'components.yml#/components/responses/NotFound'
71 x-codegen-request-body-name: requestBody