blob: ab841b280b6e0369613c71a1c5181fc54264de8d [file] [log] [blame]
shivasubedi8df61a92021-06-16 14:43:18 +01001# ============LICENSE_START=======================================================
egernug9426ae82023-06-21 11:16:02 +01002# Copyright (C) 2021-2023 Nordix Foundation
lukegleeson15b93e72021-07-07 15:25:30 +01003# Modifications Copyright (C) 2021 Pantheon.tech
Renu Kumari4d520012021-08-30 11:50:43 -04004# Modifications Copyright (C) 2021 Bell Canada.
Arpit Singhd7fa9602023-09-07 17:05:37 +05305# Modifications Copyright (C) 2022-2024 TechMahindra Ltd.
shivasubedi8df61a92021-06-16 14:43:18 +01006# ================================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
lukegleeson15b93e72021-07-07 15:25:30 +010012#
shivasubedi8df61a92021-06-16 14:43:18 +010013# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18#
19# SPDX-License-Identifier: Apache-2.0
20# ============LICENSE_END=========================================================
21
egernug9426ae82023-06-21 11:16:02 +010022openapi: 3.0.3
niamhcoref7ba3592020-10-19 12:48:06 +010023info:
Rishi.Chailcc6e5e22021-01-24 20:33:50 +000024 title: ONAP Open API v3 Configuration Persistence Service
25 description: Configuration Persistence Service is a Model Driven Generic Database
mpriyank810be172024-07-29 16:11:53 +010026 version: "3.5.1"
Rishi.Chail6d13f162021-01-26 05:58:39 +000027 contact:
Rishi.Chailcc6e5e22021-01-24 20:33:50 +000028 name: ONAP
29 url: "https://onap.readthedocs.io"
30 email: "onap-discuss@lists.onap.org"
Rishi.Chail6d13f162021-01-26 05:58:39 +000031 license:
Rishi.Chailcc6e5e22021-01-24 20:33:50 +000032 name: "Apache 2.0"
33 url: "http://www.apache.org/licenses/LICENSE-2.0"
Rishi.Chailcc6e5e22021-01-24 20:33:50 +000034
niamhcoref7ba3592020-10-19 12:48:06 +010035servers:
JosephKeenan2472e612021-06-23 14:15:52 +010036 - url: /cps/api
JosephKeenan1a650232022-10-20 10:33:24 +010037components:
38 securitySchemes:
39 basicAuth:
40 type: http
41 scheme: basic
niamhcoref7ba3592020-10-19 12:48:06 +010042tags:
Rishi.Chail6d13f162021-01-26 05:58:39 +000043 - name: cps-admin
44 description: cps Admin
45 - name: cps-data
Renu Kumari4d520012021-08-30 11:50:43 -040046 description: cps Data
niamhcoref7ba3592020-10-19 12:48:06 +010047paths:
Rishi.Chail6d13f162021-01-26 05:58:39 +000048
Ruslan Kashapov5a8718b2020-12-10 10:49:59 +020049 /v1/dataspaces:
rajesh.kumar897686f2022-12-14 08:13:29 +000050 $ref: 'cpsAdminV1Deprecated.yml#/dataspaces'
51
52 /{apiVersion}/dataspaces:
Rishi.Chaildacc6632021-01-27 04:27:34 +000053 $ref: 'cpsAdmin.yml#/dataspaces'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000054
rajesh.kumar897686f2022-12-14 08:13:29 +000055 /v2/dataspaces:
56 $ref: 'cpsAdminV2.yml#/dataspaces'
57
58 /{apiVersion}/admin/dataspaces:
rajesh.kumarcec0cb72022-09-06 11:47:18 +000059 $ref: 'cpsAdmin.yml#/adminDataspaces'
60
rajesh.kumar897686f2022-12-14 08:13:29 +000061 /{apiVersion}/admin/dataspaces/{dataspace-name}:
rajesh.kumarcec0cb72022-09-06 11:47:18 +000062 $ref: 'cpsAdmin.yml#/adminDataspace'
63
niamhcoref7ba3592020-10-19 12:48:06 +010064 /v1/dataspaces/{dataspace-name}/anchors:
rajesh.kumar897686f2022-12-14 08:13:29 +000065 $ref: 'cpsAdminV1Deprecated.yml#/anchorsByDataspace'
66
67 /v2/dataspaces/{dataspace-name}/anchors:
68 $ref: 'cpsAdminV2.yml#/anchorsByDataspace'
69
70 /{apiVersion}/dataspaces/{dataspace-name}/anchors:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000071 $ref: 'cpsAdmin.yml#/anchorsByDataspace'
72
rajesh.kumar897686f2022-12-14 08:13:29 +000073 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000074 $ref: 'cpsAdmin.yml#/anchorByDataspaceAndAnchorName'
75
76 /v1/dataspaces/{dataspace-name}/schema-sets:
rajesh.kumar897686f2022-12-14 08:13:29 +000077 $ref: 'cpsAdminV1Deprecated.yml#/schemaSet'
78
79 /v2/dataspaces/{dataspace-name}/schema-sets:
80 $ref: 'cpsAdminV2.yml#/schemaSet'
81
82 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000083 $ref: 'cpsAdmin.yml#/schemaSet'
84
rajesh.kumar897686f2022-12-14 08:13:29 +000085 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets/{schema-set-name}:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000086 $ref: 'cpsAdmin.yml#/schemaSetBySchemaSetName'
87
rajesh.kumarcc21a022022-12-06 11:47:24 +000088 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
89 $ref: 'cpsDataV1Deprecated.yml#/nodeByDataspaceAndAnchor'
90
91 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
92 $ref: 'cpsDataV2.yml#/nodeByDataspaceAndAnchor'
Rishi.Chaildacc6632021-01-27 04:27:34 +000093
rajesh.kumar897686f2022-12-14 08:13:29 +000094 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000095 $ref: 'cpsData.yml#/nodesByDataspaceAndAnchor'
96
Renu Kumari7edbeb62021-08-30 07:45:52 -040097 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
rajesh.kumar897686f2022-12-14 08:13:29 +000098 $ref: 'cpsDataV1Deprecated.yml#/listElementByDataspaceAndAnchor'
99
100 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
DylanB95ESTa79c9f12021-10-29 17:33:06 +0100101 $ref: 'cpsData.yml#/listElementByDataspaceAndAnchor'
Ruslan Kashapov0905ac12021-05-05 13:11:50 +0300102
Arpit Singhd7fa9602023-09-07 17:05:37 +0530103 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/deltaAnchors:
Arpit Singh0339c712023-08-02 18:35:31 +0530104 $ref: 'cpsDataV2.yml#/deltaByDataspaceAndAnchors'
105
Arpit Singhd7fa9602023-09-07 17:05:37 +0530106 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/deltaPayload:
107 $ref: 'cpsDataV2.yml#/deltaByDataspaceAnchorAndPayload'
108
rajesh.kumarcc21a022022-12-06 11:47:24 +0000109 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
110 $ref: 'cpsQueryV1Deprecated.yml#/nodesByDataspaceAndAnchorAndCpsPath'
111
112 /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
113 $ref: 'cpsQueryV2.yml#/nodesByDataspaceAndAnchorAndCpsPath'
JosephKeenan1a650232022-10-20 10:33:24 +0100114
rajesh.kumara3178902022-12-14 14:27:29 +0000115 /v2/dataspaces/{dataspace-name}/nodes/query:
116 $ref: 'cpsQueryV2.yml#/nodesByDataspaceAndCpsPath'
117
JosephKeenan1a650232022-10-20 10:33:24 +0100118security:
rajesh.kumar71e4f832022-09-14 05:11:32 +0000119 - basicAuth: []