From 6adf3bc93d8df78e56b085857dc13c41d9704868 Mon Sep 17 00:00:00 2001 From: jonasled <jonas@jonasled.de> Date: Wed, 27 Nov 2019 09:13:50 +0100 Subject: [PATCH] added if arround apikey in example to hide if not logged in --- templates/apiDocs.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/apiDocs.html b/templates/apiDocs.html index e6b5721..7c176be 100644 --- a/templates/apiDocs.html +++ b/templates/apiDocs.html @@ -30,7 +30,7 @@ <li>qr: if you add this parameter you will get an base64 encoded QR code image</li> <li>apikey: you can add this argument, if you want to assign this link to your account.</li> </ul> - <p>example API call with curl: <i>curl -d "apikey={{apikey}}&short={{domain}}/example&long=http://example.com" -X POST {{url_scheme}}://{{domain}}/user/api</i> + <p>example API call with curl: <i>curl -d "{% if apikey %}apikey={{apikey}}&{% endif %}short={{domain}}/example&long=http://example.com" -X POST {{url_scheme}}://{{domain}}/user/api</i> <h2>Responses from Server</h2> <p>The response from the server is always made in json format it includes the following arguments:</p> -- GitLab