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
85 $ref: '#/components/schemas/ModuleReferences'
88 example: my-schema-set
94 bookstore-name: Chapters
102 dataspaceNameInQuery:
105 description: dataspace-name
109 example: my-dataspace
113 description: dataspace-name
117 example: my-dataspace
121 description: anchor-name
126 schemaSetNameInQuery:
127 name: schema-set-name
129 description: schema-set-name
133 example: my-schema-set
135 name: schema-set-name
137 description: schema-set-name
141 example: my-schema-set
145 description: anchor-name
153 description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
160 value: /shops/bookstore
161 list attributes xpath:
162 value: /shops/bookstore/categories[@code=1]
163 requiredXpathInQuery:
166 description: For more details on xpath, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
172 value: /shops/bookstore
173 list attributes xpath:
174 value: /shops/bookstore/categories[@code=1]
178 description: For more details on cps path, please refer https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html
186 list attributes cps path:
187 value: //categories[@code=1]
188 includeDescendantsOptionInQuery:
189 name: include-descendants
191 description: include-descendants
197 observedTimestampInQuery:
198 name: observed-timestamp
200 description: observed-timestamp
204 example: '2021-03-21T00:10:34.030-0100'
208 description: The specified resource was not found
212 $ref: '#/components/schemas/ErrorMessage'
215 message: Resource Not Found
216 details: The requested resource is not found
218 description: Unauthorized
222 $ref: '#/components/schemas/ErrorMessage'
225 message: Unauthorized request
226 details: This request is unauthorized
228 description: Forbidden
232 $ref: '#/components/schemas/ErrorMessage'
235 message: Request Forbidden
236 details: This request is forbidden
238 description: Bad Request
242 $ref: '#/components/schemas/ErrorMessage'
246 details: The provided request is not valid
248 description: Conflict
252 $ref: '#/components/schemas/ErrorMessage'
255 message: Conflicting request
256 details: The request cannot be processed as the resource is in use.
274 description: Internal Server Error
278 $ref: "#/components/schemas/ErrorMessage"
281 message: Internal Server Error
282 details: Internal Server Error occurred
284 description: No Content