DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 1 | components: |
| 2 | schemas: |
| 3 | ErrorMessage: |
| 4 | type: object |
| 5 | title: Error |
| 6 | properties: |
| 7 | status: |
| 8 | type: string |
| 9 | message: |
| 10 | type: string |
| 11 | details: |
| 12 | type: string |
| 13 | |
tragait | 2270d76 | 2021-07-08 15:42:19 +0100 | [diff] [blame] | 14 | CmHandles: |
| 15 | type: object |
| 16 | properties: |
| 17 | cmHandles: |
| 18 | type: array |
| 19 | items: |
| 20 | type: string |
| 21 | |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 22 | ModuleReferencesRequest: |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 23 | type: object |
| 24 | properties: |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 25 | cmHandleProperties: |
| 26 | $ref: '#/components/schemas/cmHandleProperties' |
| 27 | |
| 28 | ModuleResourcesReadRequest: |
| 29 | type: object |
| 30 | properties: |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 31 | data: |
| 32 | type: object |
| 33 | properties: |
| 34 | modules: |
| 35 | type: array |
| 36 | items: |
| 37 | type: object |
| 38 | properties: |
| 39 | name: |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 40 | $ref: '#/components/schemas/name' |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 41 | revision: |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 42 | $ref: '#/components/schemas/revision' |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 43 | cmHandleProperties: |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 44 | $ref: '#/components/schemas/cmHandleProperties' |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 45 | |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 46 | ModuleSet: |
| 47 | type: object |
| 48 | properties: |
| 49 | schemas: |
| 50 | type: array |
| 51 | items: |
| 52 | type: object |
| 53 | properties: |
| 54 | moduleName: |
| 55 | type: string |
| 56 | revision: |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 57 | $ref: '#/components/schemas/revision' |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 58 | namespace: |
| 59 | type: string |
| 60 | |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 61 | YangResources: |
| 62 | type: array |
| 63 | items: |
| 64 | type: object |
| 65 | $ref: '#/components/schemas/YangResource' |
| 66 | |
| 67 | YangResource: |
| 68 | properties: |
| 69 | yangSource: |
| 70 | type: string |
| 71 | moduleName: |
| 72 | type: string |
| 73 | revision: |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 74 | $ref: '#/components/schemas/revision' |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 75 | |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame^] | 76 | DataAccessRequest: |
tragait | e398be5 | 2021-08-06 17:01:31 +0100 | [diff] [blame] | 77 | type: object |
| 78 | properties: |
| 79 | operation: |
| 80 | type: string |
DylanB95EST | 5fe0dae | 2021-11-09 13:54:35 +0000 | [diff] [blame^] | 81 | enum: [ read, create, update, delete ] |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 82 | dataType: |
| 83 | type: string |
| 84 | data: |
tragait | fa11e9c | 2021-09-14 13:47:52 +0100 | [diff] [blame] | 85 | type: string |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 86 | cmHandleProperties: |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 87 | $ref: '#/components/schemas/cmHandleProperties' |
| 88 | |
| 89 | cmHandleProperties: |
| 90 | type: object |
| 91 | additionalProperties: |
| 92 | type: string |
| 93 | example: {"prop1":"value1","prop2":"value2"} |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 94 | |
niamhcore | acc0f8b | 2021-10-06 09:49:12 +0100 | [diff] [blame] | 95 | name: |
| 96 | type: string |
| 97 | example: someName |
| 98 | |
| 99 | revision: |
| 100 | type: string |
| 101 | example: someRevision |
| 102 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 103 | responses: |
| 104 | NotFound: |
| 105 | description: The specified resource was not found |
| 106 | content: |
| 107 | application/json: |
| 108 | schema: |
| 109 | $ref: '#/components/schemas/ErrorMessage' |
| 110 | Unauthorized: |
| 111 | description: Unauthorized |
| 112 | content: |
| 113 | application/json: |
| 114 | schema: |
| 115 | $ref: '#/components/schemas/ErrorMessage' |
| 116 | Forbidden: |
| 117 | description: Forbidden |
| 118 | content: |
| 119 | application/json: |
| 120 | schema: |
| 121 | $ref: '#/components/schemas/ErrorMessage' |
| 122 | BadRequest: |
| 123 | description: Bad Request |
| 124 | content: |
| 125 | application/json: |
| 126 | schema: |
| 127 | $ref: '#/components/schemas/ErrorMessage' |
| 128 | Conflict: |
| 129 | description: Conflict |
| 130 | content: |
| 131 | application/json: |
| 132 | schema: |
| 133 | $ref: '#/components/schemas/ErrorMessage' |
| 134 | Ok: |
| 135 | description: OK |
| 136 | content: |
| 137 | application/json: |
| 138 | schema: |
| 139 | type: object |
| 140 | Created: |
| 141 | description: Created |
| 142 | content: |
| 143 | text/plain: |
| 144 | schema: |
| 145 | type: string |
| 146 | NoContent: |
| 147 | description: No Content |
| 148 | content: {} |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 149 | |
| 150 | parameters: |
| 151 | cmHandleInPath: |
| 152 | name: cmHandle |
| 153 | in: path |
| 154 | description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy |
| 155 | required: true |
| 156 | schema: |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 157 | type: string |
| 158 | |
niamhcore | 2fb3f66 | 2021-09-29 15:32:32 +0100 | [diff] [blame] | 159 | resourceIdentifierInQuery: |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 160 | name: resourceIdentifier |
niamhcore | 2fb3f66 | 2021-09-29 15:32:32 +0100 | [diff] [blame] | 161 | in: query |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 162 | description: Resource identifier to get/set the resource data |
| 163 | required: true |
niamhcore | 2fb3f66 | 2021-09-29 15:32:32 +0100 | [diff] [blame] | 164 | allowReserved: true |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 165 | schema: |
| 166 | type: string |
| 167 | |
| 168 | acceptParamInHeader: |
| 169 | name: accept |
| 170 | in: header |
| 171 | description: Accept parameter for response, if accept parameter is null, that means client can accept any format. |
| 172 | schema: |
| 173 | type: string |
| 174 | enum: [ application/json, application/yang-data+json ] |
| 175 | |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 176 | optionsParamInQuery: |
| 177 | name: options |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 178 | in: query |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 179 | description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'. |
tragait | f01d567 | 2021-08-19 11:19:54 +0100 | [diff] [blame] | 180 | required: false |
| 181 | schema: |
| 182 | type: string |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 183 | allowReserved: true |
| 184 | examples: |
| 185 | sample1: |
| 186 | value: |
| 187 | options: (key1=value1,key2=value2) |
| 188 | sample2: |
| 189 | value: |
| 190 | options: (key1=value1,key2=value1/value2) |
| 191 | sample3: |
| 192 | value: |
| 193 | options: (key1=10,key2=value2,key3=[val31,val32]) |