mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-30 02:02:36 +00:00
Adding tags & rrm.
This commit is contained in:
@@ -207,6 +207,7 @@ namespace OpenWifi{
|
|||||||
|
|
||||||
AssignIfPresent(Obj, "name", Existing.info.name);
|
AssignIfPresent(Obj, "name", Existing.info.name);
|
||||||
AssignIfPresent(Obj,"description", Existing.info.description);
|
AssignIfPresent(Obj,"description", Existing.info.description);
|
||||||
|
AssignIfPresent(Obj, "rrm", Existing.rrm);
|
||||||
NewConfig.info.modified = std::time(nullptr);
|
NewConfig.info.modified = std::time(nullptr);
|
||||||
|
|
||||||
if(!NewConfig.variables.empty())
|
if(!NewConfig.variables.empty())
|
||||||
|
|||||||
@@ -157,10 +157,9 @@ namespace OpenWifi{
|
|||||||
Existing.info.notes.insert(Existing.info.notes.begin(),i);
|
Existing.info.notes.insert(Existing.info.notes.begin(),i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!NewEntity.info.name.empty())
|
AssignIfPresent(RawObject, "rrm", Existing.rrm);
|
||||||
Existing.info.name = NewEntity.info.name;
|
AssignIfPresent(RawObject, "name", Existing.info.name);
|
||||||
if(!NewEntity.info.description.empty())
|
AssignIfPresent(RawObject, "description", Existing.info.description);
|
||||||
Existing.info.description = NewEntity.info.description;
|
|
||||||
|
|
||||||
Existing.info.modified = std::time(nullptr);
|
Existing.info.modified = std::time(nullptr);
|
||||||
|
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ namespace OpenWifi{
|
|||||||
AssignIfPresent(RawObject, "entity",NewEntity);
|
AssignIfPresent(RawObject, "entity",NewEntity);
|
||||||
AssignIfPresent(RawObject, "location",NewLocation);
|
AssignIfPresent(RawObject, "location",NewLocation);
|
||||||
AssignIfPresent(RawObject, "contact",NewContact);
|
AssignIfPresent(RawObject, "contact",NewContact);
|
||||||
|
AssignIfPresent(RawObject, "rrm",Existing.rrm);
|
||||||
|
|
||||||
if(!NewEntity.empty() && !NewVenue.empty()) {
|
if(!NewEntity.empty() && !NewVenue.empty()) {
|
||||||
BadRequest(RESTAPI::Errors::NotBoth);
|
BadRequest(RESTAPI::Errors::NotBoth);
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ namespace OpenWifi{
|
|||||||
|
|
||||||
AssignIfPresent(RawObject, "name", Existing.info.name);
|
AssignIfPresent(RawObject, "name", Existing.info.name);
|
||||||
AssignIfPresent(RawObject, "description", Existing.info.description);
|
AssignIfPresent(RawObject, "description", Existing.info.description);
|
||||||
|
AssignIfPresent(RawObject, "rrm",Existing.rrm);
|
||||||
|
|
||||||
std::string MoveEntity;
|
std::string MoveEntity;
|
||||||
if(AssignIfPresent(RawObject, "entity", MoveEntity) && !Storage()->EntityDB().Exists("id",MoveEntity)) {
|
if(AssignIfPresent(RawObject, "entity", MoveEntity) && !Storage()->EntityDB().Exists("id",MoveEntity)) {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "venue",
|
"type": "venue",
|
||||||
"name": "Olymic Statium",
|
"name": "Olympic Stadium",
|
||||||
"venues": []
|
"venues": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user