Skip to content

Commit

Permalink
Added get with id param
Browse files Browse the repository at this point in the history
  • Loading branch information
mapio committed Dec 12, 2011
1 parent 9aa4d54 commit add01d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/cli_client
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit add01d8

Please sign in to comment.