blob: c317ba76ebdf0c8e76ce46d599a23ceb53a2f92a [file] [log] [blame]
puthuparambil.aditya39450c52022-03-29 11:22:31 +01001# ============LICENSE_START=======================================================
2# Copyright (C) 2021 Nordix Foundation
3# Modifications Copyright (C) 2022 Bell Canada
4# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
DylanB95ESTb5a23832021-06-02 19:45:46 +010020components:
21 schemas:
22 ErrorMessage:
23 type: object
24 title: Error
25 properties:
26 status:
27 type: string
28 message:
29 type: string
30 details:
31 type: string
32
tragait2270d762021-07-08 15:42:19 +010033 CmHandles:
34 type: object
35 properties:
36 cmHandles:
37 type: array
lukegleeson996152a2021-11-30 17:06:03 +000038 example: ["cmHandleId1","cmHandleId2","cmHandleId3"]
tragait2270d762021-07-08 15:42:19 +010039 items:
40 type: string
41
niamhcoreacc0f8b2021-10-06 09:49:12 +010042 ModuleReferencesRequest:
niamhcore3139ece2021-07-30 16:25:16 +010043 type: object
44 properties:
niamhcoreacc0f8b2021-10-06 09:49:12 +010045 cmHandleProperties:
46 $ref: '#/components/schemas/cmHandleProperties'
47
48 ModuleResourcesReadRequest:
49 type: object
50 properties:
niamhcore3139ece2021-07-30 16:25:16 +010051 data:
52 type: object
53 properties:
54 modules:
55 type: array
56 items:
57 type: object
58 properties:
59 name:
lukegleeson996152a2021-11-30 17:06:03 +000060 type: string
61 example: my-name
niamhcore3139ece2021-07-30 16:25:16 +010062 revision:
lukegleeson996152a2021-11-30 17:06:03 +000063 type: string
64 example: my-revision
niamhcore3139ece2021-07-30 16:25:16 +010065 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +010066 $ref: '#/components/schemas/cmHandleProperties'
niamhcore3139ece2021-07-30 16:25:16 +010067
niamhcore577efb02021-08-11 16:13:53 +010068 ModuleSet:
69 type: object
70 properties:
71 schemas:
72 type: array
73 items:
74 type: object
75 properties:
76 moduleName:
77 type: string
lukegleeson996152a2021-11-30 17:06:03 +000078 example: my-module-name
niamhcore577efb02021-08-11 16:13:53 +010079 revision:
lukegleeson996152a2021-11-30 17:06:03 +000080 type: string
81 example: my-revision
niamhcore577efb02021-08-11 16:13:53 +010082 namespace:
83 type: string
lukegleeson996152a2021-11-30 17:06:03 +000084 example: my-namespace
niamhcore577efb02021-08-11 16:13:53 +010085
niamhcore4f431882021-09-21 16:08:29 +010086 YangResources:
87 type: array
88 items:
89 type: object
90 $ref: '#/components/schemas/YangResource'
91
92 YangResource:
93 properties:
94 yangSource:
95 type: string
lukegleeson996152a2021-11-30 17:06:03 +000096 example: my-yang-source
niamhcore4f431882021-09-21 16:08:29 +010097 moduleName:
98 type: string
lukegleeson996152a2021-11-30 17:06:03 +000099 example: my-module-name
niamhcore4f431882021-09-21 16:08:29 +0100100 revision:
lukegleeson996152a2021-11-30 17:06:03 +0000101 type: string
102 example: my-revision
niamhcore4f431882021-09-21 16:08:29 +0100103
DylanB95EST5fe0dae2021-11-09 13:54:35 +0000104 DataAccessRequest:
tragaite398be52021-08-06 17:01:31 +0100105 type: object
106 properties:
107 operation:
108 type: string
tragaitdffff5d2022-01-10 12:16:25 +0000109 enum: [ read, create, update, patch, delete ]
lukegleeson996152a2021-11-30 17:06:03 +0000110 example: read
niamhcore79e41e02021-08-20 11:24:06 +0100111 dataType:
112 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000113 example: my-data-type
niamhcore79e41e02021-08-20 11:24:06 +0100114 data:
tragaitfa11e9c2021-09-14 13:47:52 +0100115 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000116 example: my-data
niamhcore79e41e02021-08-20 11:24:06 +0100117 cmHandleProperties:
tragait907e3782021-10-04 16:02:57 +0100118 $ref: '#/components/schemas/cmHandleProperties'
119
120 cmHandleProperties:
121 type: object
122 additionalProperties:
123 type: string
124 example: {"prop1":"value1","prop2":"value2"}
niamhcore79e41e02021-08-20 11:24:06 +0100125
DylanB95ESTb5a23832021-06-02 19:45:46 +0100126 responses:
lukegleeson996152a2021-11-30 17:06:03 +0000127 NoContent:
128 description: No Content
129 content: {}
DylanB95ESTb5a23832021-06-02 19:45:46 +0100130 BadRequest:
131 description: Bad Request
132 content:
133 application/json:
134 schema:
135 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000136 example:
137 status: 400
138 message: Bad Request
139 details: The provided request is not valid
lukegleeson996152a2021-11-30 17:06:03 +0000140 NotFound:
141 description: The specified resource was not found
142 content:
143 application/json:
144 schema:
145 $ref: '#/components/schemas/ErrorMessage'
146 example:
147 status: 404
148 message: Resource Not Found
149 details: The requested resource is not found
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000150 ServerError:
151 description: Internal Server Error
DylanB95ESTb5a23832021-06-02 19:45:46 +0100152 content:
153 application/json:
154 schema:
155 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000156 example:
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000157 status: 500
158 message: Internal Server Error
159 details: Internal Server Error occured
niamhcore3139ece2021-07-30 16:25:16 +0100160 parameters:
161 cmHandleInPath:
162 name: cmHandle
163 in: path
164 description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy
165 required: true
166 schema:
tragaitf01d5672021-08-19 11:19:54 +0100167 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000168 example: my-cm-handle
tragaitf01d5672021-08-19 11:19:54 +0100169
niamhcore2fb3f662021-09-29 15:32:32 +0100170 resourceIdentifierInQuery:
tragaitf01d5672021-08-19 11:19:54 +0100171 name: resourceIdentifier
niamhcore2fb3f662021-09-29 15:32:32 +0100172 in: query
tragaitf01d5672021-08-19 11:19:54 +0100173 description: Resource identifier to get/set the resource data
174 required: true
niamhcore2fb3f662021-09-29 15:32:32 +0100175 allowReserved: true
tragaitf01d5672021-08-19 11:19:54 +0100176 schema:
177 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000178 example: my-schema:my-node
tragaitf01d5672021-08-19 11:19:54 +0100179
tragait907e3782021-10-04 16:02:57 +0100180 optionsParamInQuery:
181 name: options
tragaitf01d5672021-08-19 11:19:54 +0100182 in: query
tragait907e3782021-10-04 16:02:57 +0100183 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'.
tragaitf01d5672021-08-19 11:19:54 +0100184 required: false
185 schema:
186 type: string
tragait907e3782021-10-04 16:02:57 +0100187 allowReserved: true
188 examples:
189 sample1:
190 value:
191 options: (key1=value1,key2=value2)
192 sample2:
193 value:
194 options: (key1=value1,key2=value1/value2)
195 sample3:
196 value:
lukegleeson996152a2021-11-30 17:06:03 +0000197 options: (key1=10,key2=value2,key3=val31,val32)