dmi plugin sync openapi yml 29/130929/4
authormpriyank <priyank.maheshwari@est.tech>
Wed, 14 Sep 2022 09:47:45 +0000 (10:47 +0100)
committerPriyank Maheshwari <priyank.maheshwari@est.tech>
Wed, 14 Sep 2022 12:32:03 +0000 (12:32 +0000)
- copy target/generated-sources/swagger/openapi.yaml → docs/api/swagger/openapi.yaml
- fixed the tox.ini for the documentation build issue
- updated description for topic paramter

Issue-ID: CPS-1276
Change-Id: I0771fd6b7a8fda5085a535e02cd40fa49e6b8b6f
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
docs/api/swagger/openapi.yaml
docs/tox.ini
openapi/components.yml

index a3b07c2..41ebedf 100644 (file)
@@ -195,6 +195,16 @@ paths:
           sample3:
             value:
               options: (key1=10,key2=value2,key3=val31,val32)
+      - name: topic
+        in: query
+        description: topic name passed from client(NCMP).
+        required: false
+        allowReserved: true
+        schema:
+          type: string
+        examples:
+          sample1:
+            value: my-topic-name
       requestBody:
         description: Operational body
         content:
@@ -277,6 +287,16 @@ paths:
           sample3:
             value:
               options: (key1=10,key2=value2,key3=val31,val32)
+      - name: topic
+        in: query
+        description: topic name passed from client(NCMP).
+        required: false
+        allowReserved: true
+        schema:
+          type: string
+        examples:
+          sample1:
+            value: my-topic-name
       requestBody:
         content:
           application/json:
index 4e9449e..c329a7e 100644 (file)
@@ -4,9 +4,9 @@ envlist = docs,
 skipsdist = true
 
 [testenv:docs]
-basepython = python3
+basepython = python3.8
 deps = -r{toxinidir}/requirements-docs.txt
-       -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
+       -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
        -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
 commands =
     sphinx-build -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html
@@ -17,9 +17,9 @@ whitelist_externals =
     sh
 
 [testenv:docs-linkcheck]
-basepython = python3
+basepython = python3.8
 deps = -r{toxinidir}/requirements-docs.txt
-       -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
+       -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
        -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
 commands = echo "Link Checking not enforced"
 #commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./ {toxinidir}/_build/linkcheck
index 212ddf0..049701e 100644 (file)
@@ -201,7 +201,7 @@ components:
     topicParamInQuery:
       name: topic
       in: query
-      description: valid topic name passed from client(NCMP).
+      description: topic name passed from client(NCMP).
       required: false
       schema:
         type: string