shivasubedi | 8df61a9 | 2021-06-16 14:43:18 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (c) 2021 Bell Canada. |
| 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
shivasubedi | 8df61a9 | 2021-06-16 14:43:18 +0100 | [diff] [blame] | 17 | # ============LICENSE_END========================================================= |
| 18 | |
Rishi.Chail | dacc663 | 2021-01-27 04:27:34 +0000 | [diff] [blame] | 19 | dataspaces: |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 20 | post: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 21 | description: Create a new dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 22 | tags: |
| 23 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 24 | summary: Create a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 25 | operationId: createDataspace |
| 26 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 27 | - $ref: 'components.yml#/components/parameters/dataspaceNameInQuery' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 28 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 29 | '201': |
| 30 | $ref: 'components.yml#/components/responses/Created' |
| 31 | '400': |
| 32 | $ref: 'components.yml#/components/responses/BadRequest' |
| 33 | '401': |
| 34 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 35 | '403': |
| 36 | $ref: 'components.yml#/components/responses/Forbidden' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 37 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 38 | schemaSet: |
| 39 | post: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 40 | description: Create a new schema set in the given dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 41 | tags: |
| 42 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 43 | summary: Create a schema set |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 44 | operationId: createSchemaSet |
| 45 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 46 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 47 | - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 48 | requestBody: |
| 49 | required: true |
| 50 | content: |
| 51 | multipart/form-data: |
| 52 | schema: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 53 | $ref: 'components.yml#/components/schemas/MultipartFile' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 54 | |
| 55 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 56 | '201': |
| 57 | $ref: 'components.yml#/components/responses/Created' |
| 58 | '400': |
| 59 | $ref: 'components.yml#/components/responses/BadRequest' |
| 60 | '401': |
| 61 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 62 | '403': |
| 63 | $ref: 'components.yml#/components/responses/Forbidden' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 64 | |
| 65 | schemaSetBySchemaSetName: |
| 66 | get: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 67 | description: Read a schema set given a schema set name and a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 68 | tags: |
| 69 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 70 | summary: Get a schema set |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 71 | operationId: getSchemaSet |
| 72 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 73 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 74 | - $ref: 'components.yml#/components/parameters/schemaSetNameInPath' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 75 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 76 | '200': |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 77 | description: OK |
| 78 | content: |
| 79 | application/json: |
| 80 | schema: |
| 81 | $ref: 'components.yml#/components/schemas/SchemaSetDetails' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 82 | '400': |
| 83 | $ref: 'components.yml#/components/responses/BadRequest' |
| 84 | '401': |
| 85 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 86 | '403': |
| 87 | $ref: 'components.yml#/components/responses/Forbidden' |
| 88 | '404': |
| 89 | $ref: 'components.yml#/components/responses/NotFound' |
| 90 | |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 91 | delete: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 92 | description: Delete a schema set given a schema set name and a dataspace |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 93 | tags: |
| 94 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 95 | summary: Delete a schema set |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 96 | operationId: deleteSchemaSet |
| 97 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 98 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 99 | - $ref: 'components.yml#/components/parameters/schemaSetNameInPath' |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 100 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 101 | '204': |
| 102 | $ref: 'components.yml#/components/responses/NoContent' |
| 103 | '400': |
| 104 | $ref: 'components.yml#/components/responses/BadRequest' |
| 105 | '401': |
| 106 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 107 | '403': |
| 108 | $ref: 'components.yml#/components/responses/Forbidden' |
| 109 | '409': |
| 110 | $ref: 'components.yml#/components/responses/Conflict' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 111 | |
| 112 | anchorsByDataspace: |
| 113 | get: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 114 | description: Read all anchors, given a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 115 | tags: |
| 116 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 117 | summary: Get anchors |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 118 | operationId: getAnchors |
| 119 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 120 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 121 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 122 | '200': |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 123 | description: OK |
| 124 | content: |
| 125 | application/json: |
| 126 | schema: |
| 127 | type: array |
| 128 | items: |
| 129 | $ref: 'components.yml#/components/schemas/AnchorDetails' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 130 | '400': |
| 131 | $ref: 'components.yml#/components/responses/BadRequest' |
| 132 | '401': |
| 133 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 134 | '403': |
| 135 | $ref: 'components.yml#/components/responses/Forbidden' |
| 136 | '404': |
| 137 | $ref: 'components.yml#/components/responses/NotFound' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 138 | |
| 139 | post: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 140 | description: Create a new anchor in the given dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 141 | tags: |
| 142 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 143 | summary: Create an anchor |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 144 | operationId: createAnchor |
| 145 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 146 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 147 | - $ref: 'components.yml#/components/parameters/schemaSetNameInQuery' |
| 148 | - $ref: 'components.yml#/components/parameters/anchorNameInQuery' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 149 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 150 | '201': |
| 151 | $ref: 'components.yml#/components/responses/Created' |
| 152 | '400': |
| 153 | $ref: 'components.yml#/components/responses/BadRequest' |
| 154 | '401': |
| 155 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 156 | '403': |
| 157 | $ref: 'components.yml#/components/responses/Forbidden' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 158 | |
| 159 | anchorByDataspaceAndAnchorName: |
| 160 | get: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 161 | description: Read an anchor given an anchor name and a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 162 | tags: |
| 163 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 164 | summary: Get an anchor |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 165 | operationId: getAnchor |
| 166 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 167 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 168 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 169 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 170 | '200': |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 171 | description: OK |
| 172 | content: |
| 173 | application/json: |
| 174 | schema: |
| 175 | $ref: 'components.yml#/components/schemas/AnchorDetails' |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 176 | '400': |
| 177 | $ref: 'components.yml#/components/responses/BadRequest' |
| 178 | '401': |
| 179 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 180 | '403': |
| 181 | $ref: 'components.yml#/components/responses/Forbidden' |
| 182 | '404': |
| 183 | $ref: 'components.yml#/components/responses/NotFound' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 184 | |
| 185 | delete: |
Ruslan Kashapov | b20858b | 2021-04-05 14:46:03 +0300 | [diff] [blame] | 186 | description: Delete an anchor given an anchor name and a dataspace |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 187 | tags: |
| 188 | - cps-admin |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 189 | summary: Delete an anchor |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 190 | operationId: deleteAnchor |
| 191 | parameters: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 192 | - $ref: 'components.yml#/components/parameters/dataspaceNameInPath' |
| 193 | - $ref: 'components.yml#/components/parameters/anchorNameInPath' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 194 | responses: |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 195 | '204': |
| 196 | $ref: 'components.yml#/components/responses/NoContent' |
| 197 | '400': |
| 198 | $ref: 'components.yml#/components/responses/BadRequest' |
| 199 | '401': |
| 200 | $ref: 'components.yml#/components/responses/Unauthorized' |
| 201 | '403': |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 202 | $ref: 'components.yml#/components/responses/Forbidden' |