Adding WifiClientHistory.

This commit is contained in:
stephb9959
2022-05-15 20:00:57 -07:00
parent c751d4cd23
commit 880e97143e
3 changed files with 8 additions and 5 deletions

View File

@@ -7,6 +7,7 @@
#include "RESTAPI/RESTAPI_board_handler.h"
#include "RESTAPI/RESTAPI_board_devices_handler.h"
#include "RESTAPI/RESTAPI_board_timepoint_handler.h"
#include "RESTAPI/RESTAPI_wificlienthistory_handler.h"
namespace OpenWifi {
@@ -18,7 +19,8 @@ namespace OpenWifi {
RESTAPI_board_devices_handler,
RESTAPI_board_timepoint_handler,
RESTAPI_board_handler,
RESTAPI_board_list_handler
RESTAPI_board_list_handler,
RESTAPI_wificlienthistory_handler
>(Path,Bindings,L, S, TransactionId);
}
@@ -30,7 +32,8 @@ namespace OpenWifi {
RESTAPI_board_devices_handler,
RESTAPI_board_timepoint_handler,
RESTAPI_board_handler,
RESTAPI_board_list_handler
RESTAPI_board_list_handler,
RESTAPI_wificlienthistory_handler
>(Path, Bindings, L, S, TransactionId);
}

View File

@@ -221,11 +221,12 @@ tree() {
}
createboard() {
payload="{ \"name\" : \"MegaLab\", \"venueList\" : [ { \"id\" : \"$1\" , \"name\" : \"MegaLab Venue\" , \"retention\" : 86000 , \"interval\" : 60, \"monitorSubVenues\" : true } ] }"
payload="{ \"name\" : \"Demo\", \"venueList\" : [ { \"id\" : \"$1\" , \"name\" : \"Demo\" , \"retention\" : 86000 , \"interval\" : 60, \"monitorSubVenues\" : true } ] }"
curl ${FLAGS} -X POST "https://${OWANALYTICS}/api/v1/board/0" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" > ${result_file}
-H "Authorization: Bearer ${token}" \
-d "$payload" > ${result_file}
jq < ${result_file}
}

File diff suppressed because one or more lines are too long