Fix parameters order in import example rest scripts

Included dependency with cURL in the web services documentation.

FEA: ItEr77S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-11-02 16:57:22 +01:00
parent 47600797d8
commit 237369faf9
2 changed files with 14 additions and 9 deletions

View file

@ -57,7 +57,10 @@ Requirements
------------ ------------
These scripts are written in bash so you need to be running a bash terminal to These scripts are written in bash so you need to be running a bash terminal to
use them. use them. And they use cURL to do the HTTP requests, you can install it with the
following command in Debian based distributions::
# apt-get install curl
Moreover, it is recommended to have Tidy available in your system. You can Moreover, it is recommended to have Tidy available in your system. You can
install it with the following command in Debian based distributions:: install it with the following command in Debian based distributions::

View file

@ -7,19 +7,21 @@ read loginName
printf "Password: " printf "Password: "
read password read password
if [ "$3" = "--prod" ]; then file=$2
if [ "$2" = "--prod" ]; then
baseServiceURL=$PRODUCTION_BASE_SERVICE_URL baseServiceURL=$PRODUCTION_BASE_SERVICE_URL
certificate=$PRODUCTION_CERTIFICATE certificate=$PRODUCTION_CERTIFICATE
elif [ "$3" = "--dev" ]; then file=$3
baseServiceURL=$DEVELOPMENT_BASE_SERVICE_URL elif [ "$2" = "--dev" ]; then
certificate=$DEVELOPMENT_CERTIFICATE baseServiceURL=$DEVELOPMENT_BASE_SERVICE_URL
certificate=$DEVELOPMENT_CERTIFICATE
file=$3
else else
baseServiceURL=$DEMO_BASE_SERVICE_URL baseServiceURL=$DEMO_BASE_SERVICE_URL
certificate=$DEMO_CERTIFICATE certificate=$DEMO_CERTIFICATE
fi fi
file=$2
if [ "$file" = "" ]; then if [ "$file" = "" ]; then
printf "Missing file\n" 1>&2 printf "Missing file\n" 1>&2
exit 1 exit 1