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 | |
tragait | 400b6c7 | 2021-09-22 10:50:15 +0100 | [diff] [blame] | 22 | DmiModuleReadRequestBody: |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 23 | type: object |
| 24 | properties: |
| 25 | operation: |
| 26 | type: string |
| 27 | enum: [read] |
tragait | 400b6c7 | 2021-09-22 10:50:15 +0100 | [diff] [blame] | 28 | dataType: |
| 29 | type: string |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 30 | data: |
| 31 | type: object |
| 32 | properties: |
| 33 | modules: |
| 34 | type: array |
| 35 | items: |
| 36 | type: object |
| 37 | properties: |
| 38 | name: |
| 39 | type: string |
| 40 | revision: |
| 41 | type: string |
| 42 | cmHandleProperties: |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 43 | $ref: '#/components/schemas/cmHandleProperties' |
niamhcore | 3139ece | 2021-07-30 16:25:16 +0100 | [diff] [blame] | 44 | |
niamhcore | 577efb0 | 2021-08-11 16:13:53 +0100 | [diff] [blame] | 45 | ModuleSet: |
| 46 | type: object |
| 47 | properties: |
| 48 | schemas: |
| 49 | type: array |
| 50 | items: |
| 51 | type: object |
| 52 | properties: |
| 53 | moduleName: |
| 54 | type: string |
| 55 | revision: |
| 56 | type: string |
| 57 | namespace: |
| 58 | type: string |
| 59 | |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 60 | YangResources: |
| 61 | type: array |
| 62 | items: |
| 63 | type: object |
| 64 | $ref: '#/components/schemas/YangResource' |
| 65 | |
| 66 | YangResource: |
| 67 | properties: |
| 68 | yangSource: |
| 69 | type: string |
| 70 | moduleName: |
| 71 | type: string |
| 72 | revision: |
| 73 | type: string |
| 74 | |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 75 | DataAccessReadRequest: |
tragait | e398be5 | 2021-08-06 17:01:31 +0100 | [diff] [blame] | 76 | type: object |
| 77 | properties: |
| 78 | operation: |
| 79 | type: string |
| 80 | enum: [ read ] |
| 81 | cmHandleProperties: |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 82 | $ref: '#/components/schemas/cmHandleProperties' |
tragait | e398be5 | 2021-08-06 17:01:31 +0100 | [diff] [blame] | 83 | |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 84 | DataAccessWriteRequest: |
| 85 | type: object |
| 86 | properties: |
| 87 | operation: |
| 88 | type: string |
| 89 | enum: [ create ] |
| 90 | dataType: |
| 91 | type: string |
| 92 | data: |
tragait | fa11e9c | 2021-09-14 13:47:52 +0100 | [diff] [blame] | 93 | type: string |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 94 | cmHandleProperties: |
tragait | 907e378 | 2021-10-04 16:02:57 +0100 | [diff] [blame] | 95 | $ref: '#/components/schemas/cmHandleProperties' |
| 96 | |
| 97 | cmHandleProperties: |
| 98 | type: object |
| 99 | additionalProperties: |
| 100 | type: string |
| 101 | example: {"prop1":"value1","prop2":"value2"} |
niamhcore | 79e41e0 | 2021-08-20 11:24:06 +0100 | [diff] [blame] | 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]) |