Fix parameters order in import example rest scripts
Included dependency with cURL in the web services documentation. FEA: ItEr77S04BugFixing
This commit is contained in:
parent
47600797d8
commit
237369faf9
2 changed files with 14 additions and 9 deletions
|
|
@ -57,7 +57,10 @@ Requirements
|
|||
------------
|
||||
|
||||
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
|
||||
install it with the following command in Debian based distributions::
|
||||
|
|
|
|||
|
|
@ -7,19 +7,21 @@ read loginName
|
|||
printf "Password: "
|
||||
read password
|
||||
|
||||
if [ "$3" = "--prod" ]; then
|
||||
file=$2
|
||||
|
||||
if [ "$2" = "--prod" ]; then
|
||||
baseServiceURL=$PRODUCTION_BASE_SERVICE_URL
|
||||
certificate=$PRODUCTION_CERTIFICATE
|
||||
elif [ "$3" = "--dev" ]; then
|
||||
baseServiceURL=$DEVELOPMENT_BASE_SERVICE_URL
|
||||
certificate=$DEVELOPMENT_CERTIFICATE
|
||||
file=$3
|
||||
elif [ "$2" = "--dev" ]; then
|
||||
baseServiceURL=$DEVELOPMENT_BASE_SERVICE_URL
|
||||
certificate=$DEVELOPMENT_CERTIFICATE
|
||||
file=$3
|
||||
else
|
||||
baseServiceURL=$DEMO_BASE_SERVICE_URL
|
||||
certificate=$DEMO_CERTIFICATE
|
||||
baseServiceURL=$DEMO_BASE_SERVICE_URL
|
||||
certificate=$DEMO_CERTIFICATE
|
||||
fi
|
||||
|
||||
file=$2
|
||||
|
||||
if [ "$file" = "" ]; then
|
||||
printf "Missing file\n" 1>&2
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue