1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2021-2022 Bell Canada.
3 # Modifications Copyright (C) 2021-2022 Nordix Foundation
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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
25 title: Anchor details by anchor Name
35 example: my-schema-set
55 description: multipartFile
57 example: 'https://github.com/onap/cps/blob/master/cps-service/src/test/resources/bookstore.yang'
61 title: Module reference object
65 example: my-module-reference-name
68 example: my-module-reference-namespace
71 example: my-module-reference-revision
75 title: Schema set details by dataspace and schemasetName
83 $ref: '#/components/schemas/ModuleReferences'
86 example: my-schema-set
92 bookstore-name: Chapters
100 dataspaceNameInQuery:
103 description: dataspace-name
107 example: my-dataspace
111 description: dataspace-name
115 example: my-dataspace
119 description: anchor-name
124 schemaSetNameInQuery:
125 name: schema-set-name
127 description: schema-set-name
131 example: my-schema-set
133 name: schema-set-name
135 description: schema-set-name
139 example: my-schema-set
143 description: anchor-name
151 description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
158 value: /shops/bookstore
159 list attributes xpath:
160 value: /shops/bookstore/categories[@code=1]
161 requiredXpathInQuery:
164 description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
170 value: /shops/bookstore
171 list attributes xpath:
172 value: /shops/bookstore/categories[@code=1]
176 description: For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
184 list attributes cps path:
185 value: //categories[@code=1]
186 includeDescendantsOptionInQuery:
187 name: include-descendants
189 description: include-descendants
195 observedTimestampInQuery:
196 name: observed-timestamp
198 description: observed-timestamp
202 example: '2021-03-21T00:10:34.030-0100'
206 description: The specified resource was not found
210 $ref: '#/components/schemas/ErrorMessage'
213 message: Resource Not Found
214 details: The requested resource is not found
216 description: Unauthorized
220 $ref: '#/components/schemas/ErrorMessage'
223 message: Unauthorized request
224 details: This request is unauthorized
226 description: Forbidden
230 $ref: '#/components/schemas/ErrorMessage'
233 message: Request Forbidden
234 details: This request is forbidden
236 description: Bad Request
240 $ref: '#/components/schemas/ErrorMessage'
244 details: The provided request is not valid
246 description: Conflict
250 $ref: '#/components/schemas/ErrorMessage'
253 message: Conflicting request
254 details: The request cannot be processed as the resource is in use.
272 description: Internal Server Error
276 $ref: "#/components/schemas/ErrorMessage"
279 message: Internal Server Error
280 details: Internal Server Error occurred
282 description: No Content