2 * Samsung Ukraine R&D Center (SRK under a contract between)
3 * LLC "Samsung Electronics Co", Ltd (Seoul, Republic of Korea)
4 * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
8 * @brief Service to provide data exchange between security server and control application
9 * @date Created Jul 11, 2017
10 * @author Mail to: <A HREF="mailto:d.lomtev@samsung.com">Dmytro Lomtev, d.lomtev@samsung.com</A>
16 #include "irestservice.h"
18 namespace NetworkManager
22 * @brief REST interface to DSM server
24 class RestService: public IRestService
29 * @param server_address DSM server host address
31 RestService(const std::string& server_address);
35 std::string getUpdates(const SessionInfo& info) override;
37 std::string registerDevice(const SessionInfo& info, const Settings& settings) override;
39 std::string auth(const SessionInfo& info, const std::string& secret) override;
41 std::string doGet(const SessionInfo& info, const std::string& uri) override;
43 void doPost(const SessionInfo& info, const std::string& uri, const std::string& data) override;
45 void sendReport(const SessionInfo& info, const std::string& report) override;
47 void sendReport(const SessionInfo& info, const Json::Value& report) override;
54 #endif // RESTSERVICE_H