Adding REST endpoints.

This commit is contained in:
stephb9959
2021-10-26 22:11:05 -07:00
parent 4eef6fc310
commit d0dcf043d1
17 changed files with 346 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
//
// Created by stephane bourque on 2021-10-26.
//
#ifndef OWSUB_RESTAPI_WIREDCLIENTS_HANDLER_H
#define OWSUB_RESTAPI_WIREDCLIENTS_HANDLER_H
#include "framework/MicroService.h"
namespace OpenWifi {
class RESTAPI_wiredClients_handler : public RESTAPIHandler {
public:
RESTAPI_wiredClients_handler(const RESTAPIHandler::BindingMap &bindings, Poco::Logger &L, RESTAPI_GenericServer & Server, bool Internal)
: RESTAPIHandler(bindings, L,
std::vector<std::string>{
Poco::Net::HTTPRequest::HTTP_GET,
Poco::Net::HTTPRequest::HTTP_OPTIONS},
Server,
Internal){}
static const std::list<const char *> PathName() { return std::list<const char *>{"/api/v1/wiredClients"}; };
void DoGet() final;
void DoPost() final {};
void DoPut() final {};
void DoDelete() final {};
private:
};
}
#endif //OWSUB_RESTAPI_WIREDCLIENTS_HANDLER_H