76bdb80c23c414aad3868f63deb4aa71cfddd346
[cps.git] / cps-rest / docs / openapi / openapi.yml
1 #  ============LICENSE_START=======================================================
2 #  Copyright (C) 2021 Nordix Foundation
3 #  Modifications Copyright (C) 2021 Pantheon.tech
4 #  Modifications Copyright (C) 2021 Bell Canada.
5 #  ================================================================================
6 #  Licensed under the Apache License, Version 2.0 (the "License");
7 #  you may not use this file except in compliance with the License.
8 #  You may obtain a copy of the License at
9 #
10 #        http://www.apache.org/licenses/LICENSE-2.0
11 #
12 #  Unless required by applicable law or agreed to in writing, software
13 #  distributed under the License is distributed on an "AS IS" BASIS,
14 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 #  See the License for the specific language governing permissions and
16 #  limitations under the License.
17 #
18 #  SPDX-License-Identifier: Apache-2.0
19 #  ============LICENSE_END=========================================================
20
21 openapi: 3.0.1
22 info:
23   title: ONAP Open API v3 Configuration Persistence Service
24   description: Configuration Persistence Service is a Model Driven Generic Database
25   version: "1.0.0"
26   contact:
27      name: ONAP
28      url: "https://onap.readthedocs.io"
29      email: "onap-discuss@lists.onap.org"
30   license:
31       name: "Apache 2.0"
32       url: "http://www.apache.org/licenses/LICENSE-2.0"
33   x-planned-retirement-date: "202212"
34   x-component: "Modeling"
35   x-logo:
36       url: "cps_logo.png"
37
38 servers:
39   - url: /cps/api
40 tags:
41   - name: cps-admin
42     description: cps Admin
43   - name: cps-data
44     description: cps Data
45 paths:
46
47   /v1/dataspaces:
48     $ref: 'cpsAdmin.yml#/dataspaces'
49
50   /v1/dataspaces/{dataspace-name}/anchors:
51     $ref: 'cpsAdmin.yml#/anchorsByDataspace'
52
53   /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}:
54     $ref: 'cpsAdmin.yml#/anchorByDataspaceAndAnchorName'
55
56   /v1/dataspaces/{dataspace-name}/schema-sets:
57     $ref: 'cpsAdmin.yml#/schemaSet'
58
59   /v1/dataspaces/{dataspace-name}/schema-sets/{schema-set-name}:
60     $ref: 'cpsAdmin.yml#/schemaSetBySchemaSetName'
61
62   /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
63     $ref: 'cpsData.yml#/nodeByDataspaceAndAnchor'
64
65   /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes:
66     $ref: 'cpsData.yml#/nodesByDataspaceAndAnchor'
67
68   /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
69     $ref: 'cpsData.yml#/listElementByDataspaceAndAnchor'
70
71   /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
72     $ref: 'cpsQuery.yml#/nodesByDataspaceAndAnchorAndCpsPath'