blob: c33cf168e292dcb5dcd6ba20b37539cdcdedf8db [file] [log] [blame]
puthuparambil.aditya001e7732021-01-13 12:06:20 +00001nodesByDataspaceAndAnchor:
2 get:
3 tags:
4 - cps-data
5 summary: Get a node given an anchor for the given dataspace - DRAFT
6 operationId: getNodeByDataspaceAndAnchor
7 parameters:
8 - $ref: 'components.yaml#/components/parameters/dataspaceNameInPath'
9 - $ref: 'components.yaml#/components/parameters/anchorNameInPath'
10 responses:
11 200:
12 $ref: 'components.yaml#/components/responses/Ok'
13 400:
14 $ref: 'components.yaml#/components/responses/BadRequest'
15 401:
16 $ref: 'components.yaml#/components/responses/Unauthorized'
17 403:
18 $ref: 'components.yaml#/components/responses/Forbidden'
19 404:
20 $ref: 'components.yaml#/components/responses/NotFound'
21 x-codegen-request-body-name: xpath
22
23nodesByDataspace:
24 get:
25 tags:
26 - cps-data
27 summary: Get all nodes for a given dataspace using an xpath or schema node identifier - DRAFT
28 operationId: getNode
29 parameters:
30 - $ref: 'components.yaml#/components/parameters/dataspaceNameInPath'
31 responses:
32 200:
33 $ref: 'components.yaml#/components/responses/Ok'
34 400:
35 $ref: 'components.yaml#/components/responses/BadRequest'
36 401:
37 $ref: 'components.yaml#/components/responses/Unauthorized'
38 403:
39 $ref: 'components.yaml#/components/responses/Forbidden'
40 404:
41 $ref: 'components.yaml#/components/responses/NotFound'
42 x-codegen-request-body-name: requestBody
43
44 post:
45 tags:
46 - cps-data
47 summary: Create a node for a given anchor for the given dataspace - DRAFT
48 operationId: createNode
49 parameters:
50 - $ref: 'components.yaml#/components/parameters/dataspaceNameInPath'
51 requestBody:
52 content:
53 multipart/form-data:
54 schema:
55 $ref: 'components.yaml#/components/schemas/MultipartFile'
56 required: true
57 responses:
58 201:
59 $ref: 'components.yaml#/components/responses/Created'
60 400:
61 $ref: 'components.yaml#/components/responses/BadRequest'
62 401:
63 $ref: 'components.yaml#/components/responses/Unauthorized'
64 403:
65 $ref: 'components.yaml#/components/responses/Forbidden'