From 45db3c968daf84251dd0dd10a7e248707ccc281b Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Tue, 18 Aug 2015 13:12:52 +0300 Subject: [PATCH] MT#14629 Add single quot around user:password for curl examples So when copy-pasted and applied username or password with special shell symbols it will work anyway Change-Id: I703527095c731e536406331aa61a769759a73e02 --- share/templates/api/root/auth.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/templates/api/root/auth.tt b/share/templates/api/root/auth.tt index 56d756dc05..6dc6834c8c 100644 --- a/share/templates/api/root/auth.tt +++ b/share/templates/api/root/auth.tt @@ -18,10 +18,10 @@ You can authenticate against the API using your normal NGCP Panel adminis
Using cURL on the Shell

-With cURL, use --user username:password option to specify your access credentials. Specifying the realm is not needed here. +With cURL, use --user 'username:password' option to specify your access credentials. Specifying the realm is not needed here. -curl -i -X GET --user myuser:mypassword https://example.org:1443/api/ +curl -i -X GET --user 'myuser:mypassword' https://example.org:1443/api/ Additionally use the --insecure option if you are testing against a self-signed server certificate.