blob: 049701e4faafafc4c1ede24f1b8673b51210e016 [file] [log] [blame]
puthuparambil.aditya39450c52022-03-29 11:22:31 +01001# ============LICENSE_START=======================================================
JosephKeenan2cd8b982022-05-23 15:43:05 +01002# Copyright (C) 2021-2022 Nordix Foundation
puthuparambil.aditya39450c52022-03-29 11:22:31 +01003# 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'
mpriyank78e1d062022-04-08 15:12:22 +0530119 requestId:
120 type: string
JosephKeenan2cd8b982022-05-23 15:43:05 +0100121 example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7
tragait907e3782021-10-04 16:02:57 +0100122
123 cmHandleProperties:
124 type: object
125 additionalProperties:
126 type: string
127 example: {"prop1":"value1","prop2":"value2"}
niamhcore79e41e02021-08-20 11:24:06 +0100128
DylanB95ESTb5a23832021-06-02 19:45:46 +0100129 responses:
lukegleeson996152a2021-11-30 17:06:03 +0000130 NoContent:
131 description: No Content
132 content: {}
DylanB95ESTb5a23832021-06-02 19:45:46 +0100133 BadRequest:
134 description: Bad Request
135 content:
136 application/json:
137 schema:
138 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000139 example:
140 status: 400
141 message: Bad Request
142 details: The provided request is not valid
lukegleeson996152a2021-11-30 17:06:03 +0000143 NotFound:
144 description: The specified resource was not found
145 content:
146 application/json:
147 schema:
148 $ref: '#/components/schemas/ErrorMessage'
149 example:
150 status: 404
151 message: Resource Not Found
152 details: The requested resource is not found
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000153 ServerError:
154 description: Internal Server Error
DylanB95ESTb5a23832021-06-02 19:45:46 +0100155 content:
156 application/json:
157 schema:
158 $ref: '#/components/schemas/ErrorMessage'
lukegleeson996152a2021-11-30 17:06:03 +0000159 example:
puthuparambil.adityabdcccb52022-01-20 15:26:52 +0000160 status: 500
161 message: Internal Server Error
162 details: Internal Server Error occured
niamhcore3139ece2021-07-30 16:25:16 +0100163 parameters:
164 cmHandleInPath:
165 name: cmHandle
166 in: path
167 description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy
168 required: true
169 schema:
tragaitf01d5672021-08-19 11:19:54 +0100170 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000171 example: my-cm-handle
tragaitf01d5672021-08-19 11:19:54 +0100172
niamhcore2fb3f662021-09-29 15:32:32 +0100173 resourceIdentifierInQuery:
tragaitf01d5672021-08-19 11:19:54 +0100174 name: resourceIdentifier
niamhcore2fb3f662021-09-29 15:32:32 +0100175 in: query
tragaitf01d5672021-08-19 11:19:54 +0100176 description: Resource identifier to get/set the resource data
177 required: true
niamhcore2fb3f662021-09-29 15:32:32 +0100178 allowReserved: true
tragaitf01d5672021-08-19 11:19:54 +0100179 schema:
180 type: string
lukegleeson996152a2021-11-30 17:06:03 +0000181 example: my-schema:my-node
tragaitf01d5672021-08-19 11:19:54 +0100182
tragait907e3782021-10-04 16:02:57 +0100183 optionsParamInQuery:
184 name: options
tragaitf01d5672021-08-19 11:19:54 +0100185 in: query
tragait907e3782021-10-04 16:02:57 +0100186 description: options parameter in query, it is mandatory to wrap key(s)=value(s) in parenthesis'()'.
tragaitf01d5672021-08-19 11:19:54 +0100187 required: false
188 schema:
189 type: string
tragait907e3782021-10-04 16:02:57 +0100190 allowReserved: true
191 examples:
192 sample1:
193 value:
194 options: (key1=value1,key2=value2)
195 sample2:
196 value:
197 options: (key1=value1,key2=value1/value2)
198 sample3:
199 value:
mpriyank78e1d062022-04-08 15:12:22 +0530200 options: (key1=10,key2=value2,key3=val31,val32)
201 topicParamInQuery:
JosephKeenan2cd8b982022-05-23 15:43:05 +0100202 name: topic
mpriyank78e1d062022-04-08 15:12:22 +0530203 in: query
mpriyank7b7297c2022-09-14 10:47:45 +0100204 description: topic name passed from client(NCMP).
mpriyank78e1d062022-04-08 15:12:22 +0530205 required: false
206 schema:
207 type: string
208 allowReserved: true
209 examples:
210 sample1:
JosephKeenan2cd8b982022-05-23 15:43:05 +0100211 value: my-topic-name