mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 01:32:31 +00:00
Adding Signup Table
This commit is contained in:
@@ -461,6 +461,14 @@ affecteddevices() {
|
||||
jq < ${result_file}
|
||||
}
|
||||
|
||||
signup() {
|
||||
curl ${FLAGS} -X POST "https://${OWPROV}/api/v1/signup?email=stehane.bourque@gmail.com&serialNumber=112233445566" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${token}" \
|
||||
-H "accept: application/json" > ${result_file}
|
||||
jq < ${result_file}
|
||||
}
|
||||
|
||||
shopt -s nocasematch
|
||||
case "$1" in
|
||||
"login") login; echo "You are logged in..." ; logout ;;
|
||||
@@ -504,6 +512,7 @@ case "$1" in
|
||||
"systeminfo") login; systeminfo ; logout;;
|
||||
"addresscheck") login; addresscheck; logout ;;
|
||||
"affecteddevices") login; affecteddevices "$2"; logout;;
|
||||
"signup") login; signup ; logout;;
|
||||
*) help ;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user