Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-13273
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Jan 5, 2024
1 parent aa862d3 commit bd37534
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/RESTAPI/RESTAPI_devices_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,13 @@ namespace OpenWifi {
auto deviceWithStatus = GetBoolParameter(RESTAPI::Protocol::DEVICEWITHSTATUS, false);
auto completeInfo = GetBoolParameter("completeInfo", false);

if(!platform.empty() && (platform!="ap" && platform!="switch")) {
if(!platform.empty() && (platform!="ap" && platform!="switch" && platform!="all")) {
return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters);
}

if(platform=="all")
platform="";

Poco::JSON::Object RetObj;
if (!QB_.Select.empty()) {
Poco::JSON::Array Objects;
Expand Down

0 comments on commit bd37534

Please sign in to comment.