Adding support for contacts and locations.

This commit is contained in:
stephb9959
2021-09-26 22:11:47 -07:00
parent 32af8cbf83
commit f61faeadff
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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}