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 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 19 | components: |
| 20 | schemas: |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 21 | |
| 22 | AnchorDetails: |
| 23 | type: object |
| 24 | title: Anchor details by anchor Name |
| 25 | properties: |
| 26 | name: |
| 27 | type: string |
| 28 | example: my_anchor |
| 29 | dataspaceName: |
| 30 | type: string |
| 31 | example: my_dataspace |
| 32 | schemaSetName: |
| 33 | type: string |
| 34 | example: my_schema_set |
| 35 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 36 | ErrorMessage: |
| 37 | type: object |
| 38 | title: Error |
| 39 | properties: |
| 40 | status: |
| 41 | type: string |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 42 | example: 400 |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 43 | message: |
| 44 | type: string |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 45 | example: Dataspace not found |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 46 | details: |
| 47 | type: string |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 48 | example: Dataspace with name D1 does not exist. |
| 49 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 50 | MultipartFile: |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 51 | type: object |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 52 | required: |
| 53 | - file |
| 54 | properties: |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 55 | file: |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 56 | type: string |
| 57 | description: multipartFile |
| 58 | format: binary |
Rishi.Chail | 6d13f16 | 2021-01-26 05:58:39 +0000 | [diff] [blame] | 59 | example: http://example.com/examples/example.yang |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 60 | |
JosephKeenan | c6865f3 | 2021-06-08 13:16:37 +0100 | [diff] [blame] | 61 | ModuleReferences: |
| 62 | type: object |
| 63 | title: Module reference object |
| 64 | properties: |
| 65 | name: |
| 66 | type: string |
| 67 | example: module_reference_name |
| 68 | namespace: |
| 69 | type: string |
| 70 | example: module_reference_namespace |
| 71 | revision: |
| 72 | type: string |
| 73 | example: module_reference_revision |
| 74 | |
| 75 | SchemaSetDetails: |
| 76 | type: object |
| 77 | title: Schema set details by dataspace and schemasetName |
| 78 | properties: |
| 79 | dataspaceName: |
| 80 | type: string |
| 81 | example: my_dataspace |
| 82 | moduleReferences: |
| 83 | type: array |
| 84 | items: |
| 85 | $ref: '#/components/schemas/ModuleReferences' |
| 86 | name: |
| 87 | type: string |
| 88 | example: my_schema_set |
| 89 | |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 90 | parameters: |
| 91 | dataspaceNameInQuery: |
| 92 | name: dataspace-name |
| 93 | in: query |
| 94 | description: dataspace-name |
| 95 | required: true |
| 96 | schema: |
| 97 | type: string |
| 98 | dataspaceNameInPath: |
| 99 | name: dataspace-name |
| 100 | in: path |
| 101 | description: dataspace-name |
| 102 | required: true |
| 103 | schema: |
| 104 | type: string |
| 105 | anchorNameInPath: |
| 106 | name: anchor-name |
| 107 | in: path |
| 108 | description: anchor-name |
| 109 | required: true |
| 110 | schema: |
| 111 | type: string |
| 112 | schemaSetNameInQuery: |
| 113 | name: schema-set-name |
| 114 | in: query |
| 115 | description: schema-set-name |
| 116 | required: true |
| 117 | schema: |
| 118 | type: string |
| 119 | schemaSetNameInPath: |
| 120 | name: schema-set-name |
| 121 | in: path |
| 122 | description: schema-set-name |
| 123 | required: true |
| 124 | schema: |
| 125 | type: string |
| 126 | anchorNameInQuery: |
| 127 | name: anchor-name |
| 128 | in: query |
| 129 | description: anchor-name |
| 130 | required: true |
| 131 | schema: |
| 132 | type: string |
Ruslan Kashapov | 2098392 | 2021-02-01 10:47:25 +0200 | [diff] [blame] | 133 | xpathInQuery: |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 134 | name: xpath |
Ruslan Kashapov | 2098392 | 2021-02-01 10:47:25 +0200 | [diff] [blame] | 135 | in: query |
Ruslan Kashapov | 24c72db | 2021-02-09 17:25:18 +0200 | [diff] [blame] | 136 | description: xpath |
Ruslan Kashapov | 2098392 | 2021-02-01 10:47:25 +0200 | [diff] [blame] | 137 | required: false |
| 138 | schema: |
| 139 | type: string |
| 140 | default: / |
Ruslan Kashapov | 0905ac1 | 2021-05-05 13:11:50 +0300 | [diff] [blame] | 141 | requiredXpathInQuery: |
| 142 | name: xpath |
| 143 | in: query |
| 144 | description: xpath |
| 145 | required: true |
| 146 | schema: |
| 147 | type: string |
niamhcore | 53f07ac | 2021-02-19 13:14:40 +0000 | [diff] [blame] | 148 | cpsPathInQuery: |
| 149 | name: cps-path |
| 150 | in: query |
| 151 | description: cps-path |
| 152 | required: false |
| 153 | schema: |
| 154 | type: string |
| 155 | default: / |
Ruslan Kashapov | 2098392 | 2021-02-01 10:47:25 +0200 | [diff] [blame] | 156 | includeDescendantsOptionInQuery: |
| 157 | name: include-descendants |
| 158 | in: query |
| 159 | description: include-descendants |
| 160 | required: false |
| 161 | schema: |
| 162 | type: boolean |
| 163 | default: false |
aditya puthuparambil | 673c6d9 | 2021-08-24 17:44:34 +0100 | [diff] [blame] | 164 | observedTimestampInQuery: |
| 165 | name: observed-timestamp |
| 166 | in: query |
| 167 | description: observed-timestamp |
| 168 | required: false |
| 169 | schema: |
| 170 | type: string |
| 171 | example: '2021-03-21T00:10:34.030-0100' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 172 | |
| 173 | responses: |
| 174 | NotFound: |
| 175 | description: The specified resource was not found |
| 176 | content: |
| 177 | application/json: |
| 178 | schema: |
| 179 | $ref: '#/components/schemas/ErrorMessage' |
| 180 | Unauthorized: |
| 181 | description: Unauthorized |
| 182 | content: |
| 183 | application/json: |
| 184 | schema: |
| 185 | $ref: '#/components/schemas/ErrorMessage' |
| 186 | Forbidden: |
| 187 | description: Forbidden |
| 188 | content: |
| 189 | application/json: |
| 190 | schema: |
| 191 | $ref: '#/components/schemas/ErrorMessage' |
| 192 | BadRequest: |
| 193 | description: Bad Request |
| 194 | content: |
| 195 | application/json: |
| 196 | schema: |
| 197 | $ref: '#/components/schemas/ErrorMessage' |
Ruslan Kashapov | dce4e31 | 2021-01-11 15:34:10 +0200 | [diff] [blame] | 198 | Conflict: |
| 199 | description: Conflict |
| 200 | content: |
| 201 | application/json: |
| 202 | schema: |
| 203 | $ref: '#/components/schemas/ErrorMessage' |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 204 | Ok: |
| 205 | description: OK |
| 206 | content: |
| 207 | application/json: |
| 208 | schema: |
| 209 | type: object |
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 210 | example: { "key": "value" } |
puthuparambil.aditya | 001e773 | 2021-01-13 12:06:20 +0000 | [diff] [blame] | 211 | Created: |
| 212 | description: Created |
| 213 | content: |
| 214 | text/plain: |
| 215 | schema: |
| 216 | type: string |
| 217 | NoContent: |
| 218 | description: No Content |
| 219 | content: {} |