mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 11:07:46 +00:00
Adding support for contacts and locations.
This commit is contained in:
@@ -28,7 +28,7 @@ namespace OpenWifi{
|
|||||||
std::string Arg;
|
std::string Arg;
|
||||||
if(HasParameter("config",Arg) && Arg=="true") {
|
if(HasParameter("config",Arg) && Arg=="true") {
|
||||||
bool Explain = (HasParameter("explain",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 Answer;
|
||||||
Poco::JSON::Object::Ptr Configuration;
|
Poco::JSON::Object::Ptr Configuration;
|
||||||
|
|||||||
@@ -363,7 +363,7 @@ listconfigs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deviceconfig() {
|
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 "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer ${token}" \
|
-H "Authorization: Bearer ${token}" \
|
||||||
-H "accept: application/json" > ${result_file}
|
-H "accept: application/json" > ${result_file}
|
||||||
|
|||||||
Reference in New Issue
Block a user