homecontrol: use numbers instead of strings for values/levels
This commit is contained in:
parent
577dd4f78b
commit
e8cdc5de17
3 changed files with 7 additions and 8 deletions
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
REQ=GET
|
||||
URL=http://localhost:5000/actor/get
|
||||
URL=http://localhost:8200/actor/get
|
||||
|
||||
echo "$REQ $URL"
|
||||
read -p "continue?" -n 1 foo
|
||||
# echo "$REQ $URL"
|
||||
# read -p "continue?" -n 1 foo
|
||||
curl \
|
||||
-X $REQ $URL \
|
||||
-H "Content-Type: application/json"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
ACTORID=${1:-11111111}
|
||||
LIMIT=${2:-0}
|
||||
REQ=GET
|
||||
URL=http://localhost:5000/actor/get_levels/$ACTORID?limit=$LIMIT
|
||||
URL=http://localhost:8200/actor/get_levels/$ACTORID?limit=$LIMIT
|
||||
|
||||
echo "$REQ $URL"
|
||||
read -p "continue?" -n 1 foo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue