blob: 0918b56c3d0f289d0fde6d196cba0ec6548c220d [file] [log] [blame]
shivasubedi8df61a92021-06-16 14:43:18 +01001# ============LICENSE_START=======================================================
2# Copyright (C) 2021 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.
rajesh.kumarcec0cb72022-09-06 11:47:18 +00005# Modifications Copyright (C) 2022 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
niamhcoref7ba3592020-10-19 12:48:06 +010022openapi: 3.0.1
23info:
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
26 version: "1.0.0"
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"
34 x-planned-retirement-date: "202212"
35 x-component: "Modeling"
36 x-logo:
37 url: "cps_logo.png"
38
niamhcoref7ba3592020-10-19 12:48:06 +010039servers:
JosephKeenan2472e612021-06-23 14:15:52 +010040 - url: /cps/api
JosephKeenan1a650232022-10-20 10:33:24 +010041components:
42 securitySchemes:
43 basicAuth:
44 type: http
45 scheme: basic
niamhcoref7ba3592020-10-19 12:48:06 +010046tags:
Rishi.Chail6d13f162021-01-26 05:58:39 +000047 - name: cps-admin
48 description: cps Admin
49 - name: cps-data
Renu Kumari4d520012021-08-30 11:50:43 -040050 description: cps Data
niamhcoref7ba3592020-10-19 12:48:06 +010051paths:
Rishi.Chail6d13f162021-01-26 05:58:39 +000052
Ruslan Kashapov5a8718b2020-12-10 10:49:59 +020053 /v1/dataspaces:
rajesh.kumar897686f2022-12-14 08:13:29 +000054 $ref: 'cpsAdminV1Deprecated.yml#/dataspaces'
55
56 /{apiVersion}/dataspaces:
Rishi.Chaildacc6632021-01-27 04:27:34 +000057 $ref: 'cpsAdmin.yml#/dataspaces'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000058
rajesh.kumar897686f2022-12-14 08:13:29 +000059 /v2/dataspaces:
60 $ref: 'cpsAdminV2.yml#/dataspaces'
61
62 /{apiVersion}/admin/dataspaces:
rajesh.kumarcec0cb72022-09-06 11:47:18 +000063 $ref: 'cpsAdmin.yml#/adminDataspaces'
64
rajesh.kumar897686f2022-12-14 08:13:29 +000065 /{apiVersion}/admin/dataspaces/{dataspace-name}:
rajesh.kumarcec0cb72022-09-06 11:47:18 +000066 $ref: 'cpsAdmin.yml#/adminDataspace'
67
niamhcoref7ba3592020-10-19 12:48:06 +010068 /v1/dataspaces/{dataspace-name}/anchors:
rajesh.kumar897686f2022-12-14 08:13:29 +000069 $ref: 'cpsAdminV1Deprecated.yml#/anchorsByDataspace'
70
71 /v2/dataspaces/{dataspace-name}/anchors:
72 $ref: 'cpsAdminV2.yml#/anchorsByDataspace'
73
74 /{apiVersion}/dataspaces/{dataspace-name}/anchors:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000075 $ref: 'cpsAdmin.yml#/anchorsByDataspace'
76
rajesh.kumar897686f2022-12-14 08:13:29 +000077 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000078 $ref: 'cpsAdmin.yml#/anchorByDataspaceAndAnchorName'
79
80 /v1/dataspaces/{dataspace-name}/schema-sets:
rajesh.kumar897686f2022-12-14 08:13:29 +000081 $ref: 'cpsAdminV1Deprecated.yml#/schemaSet'
82
83 /v2/dataspaces/{dataspace-name}/schema-sets:
84 $ref: 'cpsAdminV2.yml#/schemaSet'
85
86 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000087 $ref: 'cpsAdmin.yml#/schemaSet'
88
rajesh.kumar897686f2022-12-14 08:13:29 +000089 /{apiVersion}/dataspaces/{dataspace-name}/schema-sets/{schema-set-name}:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000090 $ref: 'cpsAdmin.yml#/schemaSetBySchemaSetName'
91
rajesh.kumar897686f2022-12-14 08:13:29 +000092 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
Rishi.Chaildacc6632021-01-27 04:27:34 +000093 $ref: 'cpsData.yml#/nodeByDataspaceAndAnchor'
94
rajesh.kumar897686f2022-12-14 08:13:29 +000095 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000096 $ref: 'cpsData.yml#/nodesByDataspaceAndAnchor'
97
Renu Kumari7edbeb62021-08-30 07:45:52 -040098 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
rajesh.kumar897686f2022-12-14 08:13:29 +000099 $ref: 'cpsDataV1Deprecated.yml#/listElementByDataspaceAndAnchor'
100
101 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
DylanB95ESTa79c9f12021-10-29 17:33:06 +0100102 $ref: 'cpsData.yml#/listElementByDataspaceAndAnchor'
Ruslan Kashapov0905ac12021-05-05 13:11:50 +0300103
rajesh.kumar897686f2022-12-14 08:13:29 +0000104 /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
lukegleeson15b93e72021-07-07 15:25:30 +0100105 $ref: 'cpsQuery.yml#/nodesByDataspaceAndAnchorAndCpsPath'
JosephKeenan1a650232022-10-20 10:33:24 +0100106
107security:
rajesh.kumar71e4f832022-09-14 05:11:32 +0000108 - basicAuth: []