mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralfms.git
synced 2026-01-01 18:12:18 +00:00
30 lines
1.2 KiB
C++
30 lines
1.2 KiB
C++
//
|
|
// Created by stephane bourque on 2021-07-13.
|
|
//
|
|
|
|
#ifndef UCENTRALFMS_RESTAPI_HISTORYHANDLER_H
|
|
#define UCENTRALFMS_RESTAPI_HISTORYHANDLER_H
|
|
|
|
|
|
#include "RESTAPI_handler.h"
|
|
|
|
namespace OpenWifi {
|
|
class RESTAPI_historyHandler : public RESTAPIHandler {
|
|
public:
|
|
RESTAPI_historyHandler(const RESTAPIHandler::BindingMap &bindings, Poco::Logger &L, bool Internal)
|
|
: RESTAPIHandler(bindings, L,
|
|
std::vector<std::string>
|
|
{Poco::Net::HTTPRequest::HTTP_GET,
|
|
Poco::Net::HTTPRequest::HTTP_DELETE,
|
|
Poco::Net::HTTPRequest::HTTP_OPTIONS},
|
|
Internal) {}
|
|
static const std::list<const char *> PathName() { return std::list<const char *>{"/api/v1/revisionHistory/{serialNumber}"};}
|
|
void handleRequest(Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response) override;
|
|
void DoGet(Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response);
|
|
void DoDelete(Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response);
|
|
};
|
|
}
|
|
|
|
|
|
#endif //UCENTRALFMS_RESTAPI_HISTORYHANDLER_H
|