mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 09:42:38 +00:00
Adding support for contacts and locations.
This commit is contained in:
@@ -28,7 +28,7 @@ namespace OpenWifi{
|
||||
std::string Arg;
|
||||
if(HasParameter("config",Arg) && Arg=="true") {
|
||||
bool Explain = (HasParameter("explain",Arg) && Arg == "true");
|
||||
APConfig Device(SerialNumber,Existing.deviceType,Logger_);
|
||||
APConfig Device(SerialNumber,Existing.deviceType,Logger_, Explain);
|
||||
|
||||
Poco::JSON::Object Answer;
|
||||
Poco::JSON::Object::Ptr Configuration;
|
||||
|
||||
@@ -363,7 +363,7 @@ listconfigs() {
|
||||
}
|
||||
|
||||
deviceconfig() {
|
||||
curl ${FLAGS} "https://${OWPROV}/api/v1/inventory/$1?config=true" \
|
||||
curl ${FLAGS} "https://${OWPROV}/api/v1/inventory/$1?config=true&explain=true" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${token}" \
|
||||
-H "accept: application/json" > ${result_file}
|
||||
|
||||
Reference in New Issue
Block a user