Roll to initial Honolulu version
[ccsdk/cds.git] / docs / datadictionary / restauth.rst
index 40c1793..8051a6a 100644 (file)
@@ -7,36 +7,54 @@ Resource Rest Authentication
 ----------------------------
 
 token-auth:
-
-"dsl_definitions": {
-  "dynamic-rest-source": {
-    "type" : "token-auth",
-    "url" : "http://localhost:32778",
-    "token" : "Token 0123456789abcdef0123456789abcdef01234567"
-  }
-}
-
+~~~~~~~~~~~
+
+.. code-block:: json
+   :linenos:
+   
+   {
+      "dsl_definitions": {
+        "dynamic-rest-source": {
+          "type" : "token-auth",
+          "url" : "http://localhost:32778",
+          "token" : "<token>"
+        }
+      }
+   }
+   
 basic-auth:
-
-"dsl_definitions": {
-  "dynamic-rest-source": {
-    "type" : "basic-auth",
-    "url" : "http://localhost:32778",
-    "username" : "bob",
-    "password": "marley"
- }
-}
-
+~~~~~~~~~~~
+
+.. code-block:: json
+   :linenos:
+      
+   {
+      "dsl_definitions": {
+        "dynamic-rest-source": {
+          "type" : "basic-auth",
+          "url" : "http://localhost:32778",
+          "username" : "<username>",
+          "password": "<password>"
+       }
+      }
+   }
+   
 ssl-basic-auth:
-
-"dsl_definitions": {
-  "dynamic-rest-source": {
-    "type" : "ssl-basic-auth",
-    "url" : "http://localhost:32778",
-    "keyStoreInstance": "JKS or PKCS12",
-    "sslTrust": "trusture",
-    "sslTrustPassword": "trustore password",
-    "sslKey": "keystore",
-    "sslKeyPassword: "keystore password"
- }
-}
\ No newline at end of file
+~~~~~~~~~~~~~~~
+
+.. code-block:: json
+   :linenos:
+      
+   {
+      "dsl_definitions": {
+        "dynamic-rest-source": {
+          "type" : "ssl-basic-auth",
+          "url" : "http://localhost:32778",
+          "keyStoreInstance": "JKS or PKCS12",
+          "sslTrust": "trusture",
+          "sslTrustPassword": "<password>",
+          "sslKey": "keystore",
+          "sslKeyPassword": "<password>"
+       }
+      }
+   }