mirror of
https://github.com/Telecominfraproject/wlan-cloud-owls.git
synced 2026-01-10 14:11:32 +00:00
Merge branch 'WIFI-12378' of https://github.com/telecominfraproject/wlan-cloud-owls into main
This commit is contained in:
@@ -19,7 +19,7 @@ namespace OpenWifi {
|
||||
Poco::Net::HTTPRequest::HTTP_DELETE,
|
||||
Poco::Net::HTTPRequest::HTTP_OPTIONS},
|
||||
Server, TransactionId, Internal) {}
|
||||
static auto PathName() { return std::list<std::string>{"/api/v1/simulation"}; }
|
||||
static auto PathName() { return std::list<std::string>{"/api/v1/simulation/{id}"}; }
|
||||
void DoGet() final;
|
||||
void DoPost() final;
|
||||
void DoPut() final;
|
||||
|
||||
@@ -136,8 +136,8 @@ createsim() {
|
||||
fi
|
||||
}
|
||||
|
||||
listsim() {
|
||||
curl ${FLAGS} -X GET "https://${OWLS}/api/v1/simulation" \
|
||||
listsims() {
|
||||
curl ${FLAGS} -X GET "https://${OWLS}/api/v1/simulation/*" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${token}" > ${result_file}
|
||||
jq < ${result_file}
|
||||
@@ -190,7 +190,7 @@ case "$1" in
|
||||
"login") login; echo "You succesfully logged in..." ; logout ;;
|
||||
"examplesim") examplesim;;
|
||||
"createsim") login; createsim "$2"; logout;;
|
||||
"listsim") login; listsim; logout;;
|
||||
"listsims") login; listsims; logout;;
|
||||
"deletesim") login; deletesim "$2"; logout;;
|
||||
"startsim") login; startsim "$2"; logout;;
|
||||
"stopsim") login; stopsim "$2" ; logout;;
|
||||
|
||||
Reference in New Issue
Block a user