summaryrefslogtreecommitdiffstats
path: root/docs/api/swagger
diff options
context:
space:
mode:
authorJosephKeenan <joseph.keenan@est.tech>2022-10-20 10:33:24 +0100
committerJosephKeenan <joseph.keenan@est.tech>2022-10-24 16:22:06 +0100
commit1a65023937c209ae05c8e84093376b737e78320c (patch)
tree352635a2f6291167568bafe0b6be26408aa5ff65 /docs/api/swagger
parentb24639de32b2c89346d9888ba0acc9443babb2be (diff)
[NCMP] Add Basic Auth to OpenAPI Definitions
-Adding basic auth to OpenAPI definitions Issue-ID: CPS-1350 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: Iab677f2abc07eed8c3e2910191b15ba27028ee88
Diffstat (limited to 'docs/api/swagger')
-rw-r--r--docs/api/swagger/cps/openapi.yaml7
-rw-r--r--docs/api/swagger/ncmp/openapi-inventory.yaml7
-rw-r--r--docs/api/swagger/ncmp/openapi.yaml7
3 files changed, 21 insertions, 0 deletions
diff --git a/docs/api/swagger/cps/openapi.yaml b/docs/api/swagger/cps/openapi.yaml
index 874f2a077..e8f13d4df 100644
--- a/docs/api/swagger/cps/openapi.yaml
+++ b/docs/api/swagger/cps/openapi.yaml
@@ -1537,6 +1537,10 @@ paths:
details: Internal Server Error occurred
x-codegen-request-body-name: xpath
components:
+ securitySchemes:
+ basicAuth:
+ type: http
+ scheme: basic
schemas:
ErrorMessage:
title: Error
@@ -1609,3 +1613,6 @@ components:
name: SciFi
- code: 2
name: kids
+
+security:
+ - basicAuth: [] \ No newline at end of file
diff --git a/docs/api/swagger/ncmp/openapi-inventory.yaml b/docs/api/swagger/ncmp/openapi-inventory.yaml
index 2d34f0a61..9e84f3a19 100644
--- a/docs/api/swagger/ncmp/openapi-inventory.yaml
+++ b/docs/api/swagger/ncmp/openapi-inventory.yaml
@@ -148,6 +148,10 @@ paths:
message: Internal Server Error
details: Internal Server Error occurred
components:
+ securitySchemes:
+ basicAuth:
+ type: http
+ scheme: basic
schemas:
RestDmiPluginRegistration:
type: object
@@ -234,3 +238,6 @@ components:
errorText:
type: string
example: Unknown error. <error-details>
+
+security:
+ - basicAuth: [] \ No newline at end of file
diff --git a/docs/api/swagger/ncmp/openapi.yaml b/docs/api/swagger/ncmp/openapi.yaml
index 44cc2b88a..b9eee5603 100644
--- a/docs/api/swagger/ncmp/openapi.yaml
+++ b/docs/api/swagger/ncmp/openapi.yaml
@@ -1193,6 +1193,10 @@ paths:
http-code: 400
body: Bad Request
components:
+ securitySchemes:
+ basicAuth:
+ type: http
+ scheme: basic
schemas:
ErrorMessage:
title: Error
@@ -1477,3 +1481,6 @@ components:
- conditionName: cmHandleWithCpsPath
conditionParameters:
- cpsPath: "//state[@data-sync-enabled='true']"
+
+security:
+ - basicAuth: []
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
 -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.onap.oparent</groupId>
        <artifactId>oparent</artifactId>
        <version>2.0.0</version>
        <relativePath />
    </parent>

    <groupId>org.onap.usecase-ui</groupId>
    <artifactId>usecase-ui-parent</artifactId>
    <version>2.0.2-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>usecase-ui-parent</name>
    <description>parent project for usecase-ui</description>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <sonar.projectVersion>${project.version}</sonar.projectVersion>
        <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
        <nexusproxy>https://nexus.onap.org</nexusproxy>
        <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
        <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
        <siteNexusPath>content/sites/site/${project.groupId}/${project.artifactId}/${project.version}/</siteNexusPath>
        <tomcat.version>9.0.24</tomcat.version>
    </properties>

    <!--distributionManagement>
        <repository>
            <id>onap-releases</id>
            <url>${nexusproxy}/${releaseNexusPath}</url>
        </repository>
        <snapshotRepository>
            <id>onap-snapshots</id>
            <url>${nexusproxy}/${snapshotNexusPath}</url>
        </snapshotRepository>
        <site>
            <id>onap-site</id>
            <url>dav:${nexusproxy}${siteNexusPath}</url>
        </site>
    </distributionManagement-->

    <modules>
        <module>usecaseui-portal</module>
        <module>distribution</module>
    </modules>

    <dependencyManagement>
        <dependencies>
            <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat</artifactId>
            <version>${tomcat.version}</version>
            <type>zip</type>
            </dependency>
        </dependencies>
    </dependencyManagement>
</project>