blob: a03cb1f8fcd2f335a903750234ec41b637203220 [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
19 items:
20 type: string
21
tragait400b6c72021-09-22 10:50:15 +010022 DmiModuleReadRequestBody:
niamhcore3139ece2021-07-30 16:25:16 +010023 type: object
24 properties:
25 operation:
26 type: string
27 enum: [read]
tragait400b6c72021-09-22 10:50:15 +010028 dataType:
29 type: string
niamhcore3139ece2021-07-30 16:25:16 +010030 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:
tragait907e3782021-10-04 16:02:57 +010043 $ref: '#/components/schemas/cmHandleProperties'
niamhcore3139ece2021-07-30 16:25:16 +010044
niamhcore577efb02021-08-11 16:13:53 +010045 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
niamhcore4f431882021-09-21 16:08:29 +010060 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
niamhcore79e41e02021-08-20 11:24:06 +010075 DataAccessReadRequest:
tragaite398be52021-08-06 17:01:31 +010076 type: object
77 properties:
78 operation:
79 type: string
80 enum: [ read ]
81 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +010082 $ref: '#/components/schemas/cmHandleProperties'
tragaite398be52021-08-06 17:01:31 +010083
niamhcore79e41e02021-08-20 11:24:06 +010084 DataAccessWriteRequest:
85 type: object
86 properties:
87 operation:
88 type: string
89 enum: [ create ]
90 dataType:
91 type: string
92 data:
tragaitfa11e9c2021-09-14 13:47:52 +010093 type: string
niamhcore79e41e02021-08-20 11:24:06 +010094 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +010095 $ref: '#/components/schemas/cmHandleProperties'
96
97 cmHandleProperties:
98 type: object
99 additionalProperties:
100 type: string
101 example: {"prop1":"value1","prop2":"value2"}
niamhcore79e41e02021-08-20 11:24:06 +0100102
DylanB95ESTb5a23832021-06-02 19:45:46 +0100103 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: {}
niamhcore3139ece2021-07-30 16:25:16 +0100149
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:
tragaitf01d5672021-08-19 11:19:54 +0100157 type: string
158
niamhcore2fb3f662021-09-29 15:32:32 +0100159 resourceIdentifierInQuery:
tragaitf01d5672021-08-19 11:19:54 +0100160 name: resourceIdentifier
niamhcore2fb3f662021-09-29 15:32:32 +0100161 in: query
tragaitf01d5672021-08-19 11:19:54 +0100162 description: Resource identifier to get/set the resource data
163 required: true
niamhcore2fb3f662021-09-29 15:32:32 +0100164 allowReserved: true
tragaitf01d5672021-08-19 11:19:54 +0100165 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
tragait907e3782021-10-04 16:02:57 +0100176 optionsParamInQuery:
177 name: options
tragaitf01d5672021-08-19 11:19:54 +0100178 in: query
tragait907e3782021-10-04 16:02:57 +0100179 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'.
tragaitf01d5672021-08-19 11:19:54 +0100180 required: false
181 schema:
182 type: string
tragait907e3782021-10-04 16:02:57 +0100183 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])