1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2021 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 summary: The data node returned does not include the root node. This is being investigated as a part of CPS-461
102 bookstore-name: Chapters
110 dataspaceNameInQuery:
113 description: dataspace-name
117 example: my-dataspace
121 description: dataspace-name
125 example: my-dataspace
129 description: anchor-name
134 schemaSetNameInQuery:
135 name: schema-set-name
137 description: schema-set-name
141 example: my-schema-set
143 name: schema-set-name
145 description: schema-set-name
149 example: my-schema-set
153 description: anchor-name
161 description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
168 value: /shops/bookstore
169 list attributes xpath:
170 value: /shops/bookstore/categories[@code=1]
171 requiredXpathInQuery:
174 description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
180 value: /shops/bookstore
181 list attributes xpath:
182 value: /shops/bookstore/categories[@code=1]
186 description: For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
194 list attributes cps path:
195 value: //categories[@code=1]
196 includeDescendantsOptionInQuery:
197 name: include-descendants
199 description: include-descendants
205 observedTimestampInQuery:
206 name: observed-timestamp
208 description: observed-timestamp
212 example: '2021-03-21T00:10:34.030-0100'
216 description: The specified resource was not found
220 $ref: '#/components/schemas/ErrorMessage'
223 message: Resource Not Found
224 details: The requested resource is not found
226 description: Unauthorized
230 $ref: '#/components/schemas/ErrorMessage'
233 message: Unauthorized request
234 details: This request is unauthorized
236 description: Forbidden
240 $ref: '#/components/schemas/ErrorMessage'
243 message: Request Forbidden
244 details: This request is forbidden
246 description: Bad Request
250 $ref: '#/components/schemas/ErrorMessage'
254 details: The provided request is not valid
256 description: Conflict
260 $ref: '#/components/schemas/ErrorMessage'
263 message: Conflicting request
264 details: The request cannot be processed as the resource is in use.
282 description: Internal Server Error
286 $ref: "#/components/schemas/ErrorMessage"
289 message: Internal Server Error
290 details: Internal Server Error occurred
292 description: No Content