blob: 736639d8c87aa1b8594f662ea7065e5cad727b3d [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:
43 type: object
44 additionalProperties:
45 type: string
46 example: system-001
47
niamhcore577efb02021-08-11 16:13:53 +010048 ModuleSet:
49 type: object
50 properties:
51 schemas:
52 type: array
53 items:
54 type: object
55 properties:
56 moduleName:
57 type: string
58 revision:
59 type: string
60 namespace:
61 type: string
62
niamhcore4f431882021-09-21 16:08:29 +010063 YangResources:
64 type: array
65 items:
66 type: object
67 $ref: '#/components/schemas/YangResource'
68
69 YangResource:
70 properties:
71 yangSource:
72 type: string
73 moduleName:
74 type: string
75 revision:
76 type: string
77
niamhcore79e41e02021-08-20 11:24:06 +010078 DataAccessReadRequest:
tragaite398be52021-08-06 17:01:31 +010079 type: object
80 properties:
81 operation:
82 type: string
83 enum: [ read ]
84 cmHandleProperties:
85 type: object
86 additionalProperties:
87 type: string
88
niamhcore79e41e02021-08-20 11:24:06 +010089 DataAccessWriteRequest:
90 type: object
91 properties:
92 operation:
93 type: string
94 enum: [ create ]
95 dataType:
96 type: string
97 data:
tragaitfa11e9c2021-09-14 13:47:52 +010098 type: string
niamhcore79e41e02021-08-20 11:24:06 +010099 cmHandleProperties:
100 type: object
101 additionalProperties:
102 type: string
103
DylanB95ESTb5a23832021-06-02 19:45:46 +0100104 responses:
105 NotFound:
106 description: The specified resource was not found
107 content:
108 application/json:
109 schema:
110 $ref: '#/components/schemas/ErrorMessage'
111 Unauthorized:
112 description: Unauthorized
113 content:
114 application/json:
115 schema:
116 $ref: '#/components/schemas/ErrorMessage'
117 Forbidden:
118 description: Forbidden
119 content:
120 application/json:
121 schema:
122 $ref: '#/components/schemas/ErrorMessage'
123 BadRequest:
124 description: Bad Request
125 content:
126 application/json:
127 schema:
128 $ref: '#/components/schemas/ErrorMessage'
129 Conflict:
130 description: Conflict
131 content:
132 application/json:
133 schema:
134 $ref: '#/components/schemas/ErrorMessage'
135 Ok:
136 description: OK
137 content:
138 application/json:
139 schema:
140 type: object
141 Created:
142 description: Created
143 content:
144 text/plain:
145 schema:
146 type: string
147 NoContent:
148 description: No Content
149 content: {}
niamhcore3139ece2021-07-30 16:25:16 +0100150
151 parameters:
152 cmHandleInPath:
153 name: cmHandle
154 in: path
155 description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy
156 required: true
157 schema:
tragaitf01d5672021-08-19 11:19:54 +0100158 type: string
159
niamhcore2fb3f662021-09-29 15:32:32 +0100160 resourceIdentifierInQuery:
tragaitf01d5672021-08-19 11:19:54 +0100161 name: resourceIdentifier
niamhcore2fb3f662021-09-29 15:32:32 +0100162 in: query
tragaitf01d5672021-08-19 11:19:54 +0100163 description: Resource identifier to get/set the resource data
164 required: true
niamhcore2fb3f662021-09-29 15:32:32 +0100165 allowReserved: true
tragaitf01d5672021-08-19 11:19:54 +0100166 schema:
167 type: string
168
169 acceptParamInHeader:
170 name: accept
171 in: header
172 description: Accept parameter for response, if accept parameter is null, that means client can accept any format.
173 schema:
174 type: string
175 enum: [ application/json, application/yang-data+json ]
176
177 fieldsParamInQuery:
178 name: fields
179 in: query
180 description: Fields parameter to filter resource
181 required: false
182 schema:
183 type: string
184
185 depthParamInQuery:
186 name: depth
187 in: query
188 description: Depth parameter for response
189 required: false
190 schema:
191 type: integer
192 minimum: 1