mirror of
				https://github.com/Telecominfraproject/wlan-cloud-userportal.git
				synced 2025-10-31 10:37:55 +00:00 
			
		
		
		
	Adding REST endpoints.
This commit is contained in:
		
							
								
								
									
										31
									
								
								src/RESTAPI/RESTAPI_wiredClients_handler.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								src/RESTAPI/RESTAPI_wiredClients_handler.h
									
									
									
									
									
										Normal 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 | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959