blob: e17029550445ccfa60443ad1d5bc97f97ae89301 [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:
Rishi.Chaildacc6632021-01-27 04:27:34 +000054 $ref: 'cpsAdmin.yml#/dataspaces'
puthuparambil.aditya001e7732021-01-13 12:06:20 +000055
rajesh.kumarcec0cb72022-09-06 11:47:18 +000056 /v1/admin/dataspaces:
57 $ref: 'cpsAdmin.yml#/adminDataspaces'
58
59 /v1/admin/dataspaces/{dataspace-name}:
60 $ref: 'cpsAdmin.yml#/adminDataspace'
61
niamhcoref7ba3592020-10-19 12:48:06 +010062 /v1/dataspaces/{dataspace-name}/anchors:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000063 $ref: 'cpsAdmin.yml#/anchorsByDataspace'
64
niamhcoref7ba3592020-10-19 12:48:06 +010065 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000066 $ref: 'cpsAdmin.yml#/anchorByDataspaceAndAnchorName'
67
68 /v1/dataspaces/{dataspace-name}/schema-sets:
69 $ref: 'cpsAdmin.yml#/schemaSet'
70
71 /v1/dataspaces/{dataspace-name}/schema-sets/{schema-set-name}:
72 $ref: 'cpsAdmin.yml#/schemaSetBySchemaSetName'
73
Rishi.Chaildacc6632021-01-27 04:27:34 +000074 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/node:
75 $ref: 'cpsData.yml#/nodeByDataspaceAndAnchor'
76
niamhcoref7ba3592020-10-19 12:48:06 +010077 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes:
puthuparambil.aditya001e7732021-01-13 12:06:20 +000078 $ref: 'cpsData.yml#/nodesByDataspaceAndAnchor'
79
Renu Kumari7edbeb62021-08-30 07:45:52 -040080 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes:
DylanB95ESTa79c9f12021-10-29 17:33:06 +010081 $ref: 'cpsData.yml#/listElementByDataspaceAndAnchor'
Ruslan Kashapov0905ac12021-05-05 13:11:50 +030082
niamhcore53f07ac2021-02-19 13:14:40 +000083 /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
lukegleeson15b93e72021-07-07 15:25:30 +010084 $ref: 'cpsQuery.yml#/nodesByDataspaceAndAnchorAndCpsPath'
JosephKeenan1a650232022-10-20 10:33:24 +010085
86security:
87 - basicAuth: []