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