blob: cdf4c1c0ab88cb0ddb40b461489e46ba6037af31 [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
niamhcoreacc0f8b2021-10-06 09:49:12 +010022 ModuleReferencesRequest:
niamhcore3139ece2021-07-30 16:25:16 +010023 type: object
24 properties:
niamhcoreacc0f8b2021-10-06 09:49:12 +010025 cmHandleProperties:
26 $ref: '#/components/schemas/cmHandleProperties'
27
28 ModuleResourcesReadRequest:
29 type: object
30 properties:
niamhcore3139ece2021-07-30 16:25:16 +010031 data:
32 type: object
33 properties:
34 modules:
35 type: array
36 items:
37 type: object
38 properties:
39 name:
niamhcoreacc0f8b2021-10-06 09:49:12 +010040 $ref: '#/components/schemas/name'
niamhcore3139ece2021-07-30 16:25:16 +010041 revision:
niamhcoreacc0f8b2021-10-06 09:49:12 +010042 $ref: '#/components/schemas/revision'
niamhcore3139ece2021-07-30 16:25:16 +010043 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +010044 $ref: '#/components/schemas/cmHandleProperties'
niamhcore3139ece2021-07-30 16:25:16 +010045
niamhcore577efb02021-08-11 16:13:53 +010046 ModuleSet:
47 type: object
48 properties:
49 schemas:
50 type: array
51 items:
52 type: object
53 properties:
54 moduleName:
55 type: string
56 revision:
niamhcoreacc0f8b2021-10-06 09:49:12 +010057 $ref: '#/components/schemas/revision'
niamhcore577efb02021-08-11 16:13:53 +010058 namespace:
59 type: string
60
niamhcore4f431882021-09-21 16:08:29 +010061 YangResources:
62 type: array
63 items:
64 type: object
65 $ref: '#/components/schemas/YangResource'
66
67 YangResource:
68 properties:
69 yangSource:
70 type: string
71 moduleName:
72 type: string
73 revision:
niamhcoreacc0f8b2021-10-06 09:49:12 +010074 $ref: '#/components/schemas/revision'
niamhcore4f431882021-09-21 16:08:29 +010075
DylanB95EST5fe0dae2021-11-09 13:54:35 +000076 DataAccessRequest:
tragaite398be52021-08-06 17:01:31 +010077 type: object
78 properties:
79 operation:
80 type: string
DylanB95EST5fe0dae2021-11-09 13:54:35 +000081 enum: [ read, create, update, delete ]
niamhcore79e41e02021-08-20 11:24:06 +010082 dataType:
83 type: string
84 data:
tragaitfa11e9c2021-09-14 13:47:52 +010085 type: string
niamhcore79e41e02021-08-20 11:24:06 +010086 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +010087 $ref: '#/components/schemas/cmHandleProperties'
88
89 cmHandleProperties:
90 type: object
91 additionalProperties:
92 type: string
93 example: {"prop1":"value1","prop2":"value2"}
niamhcore79e41e02021-08-20 11:24:06 +010094
niamhcoreacc0f8b2021-10-06 09:49:12 +010095 name:
96 type: string
97 example: someName
98
99 revision:
100 type: string
101 example: someRevision
102
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])