From add01d8f1c6ed58f9ea27ea152ee5e6a57ef9c23 Mon Sep 17 00:00:00 2001 From: Massimo Santini Date: Mon, 12 Dec 2011 15:36:23 +0100 Subject: [PATCH] Added get with id param --- scripts/cli_client | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/cli_client b/scripts/cli_client index 22be2a1..46c76af 100755 --- a/scripts/cli_client +++ b/scripts/cli_client @@ -5,10 +5,14 @@ if [ -z $URL ]; then fi METHOD=$1 - +ARG=$2 case $METHOD in GET|get) - curl $SHOW_HEADERS -H "X-Nofussbm-Key: $NOFUSSBM_KEY" $URL ;; + if [ -z $ARG ]; then + curl $SHOW_HEADERS -H "X-Nofussbm-Key: $NOFUSSBM_KEY" $URL + else + curl $SHOW_HEADERS -H "X-Nofussbm-Key: $NOFUSSBM_KEY" ${URL}$ARG + fi ;; DELETE|delete|del) curl $SHOW_HEADERS -d @- -X DELETE -H "Content-type: application/json" -H "X-Nofussbm-Key: $NOFUSSBM_KEY" $URL ;; POST|post)