blob: c3812669fed8447a61e0334e114079ab7b018326 [file] [log] [blame]
DylanB95ESTb5a23832021-06-02 19:45:46 +01001components:
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
tragait2270d762021-07-08 15:42:19 +010014 CmHandles:
15 type: object
16 properties:
17 cmHandles:
18 type: array
lukegleeson996152a2021-11-30 17:06:03 +000019 example: ["cmHandleId1","cmHandleId2","cmHandleId3"]
tragait2270d762021-07-08 15:42:19 +010020 items:
21 type: string
22
niamhcoreacc0f8b2021-10-06 09:49:12 +010023 ModuleReferencesRequest:
niamhcore3139ece2021-07-30 16:25:16 +010024 type: object
25 properties:
niamhcoreacc0f8b2021-10-06 09:49:12 +010026 cmHandleProperties:
27 $ref: '#/components/schemas/cmHandleProperties'
28
29 ModuleResourcesReadRequest:
30 type: object
31 properties:
niamhcore3139ece2021-07-30 16:25:16 +010032 data:
33 type: object
34 properties:
35 modules:
36 type: array
37 items:
38 type: object
39 properties:
40 name:
lukegleeson996152a2021-11-30 17:06:03 +000041 type: string
42 example: my-name
niamhcore3139ece2021-07-30 16:25:16 +010043 revision:
lukegleeson996152a2021-11-30 17:06:03 +000044 type: string
45 example: my-revision
niamhcore3139ece2021-07-30 16:25:16 +010046 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +010047 $ref: '#/components/schemas/cmHandleProperties'
niamhcore3139ece2021-07-30 16:25:16 +010048
niamhcore577efb02021-08-11 16:13:53 +010049 ModuleSet:
50 type: object
51 properties:
52 schemas:
53 type: array
54 items:
55 type: object
56 properties:
57 moduleName:
58 type: string
lukegleeson996152a2021-11-30 17:06:03 +000059 example: my-module-name
niamhcore577efb02021-08-11 16:13:53 +010060 revision:
lukegleeson996152a2021-11-30 17:06:03 +000061 type: string
62 example: my-revision
niamhcore577efb02021-08-11 16:13:53 +010063 namespace:
64 type: string
lukegleeson996152a2021-11-30 17:06:03 +000065 example: my-namespace
niamhcore577efb02021-08-11 16:13:53 +010066
niamhcore4f431882021-09-21 16:08:29 +010067 YangResources:
68 type: array
69 items:
70 type: object
71 $ref: '#/components/schemas/YangResource'
72
73 YangResource:
74 properties:
75 yangSource:
76 type: string
lukegleeson996152a2021-11-30 17:06:03 +000077 example: my-yang-source
niamhcore4f431882021-09-21 16:08:29 +010078 moduleName:
79 type: string
lukegleeson996152a2021-11-30 17:06:03 +000080 example: my-module-name
niamhcore4f431882021-09-21 16:08:29 +010081 revision:
lukegleeson996152a2021-11-30 17:06:03 +000082 type: string
83 example: my-revision
niamhcore4f431882021-09-21 16:08:29 +010084
DylanB95EST5fe0dae2021-11-09 13:54:35 +000085 DataAccessRequest:
tragaite398be52021-08-06 17:01:31 +010086 type: object
87 properties:
88 operation:
89 type: string
DylanB95EST5fe0dae2021-11-09 13:54:35 +000090 enum: [ read, create, update, delete ]
lukegleeson996152a2021-11-30 17:06:03 +000091 example: read
niamhcore79e41e02021-08-20 11:24:06 +010092 dataType:
93 type: string
lukegleeson996152a2021-11-30 17:06:03 +000094 example: my-data-type
niamhcore79e41e02021-08-20 11:24:06 +010095 data:
tragaitfa11e9c2021-09-14 13:47:52 +010096 type: string
lukegleeson996152a2021-11-30 17:06:03 +000097 example: my-data
niamhcore79e41e02021-08-20 11:24:06 +010098 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +010099 $ref: '#/components/schemas/cmHandleProperties'
100
101 cmHandleProperties:
102 type: object
103 additionalProperties:
104 type: string
105 example: {"prop1":"value1","prop2":"value2"}
niamhcore79e41e02021-08-20 11:24:06 +0100106
DylanB95ESTb5a23832021-06-02 19:45:46 +0100107 responses:
lukegleeson996152a2021-11-30 17:06:03 +0000108 NoContent:
109 description: No Content
110 content: {}
DylanB95ESTb5a23832021-06-02 19:45:46 +0100111 BadRequest:
112 description: Bad Request
113 content:
114 application/json:
115 schema:
116 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000117 example:
118 status: 400
119 message: Bad Request
120 details: The provided request is not valid
lukegleeson996152a2021-11-30 17:06:03 +0000121 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.adityabdcccb52022-01-20 15:26:52 +0000131 ServerError:
132 description: Internal Server Error
DylanB95ESTb5a23832021-06-02 19:45:46 +0100133 content:
134 application/json:
135 schema:
136 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000137 example:
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000138 status: 500
139 message: Internal Server Error
140 details: Internal Server Error occured
niamhcore3139ece2021-07-30 16:25:16 +0100141 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:
tragaitf01d5672021-08-19 11:19:54 +0100148 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000149 example: my-cm-handle
tragaitf01d5672021-08-19 11:19:54 +0100150
niamhcore2fb3f662021-09-29 15:32:32 +0100151 resourceIdentifierInQuery:
tragaitf01d5672021-08-19 11:19:54 +0100152 name: resourceIdentifier
niamhcore2fb3f662021-09-29 15:32:32 +0100153 in: query
tragaitf01d5672021-08-19 11:19:54 +0100154 description: Resource identifier to get/set the resource data
155 required: true
niamhcore2fb3f662021-09-29 15:32:32 +0100156 allowReserved: true
tragaitf01d5672021-08-19 11:19:54 +0100157 schema:
158 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000159 example: my-schema:my-node
tragaitf01d5672021-08-19 11:19:54 +0100160
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
tragait907e3782021-10-04 16:02:57 +0100169 optionsParamInQuery:
170 name: options
tragaitf01d5672021-08-19 11:19:54 +0100171 in: query
tragait907e3782021-10-04 16:02:57 +0100172 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'.
tragaitf01d5672021-08-19 11:19:54 +0100173 required: false
174 schema:
175 type: string
tragait907e3782021-10-04 16:02:57 +0100176 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:
lukegleeson996152a2021-11-30 17:06:03 +0000186 options: (key1=10,key2=value2,key3=val31,val32)