mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
comment changes
This commit is contained in:
@@ -947,6 +947,9 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
|
|||||||
request.url("/api/system/commands");
|
request.url("/api/system/commands");
|
||||||
EMSESP::webAPIService.webAPIService_get(&request);
|
EMSESP::webAPIService.webAPIService_get(&request);
|
||||||
|
|
||||||
|
request.url("/api/boiler/info");
|
||||||
|
EMSESP::webAPIService.webAPIService_get(&request);
|
||||||
|
|
||||||
// POST
|
// POST
|
||||||
request.method(HTTP_POST);
|
request.method(HTTP_POST);
|
||||||
request.url("/api/system/commands");
|
request.url("/api/system/commands");
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ void WebAPIService::parse(AsyncWebServerRequest * request, std::string & device_
|
|||||||
id_n = Helpers::atoint(request->getParam("hc")->value().c_str());
|
id_n = Helpers::atoint(request->getParam("hc")->value().c_str());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// parse paths and json data
|
// parse paths and json data from the OpenAPI standard
|
||||||
// /{device}[/{hc}][/{name}]
|
// /{device}[/{hc}][/{name}]
|
||||||
// first param must be a valid device, which includes "system"
|
// first param must be a valid device, which includes "system"
|
||||||
device_s = p.paths().front();
|
device_s = p.paths().front();
|
||||||
|
|||||||
Reference in New Issue
Block a user