Added JSON and XML payloads tabs with RFC 8040 URL 21/90921/7
authorAman <170030039@iitdh.ac.in>
Sun, 5 Jul 2020 10:20:59 +0000 (15:50 +0530)
committerRobert Varga <nite@hq.sk>
Mon, 3 Aug 2020 07:57:18 +0000 (07:57 +0000)
Modified docs/pcep/pcep-user-guide-running-pcep.rst by adding JSON,XML examples with corresponding sphinx tab

Change-Id: I63c308e723b7dbc79571128a405c2402b4cbe370
Signed-off-by: Aman <170030039@iitdh.ac.in>
docs/pcep/pcep-user-guide-running-pcep.rst

index 4c207980c104a1d2ae868f4004242b54ae096527..c89256aeca3ad9609c71fc083e8934776ad731ff 100644 (file)
@@ -17,15 +17,38 @@ This section explains how to install PCEP plugin.
 
    **URL:** ``restconf/operational/network-topology:network-topology/topology/pcep-topology``
 
+   **RFC8040 URL:** ``rests/data/network-topology:network-topology/topology=pcep-topology?content=nonconfig``
+
    **Method:** ``GET``
 
-   **Response Body:**
+   .. tabs::
+
+      .. tab:: XML
+
+         **Response Body:**
+
+         .. code-block:: xml
+
+            <topology xmlns="urn:TBD:params:xml:ns:yang:network-topology">
+                <topology-id>pcep-topology</topology-id>
+                <topology-types>
+                    <topology-pcep xmlns="urn:opendaylight:params:xml:ns:yang:topology:pcep"></topology-pcep>
+                </topology-types>
+            </topology>
+
+      .. tab:: JSON
+
+         **Response Body:**
 
-   .. code-block:: xml
+         .. code-block:: json
 
-      <topology xmlns="urn:TBD:params:xml:ns:yang:network-topology">
-          <topology-id>pcep-topology</topology-id>
-          <topology-types>
-              <topology-pcep xmlns="urn:opendaylight:params:xml:ns:yang:topology:pcep"></topology-pcep>
-          </topology-types>
-      </topology>
+            {
+                "topology": [
+                    {
+                        "topology-id": "pcep-topology",
+                        "topology-types": {
+                            "network-topology-pcep:topology-pcep": {}
+                        }
+                    }
+                ]
+            }
\ No newline at end of file